Updating to 1.11.7 causes PyCall to fail to build

I just updated Julia from 1.11.6 to 1.11.7. Then some of my packages such as PyCall cannot be built any more. Here’s the error —

    Building Conda ─→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/b19db3927f0db4151cb86d073689f2428e524576/build.log`
    Building PyCall → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/9816a3826b0ebf49ab4926e2b18842ad8b5c8f04/build.log`
ERROR: Error building `PyCall`: 

# All requested packages already installed.

┌ Info: Using the Python distribution in the Conda package by default.
└ To use a different Python version, set ENV["PYTHON"]="pythoncommand" and re-run Pkg.build("PyCall").
[ Info: Running `conda install -y --satisfied-skip-solve numpy` in root environment
ERROR: LoadError: Couldn't find libpython; check your PYTHON environment variable.

The python executable we tried was /home/xing/.julia/conda/3/bin/python (= version 3.12).
Re-building with
    ENV["PYCALL_DEBUG_BUILD"] = "yes"
may provide extra information for why it failed.

Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] find_libpython(python::String; _dlopen::typeof(Base.Libc.Libdl.dlopen))
   @ Main ~/.julia/packages/PyCall/1gn3u/deps/buildutils.jl:80
 [3] find_libpython(python::String)
   @ Main ~/.julia/packages/PyCall/1gn3u/deps/buildutils.jl:48
 [4] top-level scope
   @ ~/.julia/packages/PyCall/1gn3u/deps/build.jl:82
 [5] include(fname::String)
   @ Main ./sysimg.jl:38
 [6] top-level scope
   @ none:5
in expression starting at /home/xing/.julia/packages/PyCall/1gn3u/deps/build.jl:43

Any suggestions?

Are you using Juliaup? If so, can you show the output of versioninfo()? There was an issue in Juliaup, it’s possible you got a wrong build of Julia (32-bit instead of 64-bit, which works for most stuff, but it’s not what you’d like to use).

3 Likes

Yes. I am using juliaup. It is a bit strange because I just tried updating on my second computer. It works fine. So maybe juliaup has been fixed. I will try tomorrow on the computer which has an issue.

Yes:

Simply updating Juliaup should now fix your issues.