We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, when I try to import the the lib that I cloned to modules/libs/ with these lines :
modules/libs/
sys.path.insert(0, "modules/libs/") import psutil
I got this error : ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import)
ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import)
Any ideas ? (I don't want to use pip or venv to get the library, because it needs to be flexible)
The text was updated successfully, but these errors were encountered:
psutil is not a pure python module, it needs to be compiled, so you can't get away with sys.path.insert.
sys.path.insert
Sorry, something went wrong.
Okay, do you have any ideas to import this lib without pip and venv ? Maybe compile it from the source code ?
Okay I found, just compile it locally with a simple python interpreter, and add the result of the compilation in sys.path
sys.path
No branches or pull requests
Summary
Description
Hi, when I try to import the the lib that I cloned to
modules/libs/
with these lines :I got this error :
ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import)
Any ideas ? (I don't want to use pip or venv to get the library, because it needs to be flexible)
The text was updated successfully, but these errors were encountered: