-
Notifications
You must be signed in to change notification settings - Fork 1.2k
std::runtime_error when loading matplotlib.pyplot #8
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
Comments
Hi, I don't know much about mac, but |
I get the same error on Mac. a) I can import matplotlib.pyplot from python interpreter correctly. b) after I set PYTHONPATH environment variable, I still get the same error. |
I found a solution at https://stackoverflow.com/questions/21784641/installation-issue-with-matplotlib-python?noredirect=1&lq=1
|
I am running into this same issue now, although in a different environment. I'm running on Ubuntu 18.04. Python version is 3.7. Pip dependencies (i.e. matplotlib) are installed in a virtualenv. In order for it to be able to import matplotlib, I have to explicitly set my PYTHONPATH like below, even though I have activated the virtualenv:
With PYTHONPATH set, then I get the error about not being able to import matplotlib.pyplot.
It's also worth saying that I am building this with bazel, so it's possible that is causing problems. But I don't think it's related to what I'm seeing. |
Same error on Windows 10, Visual Studio 2019, Python 310 |
I had this error in an ubuntu docker 16.04 and 20.04 container.
From there I got this error:
Which once I installed tk everything worked correctly.
|
On my system (macos on an M1 Mac, installed python using homebrew), it turned out that I got this error because Installing __ |
I am same issue now,use Anaconda on Ubuntu 22.04, Python version is 2.7, |
In my case, this seemed to be fixed by installing python-tk |
On osx 10.10.5, the examples build cleanly but when I try to run them I get:
.libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: Error loading module matplotlib.pyplot!
/bAbort trap: 6
I suspect this is a system path issue as I have matplotlib installed on the system:
In [9]: matplotlib.path
Out[9]: ['/Library/Python/2.7/site-packages/matplotlib']
The text was updated successfully, but these errors were encountered: