Hi all,
I am trying to import requests module into my gateway.
I have tried two different versions: requests-0.2.4 and requests-2.27.1
after importing the module I can’t use the definition\method request
when typing help(requests) I get:
>>> help(requests024)
Help on javapackage object:
requests024 = class javapackage(object)
| Data and other attributes defined here:
|
| __dict__ = <dictproxy object at 0x3>
|
| __dir__ = <java function __dir__ 0x5>
|
|
| __findattr_ex__ = <java function __findattr_ex__ 0x7>
|
|
| __mgr__ = <reflected field public org.python.core.packagec...ger org.p...
|
| __new__ = <built-in method __new__ of type object at 0x9>
| T.__new__(S, ...) -> a new object with type S, a subtype of T
|
| __setattr__ = <java function __setattr__ 0xb>
|
|
| addClass = <java function addClass 0xd>
|
|
| addPackage = <java function addPackage 0xf>
|
|
| addPlaceholders = <java function addPlaceholders 0x11>
|
|
| clsSet = <reflected field public org.python.core.PyStringMap org.pytho...
|
| fillDir = <java function fillDir 0x14>
|
|
| refersDirectlyTo = <java function refersDirectlyTo 0x16>
|
|
| toString = <java function toString 0x18>
|
|
| traverse = <java function traverse 0x1a>
so I understand that the module is not ready loaded correctly.
when trying to load different module , let’s say XML
and writing help(XML)
I get
>>> help(xml)
Help on package xml:
NAME
xml - Core XML support for Jython.
FILE
c:\users\raml\.ignition\cache\gwlocalhost_8088\c0\pylib\xml\__init__.py
DESCRIPTION
This package contains two sub-packages:
dom -- The W3C Document Object Model. This supports DOM Level 1 +
Namespaces.
sax -- The Simple API for XML, developed by XML-Dev, led by David
Megginson and ported to Python by Lars Marius Garshol. This
supports the SAX 2 API.
PACKAGE CONTENTS
FtCore
Uri
dom (package)
etree (package)
parsers (package)
sax (package)
DATA
__all__ = ['dom', 'sax']
can anyone spot the issue?
thanks