Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Reduce_model fails #1

Open
jkiviluo opened this issue Sep 29, 2021 · 2 comments
Open

Reduce_model fails #1

jkiviluo opened this issue Sep 29, 2021 · 2 comments

Comments

@jkiviluo
Copy link
Member

The upper part of the workflow works after installing the required package, but when trying to run 'reduce_model' you get the traceback below. Adding that package does not work, since it's not in the julia registry. Trying to follow the instructions also fails, because it's not clear where #4 "julia init.jl" is supposed to be run. Julia is not in the Python conda environment path and that does not work in the Julia console,

julia> # Running 'julia reduce.jl C:\data\SpineCaseStudies\spine-cs-b1\data\case118.m'
1-element Vector{String}:
"C:\\data\\SpineCaseStudies\\spine-cs-b1\\data\\case118.m"
ERROR: LoadError: ArgumentError: Package ReduceModel not found in current path:
- Run `import Pkg; Pkg.add("ReduceModel")` to install the ReduceModel package.

Stacktrace:
[1] require(into::Module, mod::Symbol)
@ Base .\loading.jl:893
[2] include(fname::String)
@ Base.MainInclude .\client.jl:444
[3] top-level scope
@ none:1
in expression starting at C:\data\SpineCaseStudies\spine-cs-b1\scripts\reduce.jl:5
julia> 
@jkiviluo
Copy link
Member Author

Trying to init.jl fails:

julia> include("C:\\data\\SpineCaseStudies\\spine-cs-b1\\init.jl")
  Activating environment at `C:\data\SpineCaseStudies\spine-cs-b1\Project.toml`
    Updating registry at `C:\Users\prokjt\.julia\registries\General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
    Updating registry at `C:\Users\prokjt\.julia\registries\SpineRegistry`
    Updating git-repo `https://github.com/Spine-project/SpineJuliaRegistry`
ERROR: LoadError: expected package `ReduceModel [2087d03a]` to be registered
Stacktrace:
  [1] pkgerror(msg::String)
    @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:55
  [2] check_registered(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.Operations C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Operations.jl:1157
  [3] up(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, level::Pkg.Types.UpgradeLevel)
    @ Pkg.Operations C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Operations.jl:1321
  [4] up(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; level::Pkg.Types.UpgradeLevel, mode::Pkg.Types.PackageMode, update_registry::Bool, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:261
  [5] #up#41
    @ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:84 [inlined]
  [6] instantiate(ctx::Pkg.Types.Context; manifest::Nothing, update_registry::Bool, verbose::Bool, platform::Base.BinaryPlatforms.Platform, allow_build::Bool, allow_autoprecomp::Bool, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:1340
  [7] instantiate
    @ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:1325 [inlined]
  [8] #instantiate#252
    @ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:1321 [inlined]
  [9] instantiate()
    @ Pkg.API C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:1321
 [10] top-level scope
    @ C:\data\SpineCaseStudies\spine-cs-b1\init.jl:7
 [11] include(fname::String)
    @ Base.MainInclude .\client.jl:444
 [12] top-level scope
    @ REPL[1]:1
in expression starting at C:\data\SpineCaseStudies\spine-cs-b1\init.jl:7

julia>

@soininen
Copy link

I get the same message when running julia init.jl. I'm assuming ReduceModel is missing in SpineJuliaRegistry. Anyone know more about this? @manuelma @ererkka?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants