Closed harper-carroll closed 5 years ago
When I run
import Pkg; Pkg.add("IJulia") using Pkg Pkg.add(PackageSpec(name="AA120Q", url="https://github.com/sisl/AA120Q.git")) using AA120Q
I receive the error message: ` Building AA120Q → ~/.julia/packages/AA120Q/SKE8I/deps/build.log ┌ Error: Error building AA120Q: │ ERROR: LoadError: UndefVarError: Pkg not defined │ Stacktrace: │ [1] top-level scope at none:0 │ [2] include at ./boot.jl:317 [inlined] │ [3] include_relative(::Module, ::String) at ./loading.jl:1038 │ [4] include(::Module, ::String) at ./sysimg.jl:29 │ [5] include(::String) at ./client.jl:388 │ [6] top-level scope at none:0 │ in expression starting at /Users/harper/.julia/packages/AA120Q/SKE8I/deps/build.jl:1 └ @ Pkg.Operations /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1068 ┌ Info: Precompiling AA120Q [91cbf3e6-4e4b-5d64-958a-11875e51d27a] └ @ Base loading.jl:1186 ERROR: LoadError: UndefVarError: Pkg not defined Stacktrace: [1] top-level scope at none:0 [2] include at ./boot.jl:317 [inlined] [3] include_relative(::Module, ::String) at ./loading.jl:1038 [4] include(::Module, ::String) at ./sysimg.jl:29 [5] top-level scope at none:2 [6] eval at ./boot.jl:319 [inlined] [7] eval(::Expr) at ./client.jl:389 [8] top-level scope at ./none:3 in expression starting at /Users/harper/.julia/packages/AA120Q/SKE8I/src/AA120Q.jl:78 Failed to precompile AA120Q [91cbf3e6-4e4b-5d64-958a-11875e51d27a] to /Users/harper/.julia/compiled/v1.0/AA120Q/ypfPZ.ji.
Stacktrace: [1] error(::String) at ./error.jl:33 [2] macro expansion at ./logging.jl:313 [inlined] [3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1184 [4] macro expansion at ./logging.jl:311 [inlined] [5] _require(::Base.PkgId) at ./loading.jl:941 [6] require(::Base.PkgId) at ./loading.jl:852 [7] macro expansion at ./logging.jl:311 [inlined] [8] require(::Module, ::Symbol) at ./loading.jl:834
`
Attempting to resolve this: