Closed saberabdelhady closed 4 years ago
pyrfc
from PyPi is a different module. Try pip install pynwrfc
See #152
Also the SAP NWRFC SDK installation check in https://github.com/SAP/PyRFC/issues/165#issuecomment-606671429
1 - i DownloadedSAP NW RFC SDK 7.50 and Visual C++ Redistributable Packages for Visual Studio 2013
2- Create the SAP NW RFC SDK home directory, e.g. c:\nwrfcsdk
Set the SAPNWRFC_HOME env variable: SAPNWRFC_HOME=c:\nwrfcsdk
Unpack the SAP NW RFC SDK archive to it, e.g. c:\nwrfcsdk\lib shall exist.
3- install setup.py for windows https://github.com/SAP/PyRFC/releases/tag/2.0.4
pip install Cython python -m pip install -U pip setuptools python -m pip install --upgrade pip
4- pip install pynwrfc --no-binary :all:
and i install https://visualstudio.microsoft.com/downloads/
ERROR: Command errored out with exit status 1: 'c:\python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\support\AppData\Local\Temp\pip-install-xnuuvxu\pynwrfc\setup.py'"'"'; file='"'"'C:\Users\support\AppData\Local\Temp\pip-install-xnuuvxu\pynwrfc\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\support\AppData\Local\Temp\pip-record-6p4crucj\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python\Include\pynwrfc' Check the logs for full command output.
thanks now i connect to sap from Ubuntu 18.04
is there any training video to get data from sap
is there any training video to get data from sap
i already install on windows 10 C:\Python37>pip3 install pyrfc Collecting pyrfc Downloading pyrfc-0.1.2.tar.gz (3.5 kB) Installing collected packages: pyrfc Running setup.py install for pyrfc ... done Successfully installed pyrfc-0.1.2
but when import i see this issue
Traceback (most recent call last): File "<pyshell#2>", line 1, in from .pyrfc import * ModuleNotFoundError: No module named 'main.pyrfc'; 'main' is not a package