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

LoadError: Couldn't find libpython #588

Closed
MMalakhov opened this issue Oct 9, 2018 · 3 comments · Fixed by JuliaLang/METADATA.jl#18770
Closed

LoadError: Couldn't find libpython #588

MMalakhov opened this issue Oct 9, 2018 · 3 comments · Fixed by JuliaLang/METADATA.jl#18770

Comments

@MMalakhov
Copy link

MMalakhov commented Oct 9, 2018

I can't build PyCall on linux mint 18.3

julia> Pkg.build("PyCall")
Building Conda ─→ ~/.julia/packages/Conda/hsaaN/deps/build.log
Building PyCall → ~/.julia/packages/PyCall/rUul9/deps/build.log
┌ Error: Error building PyCall:
│ ERROR: LoadError: Couldn't find libpython; check your PYTHON environment variable.

│ The python executable we tried was python3 (= version 3.5);
│ the library names we tried were ["libpython3.5m.so", "libpython3.5m", "libpython3.5", "libpython"]
│ and the library paths we tried were AbstractString["/usr/lib", "/usr/lib", "/usr", "/usr/lib"]
│ Stacktrace:
│ [1] error(::String) at ./error.jl:33
│ [2] find_libpython(::String) at /home/mikhail/.julia/packages/PyCall/rUul9/deps/build.jl:129
│ [3] top-level scope at logging.jl:313
│ [4] top-level scope at /home/mikhail/.julia/packages/PyCall/rUul9/deps/build.jl:196
│ [5] include at ./boot.jl:317 [inlined]
│ [6] include_relative(::Module, ::String) at ./loading.jl:1041
│ [7] include(::Module, ::String) at ./sysimg.jl:29
│ [8] include(::String) at ./client.jl:388
│ [9] top-level scope at none:0
│ in expression starting at /home/mikhail/.julia/packages/PyCall/rUul9/deps/build.jl:170
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1069

I have python3.5 at /usr/local/lib

And yes, I saw #565 and #556
They write that solved issue. But I don't understand what to do, I'm not such cool programmer as you.

PS
I installed everything without problems in May, what happened?

@tkf
Copy link
Member

tkf commented Oct 9, 2018

The fix is not released yet. See #586

If you can't wait the release, you can use ]add PyCall#master (see ]?add for what it means).

@alec-hoyland
Copy link

Just in case, check to make sure that you have the dev version of python installed as well (#430).

@tkf
Copy link
Member

tkf commented Oct 11, 2018

Should be fixed now #586.

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

Successfully merging a pull request may close this issue.

3 participants