PyRFC icon indicating copy to clipboard operation
PyRFC copied to clipboard

ARM platform support: pyrfc import error on MacBook M1

Open ElGarno opened this issue 3 years ago • 1 comments

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

  • OS: MacOS Monterey 12.3.1
  • PyRFC version 2.5.0

Thanks for helping!

ElGarno avatar Jun 20 '22 08:06 ElGarno

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

  • https://launchpad.support.sap.com/#/notes/2573790
  • https://github.com/SAP/node-rfc/issues/249 The feature request can be created for SAP NWRFC SDK

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 avatar Jun 20 '22 08:06 bsrdjan

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

bsrdjan avatar Feb 01 '23 14:02 bsrdjan