Skip to content

ERROR: Running case-1.jl #1

@MohamedAbdrabou2025

Description

@MohamedAbdrabou2025

I am trying to run the scripts in this project and I got these error

Activating project at ~/Downloads/TL-FWPI.jl-0.0.3
┌ Warning: The active manifest file has dependencies that were resolved with a different julia version (1.8.5). Unexpected behavior may occur.
└ @ ~/Downloads/TL-FWPI.jl-0.0.3/Manifest.toml:0
┌ Warning: The project dependencies or compat requirements have changed since the manifest was last resolved.
│ It is recommended to Pkg.resolve() or consider Pkg.update() if necessary.
└ @ Pkg.API ~/.julia/juliaup/julia-1.11.6+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/Pkg/src/API.jl:1206
Precompiling project...
✗ JLD2
✗ PyCall
✗ GPUCompiler
✗ Zygote
✗ PyPlot
✗ AzureClusterlessHPC
✗ JOLI
✗ CUDA
✗ SetIntersectionProjection
✗ JUDI
✗ cuDNN
✗ MetaGraphs
✗ DrWatson
✗ Jutul
✗ NNlibCUDA
✗ Flux
✗ JutulDarcy
✗ InvertibleNetworks
✗ ImageSegmentation
✗ JutulDarcyRules
✗ Images
✗ FNO4CO2
0 dependencies successfully precompiled in 42 seconds. 324 already precompiled.
22 dependencies errored.
For a report of the errors see julia> err. To retry use pkg> precompile
Precompiling PyPlot...
Info Given PyPlot was explicitly requested, output will be shown live
ERROR: LoadError: ArgumentError: Source type for reinterpret must be isbits
Stacktrace:
[1] _reinterpret
@ ./reinterpretarray.jl:856 [inlined]
[2] reinterpret(::Type{UInt8}, x::MemoryRef{Int32})
@ Base ./essentials.jl:733
[3] _preserveas!(dest::Vector{UInt8}, ::Type{Cwstring}, x::String)
@ PyCall ~/.julia/packages/PyCall/twYvK/deps/depsutils.jl:67
[4] Py_SetPythonHome(libpy::Ptr{Nothing}, pyversion::VersionNumber, PYTHONHOME::String)
@ PyCall ~/.julia/packages/PyCall/twYvK/deps/depsutils.jl:36
[5] top-level scope
@ ~/.julia/packages/PyCall/twYvK/src/startup.jl:57
[6] include(mod::Module, _path::String)
@ Base ./Base.jl:562
[7] include(x::String)
@ PyCall ~/.julia/packages/PyCall/twYvK/src/PyCall.jl:1
[8] top-level scope
@ ~/.julia/packages/PyCall/twYvK/src/PyCall.jl:38
[9] include
@ ./Base.jl:562 [inlined]
[10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
@ Base ./loading.jl:2881
[11] top-level scope
@ stdin:6
in expression starting at /Users/mohamedmousa/.julia/packages/PyCall/twYvK/src/startup.jl:41
in expression starting at /Users/mohamedmousa/.julia/packages/PyCall/twYvK/src/PyCall.jl:1
in expression starting at stdin:6
ERROR: LoadError: Failed to precompile PyCall [438e738f-606a-5dbb-bf0a-cddfbfd45ab0] to "/Users/mohamedmousa/.julia/compiled/v1.11/PyCall/jl_hO8SmW".
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; flags::Cmd, cacheflags::Base.CacheFlags, reasons::Dict{String, Int64}, loadable_exts::Nothing)
@ Base ./loading.jl:3174
[3] (::Base.var"#1110#1111"{Base.PkgId})()
@ Base ./loading.jl:2579
[4] mkpidlock(f::Base.var"#1110#1111"{Base.PkgId}, at::String, pid::Int32; kwopts::@kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.6+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:95
[5] #mkpidlock#6
@ ~/.julia/juliaup/julia-1.11.6+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:90 [inlined]
[6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@kwargs{stale_age::Int64})
@ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.6+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:116
[7] #invokelatest#2
@ ./essentials.jl:1057 [inlined]
[8] invokelatest
@ ./essentials.jl:1052 [inlined]
[9] maybe_cachefile_lock(f::Base.var"#1110#1111"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
@ Base ./loading.jl:3698
[10] maybe_cachefile_lock
@ ./loading.jl:3695 [inlined]
[11] _require(pkg::Base.PkgId, env::String)
@ Base ./loading.jl:2565
[12] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:2388
[13] #invoke_in_world#3
@ ./essentials.jl:1089 [inlined]
[14] invoke_in_world
@ ./essentials.jl:1086 [inlined]
[15] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:2375
[16] macro expansion
@ ./loading.jl:2314 [inlined]
[17] macro expansion
@ ./lock.jl:273 [inlined]
[18] __require(into::Module, mod::Symbol)
@ Base ./loading.jl:2271
[19] #invoke_in_world#3
@ ./essentials.jl:1089 [inlined]
[20] invoke_in_world
@ ./essentials.jl:1086 [inlined]
[21] require(into::Module, mod::Symbol)
@ Base ./loading.jl:2260
[22] include
@ ./Base.jl:562 [inlined]
[23] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
@ Base ./loading.jl:2881
[24] top-level scope
@ stdin:6
in expression starting at /Users/mohamedmousa/.julia/packages/PyPlot/NsAWt/src/PyPlot.jl:2
in expression starting at stdin:6
✗ PyCall
✗ PyPlot
4 dependencies successfully precompiled in 11 seconds. 31 already precompiled.

ERROR: LoadError: The following 1 direct dependency failed to precompile:

PyPlot

Failed to precompile PyPlot [d330b81b-6aea-500a-939a-2ce795aea3ee] to "/Users/mohamedmousa/.julia/compiled/v1.11/PyPlot/jl_1wQphk".
ERROR: LoadError: ArgumentError: Source type for reinterpret must be isbits
Stacktrace:
[1] _reinterpret
@ ./reinterpretarray.jl:856 [inlined]
[2] reinterpret(::Type{UInt8}, x::MemoryRef{Int32})
@ Base ./essentials.jl:733
[3] _preserveas!(dest::Vector{UInt8}, ::Type{Cwstring}, x::String)
@ PyCall ~/.julia/packages/PyCall/twYvK/deps/depsutils.jl:67
[4] Py_SetPythonHome(libpy::Ptr{Nothing}, pyversion::VersionNumber, PYTHONHOME::String)
@ PyCall ~/.julia/packages/PyCall/twYvK/deps/depsutils.jl:36
[5] top-level scope
@ ~/.julia/packages/PyCall/twYvK/src/startup.jl:57
[6] include(mod::Module, _path::String)
@ Base ./Base.jl:562
[7] include(x::String)
@ PyCall ~/.julia/packages/PyCall/twYvK/src/PyCall.jl:1
[8] top-level scope
@ ~/.julia/packages/PyCall/twYvK/src/PyCall.jl:38
[9] include
@ ./Base.jl:562 [inlined]
[10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
@ Base ./loading.jl:2881
[11] top-level scope
@ stdin:6
in expression starting at /Users/mohamedmousa/.julia/packages/PyCall/twYvK/src/startup.jl:41
in expression starting at /Users/mohamedmousa/.julia/packages/PyCall/twYvK/src/PyCall.jl:1
in expression starting at stdin:6
ERROR: LoadError: Failed to precompile PyCall [438e738f-606a-5dbb-bf0a-cddfbfd45ab0] to "/Users/mohamedmousa/.julia/compiled/v1.11/PyCall/jl_hO8SmW".
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; flags::Cmd, cacheflags::Base.CacheFlags, reasons::Dict{String, Int64}, loadable_exts::Nothing)
@ Base ./loading.jl:3174
[3] (::Base.var"#1110#1111"{Base.PkgId})()
@ Base ./loading.jl:2579
[4] mkpidlock(f::Base.var"#1110#1111"{Base.PkgId}, at::String, pid::Int32; kwopts::@kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.6+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:95
[5] #mkpidlock#6
@ ~/.julia/juliaup/julia-1.11.6+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:90 [inlined]
[6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@kwargs{stale_age::Int64})
@ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.6+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:116
[7] #invokelatest#2
@ ./essentials.jl:1057 [inlined]
[8] invokelatest
@ ./essentials.jl:1052 [inlined]
[9] maybe_cachefile_lock(f::Base.var"#1110#1111"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
@ Base ./loading.jl:3698
[10] maybe_cachefile_lock
@ ./loading.jl:3695 [inlined]
[11] _require(pkg::Base.PkgId, env::String)
@ Base ./loading.jl:2565
[12] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:2388
[13] #invoke_in_world#3
@ ./essentials.jl:1089 [inlined]
[14] invoke_in_world
@ ./essentials.jl:1086 [inlined]
[15] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:2375
[16] macro expansion
@ ./loading.jl:2314 [inlined]
[17] macro expansion
@ ./lock.jl:273 [inlined]
[18] __require(into::Module, mod::Symbol)
@ Base ./loading.jl:2271
[19] #invoke_in_world#3
@ ./essentials.jl:1089 [inlined]
[20] invoke_in_world
@ ./essentials.jl:1086 [inlined]
[21] require(into::Module, mod::Symbol)
@ Base ./loading.jl:2260
[22] include
@ ./Base.jl:562 [inlined]
[23] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
@ Base ./loading.jl:2881
[24] top-level scope
@ stdin:6
in expression starting at /Users/mohamedmousa/.julia/packages/PyPlot/NsAWt/src/PyPlot.jl:2
in expression starting at stdin:
in expression starting at /Users/mohamedmousa/Downloads/TL-FWPI.jl-0.0.3/src/dummy_src_file.jl:171

julia>

Image

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