Skip to content

Error loading PyMNE #38

Description

@geigermartin

When I try this:

] add PyMNE
] add CondaPkg
> using CondaPkg
> CondaPkg.add("pandas")
> using PyMNE

I get this error:

ERROR: InitError: Python: ModuleNotFoundError: No module named 'numpy'
Python stacktrace:
 [1] <module>
   @ /tmp/jl_wh31xE/.CondaPkg/.pixi/envs/default/lib/python3.12/site-packages/mne/utils/check.py:17
 [2] _parse_verbose
   @ mne.utils._logging /tmp/jl_wh31xE/.CondaPkg/.pixi/envs/default/lib/python3.12/site-packages/mne/utils/_logging.py:225
 [3] set_log_level
   @ mne.utils._logging /tmp/jl_wh31xE/.CondaPkg/.pixi/envs/default/lib/python3.12/site-packages/mne/utils/_logging.py:210
 [4] <module>
   @ /tmp/jl_wh31xE/.CondaPkg/.pixi/envs/default/lib/python3.12/site-packages/mne/__init__.py:35
Stacktrace:
  [1] pythrow()
    @ PythonCall.Core ~/.julia/packages/PythonCall/L4cjh/src/Core/err.jl:92
  [2] errcheck
    @ ~/.julia/packages/PythonCall/L4cjh/src/Core/err.jl:10 [inlined]
  [3] pyimport(m::String)
    @ PythonCall.Core ~/.julia/packages/PythonCall/L4cjh/src/Core/builtins.jl:1561
  [4] __init__()
    @ PyMNE ~/.julia/packages/PyMNE/cNGDN/src/PyMNE.jl:20
  [5] run_module_init(mod::Module, i::Int64)
    @ Base ./loading.jl:1378
  [6] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1366
  [7] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{…}, ignore_native::Nothing; register::Bool)
    @ Base ./loading.jl:1254
  [8] _include_from_serialized (repeats 2 times)
    @ ./loading.jl:1210 [inlined]
  [9] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{…}, DEPOT_PATH::Vector{…})
    @ Base ./loading.jl:2057
 [10] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2527
 [11] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2388
 [12] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [13] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [14] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2375
 [15] macro expansion
    @ ./loading.jl:2314 [inlined]
 [16] macro expansion
    @ ./lock.jl:273 [inlined]
 [17] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2271
 [18] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [19] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [20] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2260
during initialization of module PyMNE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions