You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
Traceback (most recent call last):
File "", line 1, in
File "/Library/Python/2.7/site-packages/psutil/init.py", line 159, in
from . import _psosx as _psplatform
File "/Library/Python/2.7/site-packages/psutil/_psosx.py", line 15, in
from . import _psutil_osx as cext
ImportError: dynamic module does not define init function (init_psutil_osx)
I am installing psutil library using pip2 (pip2 install psutil) which should be building the library using py2, instead of py3 but when I try to import psutil in python2 script, above error is thrown. What would be the correct way to use this library in a py2 script?
The text was updated successfully, but these errors were encountered:
Platform
Bug description
Traceback (most recent call last):
File "", line 1, in
File "/Library/Python/2.7/site-packages/psutil/init.py", line 159, in
from . import _psosx as _psplatform
File "/Library/Python/2.7/site-packages/psutil/_psosx.py", line 15, in
from . import _psutil_osx as cext
ImportError: dynamic module does not define init function (init_psutil_osx)
I am installing psutil library using pip2 (pip2 install psutil) which should be building the library using py2, instead of py3 but when I try to import psutil in python2 script, above error is thrown. What would be the correct way to use this library in a py2 script?
The text was updated successfully, but these errors were encountered: