SAP / PyRFC

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

PyRFC Virtual Environment Configuration #172

Closed Idan-fishman-old closed 4 years ago

Idan-fishman-old commented 4 years ago

Hi There,

First of all I want to thank you for creating this module, creating many automations using it. My Issue is configuring the virtual environment - after I created the venv, the pyrfc module doesn't find the files of the lib, although the Environment Variable SAPNWRFC_HOME=/usr/local/sap/nwrfcsdk is defined as required.

I want to emphasise, the module is working while using the global environment, but not with the venv.

maybe i should do another thing than just pip install pynwrfc - at the venv?

bsrdjan commented 4 years ago

pip install pynwrfc should work in venv as well, release testing for different Python versions works that way. Could you please uninstall the module by pip uninstall pynwrfc and check with pip freeze if eventually another pyrfc module installed? There is a pyrfc module on PyPI, not related to Python/RFC connectivity.

Could you please post the full error log?

Idan-fishman-old commented 4 years ago

Tried to install as you said.

Screen Shot 2020-04-21 at 13 00 43

Idan-fishman-old commented 4 years ago

I think the problem is more associated to vs code than the pynwrfc module.

Screen Shot 2020-04-21 at 13 29 48

as you can see: the machine terminal can import pyrfc easily, but when doing the same operation at vs code it raises an error.