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

[MAC OS] Import Error (Python 3.7) #1547

Open
RootieWL opened this issue Jun 28, 2019 · 1 comment
Open

[MAC OS] Import Error (Python 3.7) #1547

RootieWL opened this issue Jun 28, 2019 · 1 comment
Assignees

Comments

@RootieWL
Copy link

RootieWL commented Jun 28, 2019

Platform

  • { OS version 10.14.5 }
  • { psutil version 5.4.7 }

Bug description
{ I tried to import psutil on python but I received an import error, I uninstall psutil and install psutil and I still receive the same error message. }

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/wenlin.kwek/Documents/fp_churn/venv/lib/python3.7/site-packages/psutil/__init__.py", line 157, in <module>
    from . import _psosx as _psplatform
  File "/Users/wenlin.kwek/Documents/fp_churn/venv/lib/python3.7/site-packages/psutil/_psosx.py", line 16, in <module>
    from . import _psutil_osx as cext
ImportError: dlopen(/Users/wenlin.kwek/Documents/fp_churn/venv/lib/python3.7/site-packages/psutil/_psutil_osx.cpython-37m-darwin.so, 2): Symbol not found: _kIOMasterPortDefault
  Referenced from: /Users/wenlin.kwek/Documents/fp_churn/venv/lib/python3.7/site-packages/psutil/_psutil_osx.cpython-37m-darwin.so
  Expected in: flat namespace
 in /Users/wenlin.kwek/Documents/fp_churn/venv/lib/python3.7/site-packages/psutil/_psutil_osx.cpython-37m-darwin.so
>>> import psutil
@fhaque
Copy link

fhaque commented Aug 21, 2019

So, as far as I can tell, this import issue happens for Python <3.7. 3.6 seems to be okay. I found this issue has affected my install of the Pants repo.

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

No branches or pull requests

3 participants