kiranvizru / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

py2exe build throws error during runtime #385

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Create a project importing psutil on windows.
2.  Build the project using py2exe
3.  Run the project.

What is the expected output?
The project should run.

What do you see instead?
Traceback (most recent call last):
  File "zipextimporter.pyc", line 82, in load_module
  File "myproject.pyc", line 6, in <module>
  File "zipextimporter.pyc", line 82, in load_module
  File "psutil\__init__.pyc", line 77, in <module>
  File "zipextimporter.pyc", line 82, in load_module
  File "psutil\_psmswindows.pyc", line 15, in <module>
  File "zipextimporter.pyc", line 98, in load_module
ImportError: MemoryLoadLibrary failed loading _psutil_mswindows.pyd

What version of psutil are you using? What Python version?
Python 2.7.5, psutil 0.7.1

On what operating system? Is it 32bit or 64bit version?
Windows 7, 64bit

Additional Comments?
Problem is duplicated here:
http://sourceforge.net/tracker/index.php?func=detail&aid=3603433&group_id=15583&
atid=115583

Note: setting bundle_level to 3 will not work for me because of other 
requirements.

Original issue reported on code.google.com by kreativi...@gmail.com on 23 May 2013 at 8:34

GoogleCodeExporter commented 9 years ago
I don't think I've ever seen "MemoryLoadLibrary".
I suppose this is related to py2exe, not psutil.

Original comment by g.rodola on 24 May 2013 at 9:12

GoogleCodeExporter commented 9 years ago
Closing this up for now as it doesn't appear to be related with psutil per-se.

Original comment by g.rodola on 9 Jul 2013 at 10:57

GoogleCodeExporter commented 9 years ago
I dont think this should be closed and I confirm that its not an issue with 
Py2Exe. Remove psutil imports and everything starts working

Original comment by gj1...@gmail.com on 26 Nov 2013 at 5:13

GoogleCodeExporter commented 9 years ago
By googling this *does* look like a py2exe issue.
I wasn't able to find a post or anything else suggesting a solution though.
I've closed this issue because to me this looks like something which simply 
cannot be fixed from psutil.

Original comment by g.rodola on 27 Nov 2013 at 9:36