Comments (4)
The deprecation warning seems to be matplotlib's fault: their wx backend is using an obsolete wx API function. As suggested on stackoverflow, you can try to workaround this by initializing your own wx app before initializing matplotlib/pylab: do wxapp = pyimport("wx")[:App](false)
. But I'm not sure why merely using a deprecated function would cause this error. (I don't see it on my system, but I'm probably just using an older version of wx.)
To use a different backend, try running e.g. pygui(:qt)
before doing @pylab
.
Do you happen to know what the default matplotlib backend is on your OSX setup? I think you can do pyimport("matplotlib")[:get_backend]()
to find this out.
from pycall.jl.
Trying wxapp = pyimport.... results in
ERROR: PyError (PyObject_Call) <type 'exceptions.SystemExit'>
SystemExit('This program needs access to the screen.\nPlease run with a Framework build of python, and only when you are\nlogged in on the main display of your Mac.',)
pygui(:qt) makes everything work! Thanks :) pygui(:gtk) does not work, which makes sense since I do not have it installed.
My default backend is MacOSX.
from pycall.jl.
Okay, that explains your error; wx does not know how to draw to the screen on your system for some reason (maybe you haven't installed the right components for MacOSX wxWidgets support?)
At some point, I'll change the default (e.g. to qt) when it is running on MacOS, although I'll try to see first whether I can support the Cocoa event loop directly (for the macosx matplotlib backend).
from pycall.jl.
Whoops, the patch was for JuliaPy/pyjulia#31, not this issue.
from pycall.jl.
Related Issues (20)
- notable startup latency HOT 3
- How to detect if Python object is class/function/property
- Incompatible with PythonCall.jl HOT 5
- Pkg.build("PyCall"), json.decoder.JSONDecodeError: Extra data
- ERROR: LoadError: syntax: invalid interpolation syntax: "$\"
- the ENV["PYTHON"]="path/to/python.exe" not work for python3.12.0 HOT 4
- LoadError: Couldn't find libpython while building PyCall HOT 5
- PyCall 1.96.2 breaks tests at Imbalance.jl HOT 5
- Error on building 'PyCall' argument not expected: --satisfied-skip-solve HOT 1
- buildutils.jl broken on Python 3.12 HOT 1
- Remove support for Python <=3.7
- Reproducible garbage collection-related segfaults on Python 3.12 HOT 3
- How can I use rospy through PyCall directly? HOT 1
- julia-1.10.0 _Py_DECREF segmentation faults (not present in 1.9.3)
- `Segmentation fault(core dumped)` when using multiple threads
- REPL crashes when importing pyvista objects
- Howto - Python yield statement HOT 1
- Segmentation fault ( Pycall [BUG] Segmentation fault at 0x0000000000000010 )
- Exception: EXCEPTION_ACCESS_VIOLATION at 0x7ffb1b1b0286 -- PyObject_Free
- build.jl is broken with mamba as conda provider HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycall.jl.