On January 27th, this site will be read-only as we migrate to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 30th, when you will be able to use this site as normal.

    Forum Stats

  • 3,889,563 Users
  • 2,269,760 Discussions
  • 7,916,781 Comments

Discussions

adding python libraries to jython provided with FDMEE

User_YZQL2
User_YZQL2 Member Posts: 62 Blue Ribbon
edited May 13, 2020 9:13AM in Financial Data Management

Hi All,

Is there a way to add python libraries to jython provided with FDMEE? would 'pip install' work in any way ?

the library in question here is 'requests'. I was trying to import the same to make use of REST API provided by 'service now'.

Thanks,

Dev

Tagged:
SH_INTUser_YZQL2

Answers

  • Francisco Amores
    Francisco Amores EPM Data Integration Specialist SPAINMember Posts: 1,694 Bronze Crown
    edited May 13, 2020 9:13AM

    There are some workarounds to install python libs but it's not recommended. Think that requests module is not compatible with Jython 2.5 (the version FDMEE uses).

    To consume REST APIs, you better use the Java classes which you can import into your Jython script.

    Hope that helps

    SH_INTUser_YZQL2