Skip to content
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

load _pyrfc.pyd in Windows also need Microsoft vs runtime #19

Closed
JunyanHe opened this issue Jul 6, 2016 · 3 comments
Closed

load _pyrfc.pyd in Windows also need Microsoft vs runtime #19

JunyanHe opened this issue Jul 6, 2016 · 3 comments

Comments

@JunyanHe
Copy link

JunyanHe commented Jul 6, 2016

I met a problem during importing pyrfc although I have installed SAPNWRFC before,

import pyrfc
Traceback (most recent call last):
File "", line 1, in
File "C:\Python27\lib\site-packages\pyrfc-1.9.4-py2.7-win-amd64.egg\pyrfc__in
it__.py", line 22, in
from pyrfc._pyrfc import get_nwrfclib_version, Connection, TypeDescription,
FunctionDescription, Server
ImportError: DLL load failed: The specified module could not be found.

I spent a lot of time to investigate the root cause of this. Finally, I found the _pyrfc.pyd may be compiled with MSVS, in my case, MSVS 2015. I downloaded and installed Visual C++ Redistributable for Visual Studio 2015 to resolve this problem.
https://www.microsoft.com/en-us/download/details.aspx?id=48145

I suggest to note the version of Visual Studio to installation manual to avoid similar problem. Thanks.

@bsrdjan
Copy link
Member

bsrdjan commented Jul 18, 2016

Thank you very much for the very good suggestion. I leave it open, as a reminder to add to manual.

@bsrdjan
Copy link
Member

bsrdjan commented Feb 27, 2017

Closed with README fix.

@bsrdjan bsrdjan closed this as completed Feb 27, 2017
@bsrdjan
Copy link
Member

bsrdjan commented Feb 27, 2017

Just a quick troubleshooting tip.

After the SAP NW RFC Library installed on Windows system and lib subfolder added to path, you may start the rfcexec.exe test program, from the bin subfolder, to verify the SAP NW RFC Lib installation.

If the popup comes up with an error indicating that SAPNWRFC.dll (or another DLL from the lib folder) is missing, although the dll is there, the most likely cause is that Microsoft redistributable is missing, or not installed properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants