-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error installing on RHEL v8.6, with NW RFC SDK v7.50 PL12 #339
Comments
It fails because pyrfc version 2.8.2 cached source is fetched for some reason and that old version can't be built with newer Cython Using cached https://files.pythonhosted.org/packages/c2/3f/282b01c8a76da8610b76209ffd825ce999797b7aef2974acbb55ad43ab1d/pyrfc-2.8.2.tar.gz Which python version is used to run the pyrfc install command? You can try to fix pyrfc version 3.3 in pip install but it should work without it. Can you also install pyrfc in user space, not root? |
Hi, I'm able to fix the installation but still not able to use pyrfc. I'm not sure why we get the files from old version as I've no access to check it. What I've done to install is to simply download the .zip package from this site (PyRFC-main.zip) and unzip in server. From here, just to set the envvar SAPNWRFC_HOME and install:
still done as root, we will change it later when fix errors. Why it's showing v0.0.0 ? Now error is different:
|
Python 3.6 is not supported PyRFC, see: https://pypi.org/project/pyrfc/ Many Linux systems still use older pre-installed system Python and virtual environment installation is therefore recommended, using pyenv for example. It provides supported Python and avoids running applications as root. I need to investigate why the installation as you described did not fail with unsupported Python. |
I've uninstalled python v3.6 ( from our OS image ) and installed v3.9.7. Now I've an error during installation again:
|
We're advancing and getting new errors, previous one was probably because an old pip3 version. Upgraded with:
Now error has changed:
|
Something is apparently wrong with C++ development toolchain on your system. Cython transforms the Cython source to C++ and C++ compiler required to build. error: command '/bin/gcc' failed with exit code 1 Perhaps this helps: https://access.redhat.com/solutions/1137503 but I have no access. Here how the toolchain is installed on Ubuntu system, used in PyRFC testing: https://github.com/SAP/fundamental-tools/blob/main/docker/ubuntu-qa.Dockerfile#L22 |
Finally got installed pyrfc 3.3.
and finally got a successful installation of pyrfc:
Unfortunately we still not have a working pyrfc:
Moving to a user, we've repeated pyrfc installation and finally have it working but adding a new env variable: LD_LIBRARY_PATH
So at this point I understand we have pyrfc properly installed, but still failing in ansible task. But that's subject of another repo. Thanks !! |
Added the note IN README about Linux https://github.com/SAP/PyRFC#linux, to help other users with similar issues |
We've installed NW RFC SDK v7.50 PL 12 in our server running RHEL v8.6. As root we set en environment:
export SAPNWRFC_HOME=/tmp/sap_installers/nwrfcsdk
and run the installation:
pip3 install pyrfc
but fails immediately:
Any idea ?
The text was updated successfully, but these errors were encountered: