Issue #45 resolved

psutil error: ImportError: No module named _psutil_osx

Arturo Filastò
created an issue

There are problems in building psutil on OSX 10.7. It appears to copy the dynlibs to the appropriate directory, but it then fails to import it.

This is the script I am trying to build: {{{ $ cat }}} {{{ import psutil print psutil.cpu_times() }}}

This is my {{{ $ cat }}}

{{{ from distutils.core import setup import py2app

setup( app=[""], ) }}}

$ python py2app

$ ./dist/ {{{ Traceback (most recent call last): File "/Users/y/Documents/code/building/osx/dist/", line 50, in <module> _run('') File "/Users/y/Documents/code/building/osx/dist/", line 47, in _run execfile(path, globals(), globals()) File "/Users/y/Documents/code/building/osx/dist/", line 9, in <module> import psutil File "psutil/init.pyc", line 77, in <module> File "psutil/_psosx.pyc", line 14, in <module> ImportError: No module named _psutil_osx }}}

If I look inside of the lib-dynload directory I see it there though: {{{ $ ls dist/


cc Michele Orrù

Comments (4)

  1. Log in to comment