JuliaPy / JuliaPy/PyPlot.jl

PyPlot needs to be reinstalled after Julia is interrupted

Đang mở
#460 0 bình luận 1 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ả

Hello,

I have Julia 1.2.0 installed with Plots. For installing PyPlot backend without manually installing Python, I followed the instructions in [https://github.com/JuliaPy/PyPlot.jl](url) and did:

`ENV["PYTHON"]=""`
`Pkg.build("PyCall")`
`Pkg.add("PyPlot")`
`using Plots`
`pyplot()`

Then, everything went fine. However, if I interrupt Julia (not with Ctrl+C, but, e.g., when the light suddenly turns off and the computer suddenly shuts down), when I execute Julia again, I receive the following message:

`error compiling __init__: could not load library "/tmp/lib/libpython3.7m.so.1.0"
/tmp/lib/libpython3.7m.so.1.0: cannot open shared object file: No such file or directory`

and I have to reinstall PyPlot with the commands above.

I have the same problem in two computers (one uses Debian Stretch, the other uses Ubuntu).

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

The report centers on ENV["PYTHON"], Pkg.build("PyCall"), Pkg.add("PyPlot"), and pyplot() after an abrupt Julia shutdown; start by reproducing the restart failure on Julia 1.2.0 with the listed Debian or Ubuntu setup. Done means PyPlot initializes after restart without reinstalling, but no source files or tests are named.

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
Khá rõ ràng
Mức phù hợp với người mới
35/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.