Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't instantiate project #16

Open
kharazity opened this issue Feb 17, 2021 · 8 comments
Open

Can't instantiate project #16

kharazity opened this issue Feb 17, 2021 · 8 comments

Comments

@kharazity
Copy link

kharazity commented Feb 17, 2021

Trying to learn Yao, I've cloned this repo and ran: julia --project -e 'using Pkg; Pkg.instantiate()' . This returns a type error:

Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
ERROR: TypeError: in typeassert, expected VersionNumber, got Pkg.Types.VersionSpec
Stacktrace:
 [1] load_urls(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:456
 [2] #download_source#39 at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:632 [inlined]
 [3] download_source at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:631 [inlined]
 [4] instantiate(::Pkg.Types.Context; manifest::Nothing, update_registry::Bool, verbose::Bool, platform::Pkg.BinaryPlatforms.Linux, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:820
 [5] instantiate(::Pkg.Types.Context) at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:748
 [6] #instantiate#116 at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:744 [inlined]
 [7] instantiate() at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:744
 [8] top-level scope at none:1

Any suggestions? Is this related to #8 ?

@Roger-luo
Copy link
Member

Ah sorry yeah I'm converting the tutorials to Pluto notebooks gimme one sec to fix this

@Roger-luo
Copy link
Member

so it seems to work fine for me however, which Julia version are you using?

@kharazity
Copy link
Author

kharazity commented Feb 18, 2021 via email

@Roger-luo
Copy link
Member

hmm interesting is your local repo update to the current master? if you haven't try

git pull

on the other hand, maybe just install a newer version of Julia.

@Roger-luo
Copy link
Member

I just installed julia-1.4 on my machine, it seems to work fine however.

@kharazity
Copy link
Author

kharazity commented Feb 18, 2021

Just pulled, there seems to have been an update to the manifest.toml file since cloning yesterday. I seem to get a different build error now unfortunately:

Downloading artifact: Cairo
┌ Error: Error building `GR`: 
│ [ Info: Downloading pre-compiled GR 0.54.0 Ubuntu binary
│ ERROR: LoadError: syntax: `global grdir`: grdir is a local variable in its enclosing scope
│ Stacktrace:
│  [1] top-level scope at /home/kharazi/.julia/packages/GR/G9I5v/deps/build.jl:191
│  [2] include(::String) at ./client.jl:439
│  [3] top-level scope at none:5
│ in expression starting at /home/kharazi/.julia/packages/GR/G9I5v/deps/build.jl:191
└ @ Pkg.Operations /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:892

@Roger-luo
Copy link
Member

It seems to be a GR issue. I'm wondering what if you open your Julia REPL and type ]add GR?

@kharazity
Copy link
Author

Yep, that's it! Thanks!

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

No branches or pull requests

2 participants