Skip to content
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

Closed
ay111 opened this issue Mar 14, 2024 · 12 comments
Closed

PyCall and PyPlot are crashing in Julia 1.10 #580

ay111 opened this issue Mar 14, 2024 · 12 comments

Comments

@ay111
Copy link

ay111 commented Mar 14, 2024

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.

@ufechner7
Copy link

ufechner7 commented Mar 17, 2024

Which Python version are you using? How was it installed?
And try to test it in a Julia REPL outside of vscode to be sure that this is not a vscode problem.

Works fine for me on Linux and on Windows 10...

@ay111
Copy link
Author

ay111 commented Mar 17, 2024 via email

@ay111
Copy link
Author

ay111 commented Mar 17, 2024 via email

@Alexander-Barth
Copy link

I have a similar error in julia 1.10.0 on Windows with python 3.10.13

julia> PyPlot.PyCall.pyversion
v"3.10.13"
Full error ``` julia> using PyPlot

julia> plot(1:10)

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: UNKNOWN at 0x7ffa6b41cf19 -- RaiseException at C:\Windows\System32\KERNELBASE.dll (unknown line)
in expression starting at none:0
RaiseException at C:\Windows\System32\KERNELBASE.dll (unknown line)
unknown function (ip: 00007ff9acf00145)
unknown function (ip: 00007ff9acf05434)
unknown function (ip: 00007ff9ab047b10)
unknown function (ip: 00007ff9ab0bccd4)
unknown function (ip: 00007ff9b1dddabf)
unknown function (ip: 00007ff9b1f676f3)
unknown function (ip: 00007ff9efc84953)
unknown function (ip: 00007ff9efc2d7fb)
unknown function (ip: 00007ff9efc302b1)
PyCFunction_GetFlags at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
unknown function (ip: 00007ff9efbe2028)
unknown function (ip: 00007ff9efbe2853)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyCell_Set at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyMethod_Self at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyCell_Set at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyMethod_Self at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
unknown function (ip: 00007ff9ef52448d)
unknown function (ip: 00007ff9eccdbadb)
unknown function (ip: 00007ff9ecde7384)
unknown function (ip: 00007ff9ecde673b)
unknown function (ip: 00007ff9ecda0971)
unknown function (ip: 00007ff9e9caac17)
unknown function (ip: 00007ff9ecde673b)
unknown function (ip: 00007ff9ecda0971)
unknown function (ip: 00007ff9ef526550)
PyCFunction_GetFlags at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
macro expansion at C:\Users\abarth.julia\packages\PyCall\1gn3u\src\exception.jl:108 [inlined]
#107 at C:\Users\abarth.julia\packages\PyCall\1gn3u\src\pyfncall.jl:43 [inlined]
disable_sigint at .\c.jl:473 [inlined]
__pycall! at C:\Users\abarth.julia\packages\PyCall\1gn3u\src\pyfncall.jl:42 [inlined]
_pycall! at C:\Users\abarth.julia\packages\PyCall\1gn3u\src\pyfncall.jl:29
_pycall! at C:\Users\abarth.julia\packages\PyCall\1gn3u\src\pyfncall.jl:11 [inlined]
#pycall#112 at C:\Users\abarth.julia\packages\PyCall\1gn3u\src\pyfncall.jl:80 [inlined]
pycall at C:\Users\abarth.julia\packages\PyCall\1gn3u\src\pyfncall.jl:80
unknown function (ip: 0000020df25bde76)
#7 at C:\Users\abarth.julia\packages\PyCall\1gn3u\src\gui.jl:208
#726 at .\asyncevent.jl:306
unknown function (ip: 0000020df25b401b)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
start_task at C:/workdir/src\task.c:1238
Allocations: 2907 (Pool: 2899; Big: 8); GC: 0

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x7ff9e50618ed -- PyUnicode_FromId at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
in expression starting at none:0
PyUnicode_FromId at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
Py_ExitStatusException at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
Py_FinalizeEx at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
Py_Finalize at C:\Users\abarth.julia\packages\PyCall\1gn3u\src\pyinit.jl:125
jfptr_Py_Finalize_7039 at C:\Users\abarth.julia\compiled\v1.10\PyCall\GkzkC_cEBmc.dll (unknown line)
_atexit at .\initdefs.jl:428
jfptr__atexit_83240.1 at C:\Users\abarth\AppData\Local\Programs\Julia-1.10.0\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
ijl_atexit_hook at C:/workdir/src\init.c:280
ijl_exit at C:/workdir/src\init.c:207
jl_exception_handler at C:/workdir/src\signals-win.c:337 [inlined]
jl_exception_handler at C:/workdir/src\signals-win.c:229
__julia_personality at C:/workdir/src\win32_ucontext.c:28
_chkstk at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
RtlRaiseException at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
RtlRaiseException at C:\Windows\SYSTEM32\ntdll.dll (unknown line)
RaiseException at C:\Windows\System32\KERNELBASE.dll (unknown line)
unknown function (ip: 00007ff9acf00145)
unknown function (ip: 00007ff9acf05434)
unknown function (ip: 00007ff9ab047b10)
unknown function (ip: 00007ff9ab0bccd4)
unknown function (ip: 00007ff9b1dddabf)
unknown function (ip: 00007ff9b1f676f3)
unknown function (ip: 00007ff9efc84953)
unknown function (ip: 00007ff9efc2d7fb)
unknown function (ip: 00007ff9efc302b1)
PyCFunction_GetFlags at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
unknown function (ip: 00007ff9efbe2028)
unknown function (ip: 00007ff9efbe2853)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyCell_Set at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyMethod_Self at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyOS_URandomNonblock at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_GetFuncDesc at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyFunction_Vectorcall at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyCell_Set at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
PyMethod_Self at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
unknown function (ip: 00007ff9ef52448d)
unknown function (ip: 00007ff9eccdbadb)
unknown function (ip: 00007ff9ecde7384)
unknown function (ip: 00007ff9ecde673b)
unknown function (ip: 00007ff9ecda0971)
unknown function (ip: 00007ff9e9caac17)
unknown function (ip: 00007ff9ecde673b)
unknown function (ip: 00007ff9ecda0971)
unknown function (ip: 00007ff9ef526550)
PyCFunction_GetFlags at C:\Users\abarth.julia\conda\3\x86_64\python310.dll (unknown line)
macro expansion at C:\Users\abarth.julia\packages\PyCall\1gn3u\src\exception.jl:108 [inlined]
#107 at C:\Users\abarth.julia\packages\PyCall\1gn3u\src\pyfncall.jl:43 [inlined]
disable_sigint at .\c.jl:473 [inlined]
__pycall! at C:\Users\abarth.julia\packages\PyCall\1gn3u\src\pyfncall.jl:42 [inlined]
_pycall! at C:\Users\abarth.julia\packages\PyCall\1gn3u\src\pyfncall.jl:29
_pycall! at C:\Users\abarth.julia\packages\PyCall\1gn3u\src\pyfncall.jl:11 [inlined]
#pycall#112 at C:\Users\abarth.julia\packages\PyCall\1gn3u\src\pyfncall.jl:80 [inlined]
pycall at C:\Users\abarth.julia\packages\PyCall\1gn3u\src\pyfncall.jl:80
unknown function (ip: 0000020df25bde76)
#7 at C:\Users\abarth.julia\packages\PyCall\1gn3u\src\gui.jl:208
#726 at .\asyncevent.jl:306
unknown function (ip: 0000020df25b401b)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
start_task at C:/workdir/src\task.c:1238
Allocations: 2907 (Pool: 2899; Big: 8); GC: 0
PS C:\Users\abarth> C:\Users\abarth\AppData\Local\Programs\Julia-1.10.0\bin\julia.exe

</details>
               _


@ay111
Copy link
Author

ay111 commented Mar 28, 2024

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> using DifferentialEquations, PyPlot

julia> x=range(0,2pi,100)
0.0:0.06346651825433926:6.283185307179586

julia> plot(x,sin.(x))
1-element Vector{PyCall.PyObject}:
PyObject <matplotlib.lines.Line2D object at 0x0000023A997CFF70>

(b)
julia> using PyPlot
julia> x=range(0,2pi,100)
julia> plot(x,sin.(x))
Terminal crashes

@ufechner7
Copy link

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?

@ay111
Copy link
Author

ay111 commented Mar 29, 2024 via email

@NitaKihtan-sHeir
Copy link

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.

@ay111
Copy link
Author

ay111 commented Jun 19, 2024 via email

@NitaKihtan-sHeir
Copy link

Ok, let me try.

@Alexander-Barth
Copy link

Alexander-Barth commented Oct 29, 2024

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).
I also deleted the C:\Users\...\.julia\conda directory, but I am not sure if this is necessary.

Thanks to all those involved for addressing this issue!

@stevengj
Copy link
Member

Closing as not reproducible.

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

5 participants