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

DLL load failed - cx_freeze #638

Closed
JonasR- opened this issue Jun 23, 2015 · 7 comments · Fixed by #653
Closed

DLL load failed - cx_freeze #638

JonasR- opened this issue Jun 23, 2015 · 7 comments · Fixed by #653

Comments

@JonasR-
Copy link

JonasR- commented Jun 23, 2015

I get the following stacktrace when I try to start a program using the 3.0.1 psutil library.
The program is packed using cx_freeze on a Windows 7 machine and gets executed on a Windows XP machine.
The problem does not occur on psutil 2.2.1

Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in <module>
  File "main.py", line 6, in <module>
  File "C:\Python27\lib\site-packages\psutil\__init__.py", line 110, in <module>
  File "C:\Python27\lib\site-packages\psutil\_pswindows.py", line 16, in <module>
  File "ExtensionLoader_psutil__psutil_windows.py", line 22, in <module>
  File "ExtensionLoader_psutil__psutil_windows.py", line 14, in __bootstrap__
ImportError: DLL load failed: Die angegebene Prozedur wurde nicht gefunden.
@giampaolo
Copy link
Owner

Not sure how to reproduce this. Does the problem occur if you install psutil from scratch on Windows XP (either via pip or by installing the exe)?

@JonasR-
Copy link
Author

JonasR- commented Jul 9, 2015

Thanks for your response
Yes this also happens on my freshly installed Python 2.7.10 with psutil 3.0.1. Its the same Windows XP system and psutil was installed with "psutil-3.0.1.win32-py2.7.exe".
The traceback looks a bit different but I think it cohere

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\psutil\__init__.py", line 110, in <module>

    from . import _pswindows as _psplatform
  File "C:\Python27\lib\site-packages\psutil\_pswindows.py", line 16, in <module
>
    from . import _psutil_windows as cext
ImportError: DLL load failed: Die angegebene Prozedur wurde nicht gefunden.

By the way the translation for "Die angegebene Prozedur wurde nicht gefunden." is "The specified procedure could not be found"

@JonasR-
Copy link
Author

JonasR- commented Jul 9, 2015

Looks like msvcr90.dll is missing. Thats strange because Microsoft Visual C++ 2008 Redist and SP1 of it are installed.
2015-07-09_13_44_24_001
2015-07-09_13_43_52_001

@mrjefftang
Copy link
Collaborator

I haven't tried 3.0.1 yet but it might be related to the inet_ntop issue I saw earlier.

@JonasR- Have you tried copying the msvcr90.dll to the same directory as the python app?

@JonasR-
Copy link
Author

JonasR- commented Jul 14, 2015

Sorry for the late response.
Also with the dll copied to the working dir I got no change.
"Dependency Walker" sayes it gets found

2015-07-14_10_12_25_001

@mrjefftang
Copy link
Collaborator

I can confirm the same error on WinXP with Python 2.7.10 and psutil 3.0.1 and psutil 3.0.0.

@mrjefftang
Copy link
Collaborator

I just did some testing with the zipped release of 3.0.1 and it's definitely due to the issue identified in #616 . I'll work on that patch to get it working across WinXP / Win 7.

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

Successfully merging a pull request may close this issue.

3 participants