Getting precompilation error for SymPy

Sahil_Khan
Wed, 29 Nov 2023 13:05:00 +0000
New to Julia

I’m getting this error while trying to precompile SymPy

[ Info: Precompiling SymPy [24249f21-da20-56a4-8eb1-6a02cf4ae2e6]
Python path configuration:
  PYTHONHOME = '/Users/sahil.khan/.julia/conda/3:/Users/sahil.khan/.julia/conda/3'
  PYTHONPATH = (not set)
  program name = '/Users/sahil.khan/.julia/conda/3/bin/python'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/Users/sahil.khan/.julia/conda/3/bin/python'
  sys.base_prefix = '/Users/sahil.khan/.julia/conda/3'
  sys.base_exec_prefix = '/Users/sahil.khan/.julia/conda/3'
  sys.platlibdir = 'lib'
  sys.executable = '/Users/sahil.khan/.julia/conda/3/bin/python'
  sys.prefix = '/Users/sahil.khan/.julia/conda/3'
  sys.exec_prefix = '/Users/sahil.khan/.julia/conda/3'
  sys.path = [
    '/Users/sahil.khan/.julia/conda/3/lib/python310.zip',
    '/Users/sahil.khan/.julia/conda/3/lib/python3.10',
    '/Users/sahil.khan/.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 0x0000000104c84580 (most recent call first):
  <no Python frame>
ERROR: Failed to precompile SymPy [24249f21-da20-56a4-8eb1-6a02cf4ae2e6] to "/Users/sahil.khan/.julia/compiled/v1.9/SymPy/jl_Us7n8m".
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:2294
  [3] compilecache
    @ ./loading.jl:2167 [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
  [9] eval
    @ ./boot.jl:370 [inlined]
 [10] eval
    @ ./Base.jl:68 [inlined]
 [11] repleval(m::Module, code::Expr, #unused#::String)
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.60.2/scripts/packages/VSCodeServer/src/repl.jl:229
 [12] (::VSCodeServer.var"#110#112"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.60.2/scripts/packages/VSCodeServer/src/repl.jl:192
 [13] with_logstate(f::Function, logstate::Any)
    @ Base.CoreLogging ./logging.jl:514
 [14] with_logger
    @ ./logging.jl:626 [inlined]
 [15] (::VSCodeServer.var"#109#111"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.60.2/scripts/packages/VSCodeServer/src/repl.jl:193
 [16] #invokelatest#2
    @ ./essentials.jl:819 [inlined]
 [17] invokelatest(::Any)
    @ Base ./essentials.jl:816
 [18] macro expansion
    @ ~/.vscode/extensions/julialang.language-julia-1.60.2/scripts/packages/VSCodeServer/src/eval.jl:34 [inlined]
 [19] (::VSCodeServer.var"#62#63")()
    @ VSCodeServer ./task.jl:514

2 posts - 2 participants