-
Notifications
You must be signed in to change notification settings - Fork 61
Description
Recently, I updated my Julia to a new version:
Julia Version 1.9.1
Commit 147bdf428cd (2023-06-07 08:27 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin22.4.0)
CPU: 8 × Apple M1
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1)
Threads: 8 on 4 virtual cores
Environment:
JULIA_EDITOR = atom -a
JULIA_NUM_THREADS = 8
The package "SymPy" cannot be used properly. The error messages are given below. (The package remains work properly when using an old version Julia 1.7.3 on another computer.)
julia> using SymPy
[ Info: Precompiling SymPy [24249f21-da20-56a4-8eb1-6a02cf4ae2e6]
Python path configuration:
PYTHONHOME = '/Users/songhan.zhang/.julia/conda/3:/Users/songhan.zhang/.julia/conda/3'
PYTHONPATH = (not set)
program name = '/Users/songhan.zhang/.julia/conda/3/bin/python'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/Users/songhan.zhang/.julia/conda/3/bin/python'
sys.base_prefix = '/Users/songhan.zhang/.julia/conda/3'
sys.base_exec_prefix = '/Users/songhan.zhang/.julia/conda/3'
sys.platlibdir = 'lib'
sys.executable = '/Users/songhan.zhang/.julia/conda/3/bin/python'
sys.prefix = '/Users/songhan.zhang/.julia/conda/3'
sys.exec_prefix = '/Users/songhan.zhang/.julia/conda/3'
sys.path = [
'/Users/songhan.zhang/.julia/conda/3/lib/python310.zip',
'/Users/songhan.zhang/.julia/conda/3/lib/python3.10',
'/Users/songhan.zhang/.julia/conda/3/lib/python3.10/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00000001fdbd9e00 (most recent call first):
ERROR: Failed to precompile SymPy [24249f21-da20-56a4-8eb1-6a02cf4ae2e6] to "/Users/songhan.zhang/.julia/compiled/v1.9/SymPy/jl_R5cd1i".
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
@ Base ./loading.jl:2296
[3] compilecache
@ ./loading.jl:2163 [inlined]
[4] _require(pkg::Base.PkgId, env::String)
@ Base ./loading.jl:1805
[5] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:1660
[6] macro expansion
@ ./loading.jl:1648 [inlined]
[7] macro expansion
@ ./lock.jl:267 [inlined]
[8] require(into::Module, mod::Symbol)
@ Base ./loading.jl:1611