Skip to Content
0
Aug 01, 2023 at 02:00 PM

pyrfc ImportError: cannot import name 'Connection'

322 Views

Hello community,

I have installed pyrfc 3.1.0 and NW RFC 750P_12 in Python3.11 based kernel. "from pyrfc import" is working fine and not throwing any issue. When I try to import the "Connection" module, I get:

from pyrfc import Connection

---------------------------------------------------------------------------

ImportError Traceback (most recent call last)

Cell In[45], line 1

----> 1 from pyrfc import Connection

ImportError: cannot import name 'Connection' from 'pyrfc' (/usr/local/lib/python3.11/site-packages/pyrfc/__init__.py)

The instructions in __init__.py recommends using pyrfc._cyrfc: but in this case is not even loading the library:

from pyrfc._cyrfc import Connection

---------------------------------------------------------------------------

ImportError Traceback (most recent call last)

Cell In[64], line 1

----> 1 from pyrfc._cyrfc import Connection

ImportError: libsapnwrfc.so: cannot open shared object file: No such file or directory

Could someone give me some hints on the root causes please?Best regards,Egi