SchusterLab / rbqoc

Robust Quantum Optimal Control with Trajectory Optimization
https://journals.aps.org/prapplied/abstract/10.1103/PhysRevApplied.17.014036
MIT License
21 stars 3 forks source link

Error in startup [Julia Version 1.9.3] #7

Open typerSniper opened 1 year ago

typerSniper commented 1 year ago

Hey,

So I was trying to run your tool and encountered this error while setting instantiating the dependencies. I am using Julia version 1.9.3/

┌ Warning: The active manifest file is an older format with no julia version entry. Dependencies may have been resolved with a different julia version.
└ @ ~/rbqoc/Manifest.toml:0
ERROR: Could not locate the source code for the DelimitedFiles package. Are you trying to use a manifest generated by a different version of Julia?

While searching this on Google, I found that it happens when somebody uses a different Julia version, though I am not an expert on Julia at all.

Thanks

P.S: I also got the following stack trace if that's helpful:

Stacktrace:
  [1] pkgerror(msg::String)
    @ Pkg.Types ~/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/Types.jl:69
  [2] is_package_downloaded(manifest_file::String, pkg::Pkg.Types.PackageSpec; platform::Base.BinaryPlatforms.Platform)
    @ Pkg.Operations ~/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/Operations.jl:2195
  [3] is_package_downloaded
    @ ~/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/Operations.jl:2192 [inlined]
  [4] #10
    @ ~/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/Operations.jl:133 [inlined]
  [5] _all
    @ ./reduce.jl:1283 [inlined]
  [6] #all#830
    @ ./reducedim.jl:1007 [inlined]
  [7] all
    @ ./reducedim.jl:1007 [inlined]
  [8] is_instantiated(env::Pkg.Types.EnvCache; platform::Base.BinaryPlatforms.Platform)
    @ Pkg.Operations ~/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/Operations.jl:133
  [9] is_instantiated
    @ ~/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/Operations.jl:117 [inlined]
 [10] instantiate(ctx::Pkg.Types.Context; manifest::Nothing, update_registry::Bool, verbose::Bool, platform::Base.BinaryPlatforms.Platform, allow_build::Bool$
 allow_autoprecomp::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API ~/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1700
 [11] instantiate
    @ ~/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1653 [inlined]
 [12] instantiate(; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API ~/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1652
 [13] instantiate()
    @ Pkg.API ~/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1652
 [14] top-level scope
    @ REPL[4]:1
tpr0p commented 1 year ago

Hey @typerSniper, thanks for using the tool. Yeah, I think you’re right that it’s a version issue. Maybe try deleting the Manifest.toml file and regenerating it. E.g.

> rm Manifest.toml
> julia
julia> using Pkg; Pkg.activate(“.”); Pkg.resolve()

If not you may be able to put the desired julia version number in the Project.toml. I think I was using 1.6.5 when I created this package, or maybe you can just install Julia 1.6.5. https://pkgdocs.julialang.org/v1/toml-files/

typerSniper commented 1 year ago

I installed an earlier version of Julia (1.6.7) and I can now use the tool. Thank you