Skip to content

Cannot plot NSException #433

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

Closed
rveltz opened this issue Apr 5, 2019 · 4 comments
Closed

Cannot plot NSException #433

rveltz opened this issue Apr 5, 2019 · 4 comments

Comments

@rveltz
Copy link

rveltz commented Apr 5, 2019

Hi,

I removed anaconda from my computer and try to have a clean install. However I am still unable to plot...

Am y doing something wrong?

Thank you,

Bests

julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.1.0 (2019-01-21)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> ENV["PYTHON"]=""
""

(v1.1) pkg> add PyCall PyPlot
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
  Updating `~/.julia/environments/v1.1/Project.toml`
  [438e738f] + PyCall v1.91.1
  [d330b81b] + PyPlot v2.8.0
  Updating `~/.julia/environments/v1.1/Manifest.toml`
  [438e738f] + PyCall v1.91.1
  [d330b81b] + PyPlot v2.8.0

julia> using PyPlot

julia> plot(rand(10))
2019-04-05 16:04:59.861 julia[6702:464135] -[NSApplication _setup:]: unrecognized selector sent to instance 0x7ff4d89a8100
2019-04-05 16:04:59.862 julia[6702:464135] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSApplication _setup:]: unrecognized selector sent to instance 0x7ff4d89a8100'
*** First throw call stack:
(
)
libc++abi.dylib: terminating with uncaught exception of type NSException

signal (6): Abort trap: 6
in expression starting at no file:0
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 20963753 (Pool: 20960122; Big: 3631); GC: 46
Abort trap: 6
@stevengj
Copy link
Member

stevengj commented Apr 5, 2019

What are PyPlot.backend and PyPlot.PyCall.python?

@rveltz
Copy link
Author

rveltz commented Apr 5, 2019

"tkagg" and "/Users/rveltz/.julia/conda/3/bin/python"

@stevengj
Copy link
Member

stevengj commented Apr 5, 2019

This is #410 — the tkagg backend is broken (in Python as well) on macos, apparently due to a tkinter bug. Workaround is to use the qt5 backend.

@stevengj
Copy link
Member

stevengj commented Apr 5, 2019

In PyPlot master (6bd7b68), it is changed to no longer try tk first.

@stevengj stevengj closed this as completed Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants