JuliaPy / JuliaPy/PyPlot.jl

PyEval_RestoreThread: NULL tstate

Đang mở
#274 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Julia
Star
488
Fork
90
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

First I have installed PyPlot:

ENV["PYTHON"] = ""
Pkg.add("PyCall")
Pkg.build("PyCall")
Pkg.add(PyPlot")

Second, I have a very basic code in a file called test.jl:

using PyPlot
plot(1,1)

When I run this code into Atom or Julia everything is OK. The problem is when I open a cmd from windows 10, 64 bits and I call this program:

C:\Users\%USERNAME%\AppData\Local\Julia-0.5.0\bin\julia.exe "C:\Users\%USERNAME%\Desktop\test.jl"

I have the following Error: "Fatal Python error: PyEval_RestoreThread: NULL tstate"

I am runing with :

Julia Version 0.5.0
Commit 3c9d753 (2016-09-19 18:14 UTC)
Platform Info:
System: NT (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.7.1 (ORCJIT, haswell)

For python, the miniconda version was installed automatically.

Thanks

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Reproduce the failure with test.jl and the Julia 0.5.0 Windows command shown, then compare it with the working Atom or Julia invocation. Start by examining PyPlot and PyCall initialization on Windows; done means the same script runs from cmd without the PyEval_RestoreThread error.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
julia, matplotlib, python
Lĩnh vực
data-visualization
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.