SAP / PyRFC

Asynchronous, non-blocking SAP NW RFC SDK bindings for Python
http://sap.github.io/PyRFC
Apache License 2.0
501 stars 133 forks source link

ARM platform support: pyrfc import error on MacBook M1 #278

Closed ElGarno closed 1 year ago

ElGarno commented 2 years ago

Describe the bug I have a problem using the pyrfc (2.5.0) library to collect data from SAP. I installed this library via pycharm and also manually with pip and in both cases the installation is successful.

Problem arises when importing the libraby: dlopen(/.../venv/lib/python3.10/site-packages/pyrfc/pyrfc.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_RfcAppendNewRow'

I use a MacBook Pro M1, Python 3.10 (as you can see) and also tried to use pynwrfc but nothing worked. Any ideas?

To Reproduce I installed the library as described on http://sap.github.io/PyRFC/install.html --> Mac

Environment

Thanks for helping!

bsrdjan commented 2 years ago

SAP NWRFC SDK is not supported on ARM platform and connectors based on RFC SDK are not supported on ARM:

The pip installation on M1 should actually fail because RFC SDK is not supported on that platform, I need to investigate and fix that bug

bsrdjan commented 1 year ago

:tada: ARM is now supported, using PyRFC 2.7.1 and SAP NW RFC SDK 7.50.11 :tada: