Closed guicastello closed 3 months ago
pynwrfc
is obsolete and not supported. Uninstall that package first.
SAP NW RFC SDK libraries must be registered on Linux. Either add /usr/local/sap/nwrfcsdk/lib
to LD_LIBRARY_PATH, or use ldconfig
, as described in PyRFC documentation: https://sap.github.io/PyRFC/install.html#linux
To verify SAP NW RFC SDK libraries registration, run the RFC SDK version number test:
cd $SAPNWRFC_HOME/bin
./startrfc -v
When it works, PyRFC should work as well.
First of all, thank you very much for your help and your comment!
I've added the path to the LD and also checked the SDK version, both work as seen in the images below. However, I still can't find the path to Connection in the code.
I checked that inside my venv where I'm using pyrfc, the _cyrfc file has the .so format. Could it be that I'm not having some kind of error when downloading and transforming this into a py file and that's why I can't import it? Could this have something to do with it?
installed pyrfs using
pip3 install pyrfc
and another time using pip install pyrfc
same error
The hotifx should not be installed, unless requested by SAP Support. If not requested, please uninstall RFC SDK and install/register PL12, without hotfix.
Then create new virtualenv and run pip install pyrfc there. Just to ensure the pynwrfc leftovers do not cause issues.
The so format is ok, here how it looks in test system
$ cd ...site-packages
$ tree pyrfc
pyrfc
├── _cyrfc.cpython-311-x86_64-linux-gnu.so
├── _exception.py
├── __init__.py
└── _utils.py
@IsmaelAlvarez, the error is different, it looks like pyrfc is not installed.
Is it listed in pip freeze
or pip list
output?
@IsmaelAlvarez, the error is different, it looks like pyrfc is not installed.
Is it listed in
pip freeze
orpip list
output?
it does show
@IsmaelAlvarez
no idea yet. Could you please open new issue because the symptom is different and provide requested info on platform, python, sdk
Describe the bug I'm trying to implement pyrfc in my python project, but after all the installations of the library, and the nw rfc sdk package, I can't call the connection through import. I've seen some, if not all, of the issues with related problems and they say to use pip install pynwrfc, but I've also seen on https://pypi.org/project/pynwrfc/ that it's been yanked. So I really don't understand what to do. The issue I saw was from 2020, should I use what pynwrfc or pyrfc? Can you help me, please?
To Reproduce I've done the installations that README.md tells me to, and I've tried to start coding.
Screenshots
Environment