Open ay111 opened 3 months ago
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...
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 https://github.com/JuliaPy/PyPlot.jl/issues/580#issuecomment-2002601178, 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 https://github.com/JuliaPy/PyPlot.jl/issues/580#issuecomment-2002601178, 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
julia> PyPlot.PyCall.pyversion
v"3.10.13"
_
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
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?
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 https://github.com/JuliaPy/PyPlot.jl/issues/580#issuecomment-2027605656, 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 https://github.com/JuliaPy/PyPlot.jl/issues/580#issuecomment-2177505696, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK4NBY2IFYHKBFR7RWN2KPTZID33JAVCNFSM6AAAAABEWKDL2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZXGUYDKNRZGY . You are receiving this because you authored the thread.Message ID: @.***>
Ok, let me try.
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.