-
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
PyCall and PyPlot are crashing in Julia 1.10 #580
Comments
Which Python version are you using? How was it installed? Works fine for me on Linux and on Windows 10... |
I use Conda.jl. Kindly guide me on how to check the Python version working
with my Julia.
…On Sun, 17 Mar 2024, 10:07 pm Uwe Fechner, ***@***.***> wrote:
Which Python version are you using? How was it installed?
Works fine for me on Linux and on Windows 10...
—
Reply to this email directly, view it on GitHub
<#580 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK4NBYYUQWAZ6L54JK5O3QTYYXZXRAVCNFSM6AAAAABEWKDL2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBSGYYDCMJXHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I used the command
using PyCall
PyCall.pyversion
The result is v"3.10.6".
On Sun, 17 Mar 2024, 11:43 pm Rasheed Adetona, ***@***.***>
wrote:
… I use Conda.jl. Kindly guide me on how to check the Python version working
with my Julia.
On Sun, 17 Mar 2024, 10:07 pm Uwe Fechner, ***@***.***>
wrote:
> Which Python version are you using? How was it installed?
>
> Works fine for me on Linux and on Windows 10...
>
> —
> Reply to this email directly, view it on GitHub
> <#580 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AK4NBYYUQWAZ6L54JK5O3QTYYXZXRAVCNFSM6AAAAABEWKDL2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBSGYYDCMJXHA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
I have a similar error in julia 1.10.0 on Windows with python 3.10.13
Full error``` julia> using PyPlotjulia> plot(1:10) Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks. Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
|
If you load DifferentialEquations before PyPlot in Julia 1.10 with Python version 3.10.6 , it works. Otherwise it returns error. See the examples below. (a) julia> x=range(0,2pi,100) julia> plot(x,sin.(x)) (b) |
Did you try (as explained in the README):
which will install a version of Python and Matplotlib for Julia projects only? |
I just tried it. PyPlot is still crashing.
…On Fri, Mar 29, 2024 at 8:53 PM Uwe Fechner ***@***.***> wrote:
Did you try (as explained in the README):
ENV["PYTHON"]=""
Pkg.build("PyCall")
which will install a version of Python and Matplotlib for Julia projects
only?
—
Reply to this email directly, view it on GitHub
<#580 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK4NBY3RNHSAZWWLRKB4LKDY2WTDHAVCNFSM6AAAAABEWKDL2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRXGYYDKNRVGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I have same problem,but I think it is problem belongs to PyCall and PyPlot 's support. I used them on julia 1.9 without any problem in the past. |
I noticed that after adding MathJaxRenderer,jl to my Julia 1.10, Pycall.jl
and PyPlot.jl are now working perfectly. My Julia version is 1.10.4.
…On Wed, Jun 19, 2024 at 5:34 AM NitaKihtan-sHeir ***@***.***> wrote:
I have same problem,but I think it is problem belongs to PyCall and PyPlot
's support. I used them on julia 1.9 without any problem in the past.
—
Reply to this email directly, view it on GitHub
<#580 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK4NBY2IFYHKBFR7RWN2KPTZID33JAVCNFSM6AAAAABEWKDL2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZXGUYDKNRZGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Ok, let me try. |
I just tried today with julia 1.11.1, PyPlot 2.11.5, PyCall 1.96.4 and python 3.12.7, and it works again on Windows (it always worked on Linux). Thanks to all those involved for addressing this issue! |
Closing as not reproducible. |
PyCall and PyPlot are crashing in REPL /terminal of Juliaup (Julia 1.10.2) and Vscode in windows 11. Here is the error generated while trying to plot sin(x).
using PyCall,PyPlot
pygui(true)
x=LinRange(0,2pi,100)plot(x,sin.(x))
The terminal process "C:\Users\adeto.julia\juliaup\julia-1.10.2+0.x64.w64.mingw32\bin\julia.exe '-i', '--banner=no', '--project=c:\Users\adeto\My Drive\New files\JJULLIA', 'c:\Users\adeto.vscode\extensions\julialang.language-julia-1.75.2\scripts\terminalserver\terminalserver.jl', '.\pipe\vsc-jl-repl-8079a73b-6db7-4fb4-948e-25eb58c5e36e', '.\pipe\vsc-jl-cr-5815c0ff-3008-48d5-a472-3db500e536c1', 'USE_REVISE=true', 'USE_PLOTPANE=true', 'USE_PROGRESS=true', 'ENABLE_SHELL_INTEGRATION=true', 'DEBUG_MODE=false'" terminated with exit code: -1066598274.
The text was updated successfully, but these errors were encountered: