-
Notifications
You must be signed in to change notification settings - Fork 87
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
Pyplot crash on window #575
Comments
This issue occurs on a particular Windows machine but not others, so it may be difficult to reproduce. |
On the same Windows 11 box I created a new user
|
I'm experiencing the same issue, also on Windows 11. I have tried Julia v. 1.6.7 and v. 1.10.0, and reinstalled everything several times, but I get the same issue every time. Matplotlib works fine when called from Python. I also tried a different user on the same PC but got the same result. For me, this issue happened after I reinstalled Windows 11 (and Julia and Python); before that, everything was working perfectly. |
I got it to work for me. My best guess is that something goes wrong when PyPlot uses Conda to install Matplotlib. So here is what I did to make it work:
After that, when typing |
Did you try:
This installs a version of Python and Matplotlib for Julia only and thus avoids compatibility issues with versions installed outside of Julia. |
I tried both of the solutions mentioned in the two previous posts (installing Python and Matplotlib "manually" and then installing the PyPlot package, followed by |
Have you tried switching to a different Matplotlib backend? (e.g. set Try using the same backend that you are using from Python, as printed by |
I retried the solution of manually installing Python and Matplotlib, setting the Windows environment variable PYTHON, and then reinstalling Julia and PyPlot. It didn't work yesterday, but it worked today. The difference between what I did yesterday versus today is: yesterday I partially cleaned out Julia and PyPlot; today I fully cleaned them out (uninstall julia and delete the entire .julia folder). So this problem is solved for me, and I will close the issue. |
A short PyPlot program is crashing on my Windows 11 machine (i.e., the Julia REPL exits with no error message). I verified that it works correctly on Linux. This is Julia 1.9.3, PyPlot 2.11.2. The data file
br1copy.txt [br1copy.txt](https://github.com/JuliaPy/PyPlot.jl/files/13823984/br1copy.txt)
is attached.The text was updated successfully, but these errors were encountered: