-
Notifications
You must be signed in to change notification settings - Fork 88
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
Tk library conflict on MacOS X #164
Comments
I meant, when typing the plot command |
Can you try
to see if the latest PyCall fixes it? |
It does not, unfortunately. I should add that I installed dependencies via the Homebrew method. |
What is the output of What Python distro are you using? (I recommend Anaconda Python.) |
(Possibly a dup of #103?) |
I tried to reinstall XQuartz as suggested in that thread (although my error message is different, my problem seems to be with TKinter. I should mention that I also have problems getting another package to work (SFML) whereas the rest of my packages work great. When I call
The output is
|
Also, I followed your suggestion in that thread:
|
Sorry - it works when I am in IJulia - but when I am in my console it opens a new window and throws the error message. Am I being stupid and the package is only supposed to work in IJulia? |
No, it should work in the terminal, too, but you need an appropriate GUI environment installed. I'm guessing you are using the |
I did not use the built-in Python, but the one from Homebrew, which must then be broken too. I did not want the Anaconda install, as I am on a small SSD and jealously guard my disk space (Anaconda is 3GB). I tried installing miniconda instead, but that gives the error 'no module site' (similar to JuliaPy/PyCall.jl#42) . |
You can use Miniconda via the Conda.jl package now. Just do:
and it should install and use |
I tried to do this and Julia crashes when there are two tk installation on the system. |
Anything new here ? I seem to get this problem if I use miniconda OR anaconda... Still got the unfamous using PyPlot |
Not a permanent fix, but the Qt4Agg backend works just fine. You just have to add |
Seems like a problem caused by your anaconda installation. You probably have an |
I solved it using instead the homebrew distribution for python. |
@Luthaf, many people seem to be running into this with Conda on MacOS X... some conflict between Conda and OSX's Tk libraries. |
I've partially worked around the problem by defaulting to the Qt backend (rather than Tk) if we seem to be using Anaconda Python. (I don't want to default to Qt unconditionally on Mac because it might not be installed. However, if we are using Anaconda then |
This is the fix that worked for me: python-pillow/Pillow#950 (comment) |
It seems like this is no longer an issue with recent Conda versions. |
When trying to print, we get
The text was updated successfully, but these errors were encountered: