Skip to content

Instantly share code, notes, and snippets.

@pfitzseb
Last active December 12, 2019 15:40
Show Gist options
  • Save pfitzseb/08f7b6a2ef8c1d3c7c8d13b548a1acf4 to your computer and use it in GitHub Desktop.
Save pfitzseb/08f7b6a2ef8c1d3c7c8d13b548a1acf4 to your computer and use it in GitHub Desktop.
~
λ mv ~/.julia/packages .julia/packages_old
~
λ mkdir jenvtest
~
λ cd jenvtest
~/jenvtest
λ j1
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.3.0 (2019-11-26)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(v1.2) pkg> activate .
Activating new environment at `~/jenvtest/Project.toml`
(jenvtest) pkg> add CSV
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Resolving package versions...
Installed InvertedIndices ───────────── v1.0.0
Installed Compat ────────────────────── v3.0.0
Installed CategoricalArrays ─────────── v0.7.4
Installed LazyArrays ────────────────── v0.14.10
Installed StaticArrays ──────────────── v0.12.1
Installed SortingAlgorithms ─────────── v0.3.1
Installed DataStructures ────────────── v0.17.6
Installed TableTraits ───────────────── v1.0.0
Installed Missings ──────────────────── v0.4.3
Installed Parsers ───────────────────── v0.3.10
Installed MacroTools ────────────────── v0.5.3
Installed OrderedCollections ────────── v1.1.0
Installed ArrayLayouts ──────────────── v0.1.5
Installed DataValueInterfaces ───────── v1.0.0
Installed Tables ────────────────────── v0.2.11
Installed DataAPI ───────────────────── v1.1.0
Installed FilePathsBase ─────────────── v0.7.0
Installed JSON ──────────────────────── v0.21.0
Installed IteratorInterfaceExtensions ─ v1.0.0
Installed PooledArrays ──────────────── v0.5.2
Installed WeakRefStrings ────────────── v0.6.1
Installed Reexport ──────────────────── v0.2.0
Installed FillArrays ────────────────── v0.8.2
Installed DataFrames ────────────────── v0.20.0
Installed CSV ───────────────────────── v0.5.18
Updating `~/jenvtest/Project.toml`
[336ed68f] + CSV v0.5.18
Updating `~/jenvtest/Manifest.toml`
[4c555306] + ArrayLayouts v0.1.5
[336ed68f] + CSV v0.5.18
[324d7699] + CategoricalArrays v0.7.4
[34da2185] + Compat v3.0.0
[9a962f9c] + DataAPI v1.1.0
[a93c6f00] + DataFrames v0.20.0
[864edb3b] + DataStructures v0.17.6
[e2d170a0] + DataValueInterfaces v1.0.0
[48062228] + FilePathsBase v0.7.0
[1a297f60] + FillArrays v0.8.2
[41ab1584] + InvertedIndices v1.0.0
[82899510] + IteratorInterfaceExtensions v1.0.0
[682c06a0] + JSON v0.21.0
[5078a376] + LazyArrays v0.14.10
[1914dd2f] + MacroTools v0.5.3
[e1d29d7a] + Missings v0.4.3
[bac558e1] + OrderedCollections v1.1.0
[69de0a69] + Parsers v0.3.10
[2dfb63ee] + PooledArrays v0.5.2
[189a3867] + Reexport v0.2.0
[a2af1166] + SortingAlgorithms v0.3.1
[90137ffa] + StaticArrays v0.12.1
[3783bdb8] + TableTraits v1.0.0
[bd369af6] + Tables v0.2.11
[ea10d353] + WeakRefStrings v0.6.1
[2a0f44e3] + Base64
[ade2ca70] + Dates
[8bb1440f] + DelimitedFiles
[8ba89e20] + Distributed
[9fa8497b] + Future
[b77e0a4c] + InteractiveUtils
[76f85450] + LibGit2
[8f399da3] + Libdl
[37e2e46d] + LinearAlgebra
[56ddb016] + Logging
[d6f4376e] + Markdown
[a63ad114] + Mmap
[44cfe95a] + Pkg
[de0858da] + Printf
[3fa0cd96] + REPL
[9a3f8284] + Random
[ea8e919c] + SHA
[9e88b42a] + Serialization
[1a1011a3] + SharedArrays
[6462fe0b] + Sockets
[2f01184e] + SparseArrays
[10745b16] + Statistics
[8dfed614] + Test
[cf7118a7] + UUIDs
[4ec0a83e] + Unicode
julia> using CSV
[ Info: Precompiling CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b]
WARNING: Compat.Statistics is deprecated, use Statistics instead.
likely near /home/pfitzseb/.julia/packages/CategoricalArrays/u89s1/src/extras.jl:1
julia>
~/jenvtest
λ cd ~/.julia/packages/CSV/GCUID
packages/CSV/GCUID
λ j1
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.3.0 (2019-11-26)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(v1.2) pkg> activate .
Activating environment at `~/.julia/packages/CSV/GCUID/Project.toml`
julia> using CSV
[ Info: Precompiling CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b]
ERROR: LoadError: ArgumentError: Package Compat [34da2185-b29b-5c13-b0c7-acf172513d20] is required but does not seem to be installed:
- Run `Pkg.instantiate()` to install all recorded dependencies.
Stacktrace:
[1] _require(::Base.PkgId) at ./loading.jl:993
[2] require(::Base.PkgId) at ./loading.jl:922
[3] require(::Module, ::Symbol) at ./loading.jl:917
[4] include at ./boot.jl:328 [inlined]
[5] include_relative(::Module, ::String) at ./loading.jl:1105
[6] include(::Module, ::String) at ./Base.jl:31
[7] top-level scope at none:2
[8] eval at ./boot.jl:330 [inlined]
[9] eval(::Expr) at ./client.jl:425
[10] top-level scope at ./none:3
in expression starting at /home/pfitzseb/.julia/packages/CategoricalArrays/u89s1/src/CategoricalArrays.jl:13
ERROR: LoadError: Failed to precompile CategoricalArrays [324d7699-5711-5eae-9e2f-1d82baa6b597] to /home/pfitzseb/.julia/compiled/v1.3/CategoricalArrays/RHXoP_vqstg.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1283
[3] _require(::Base.PkgId) at ./loading.jl:1024
[4] require(::Base.PkgId) at ./loading.jl:922
[5] require(::Module, ::Symbol) at ./loading.jl:917
[6] include at ./boot.jl:328 [inlined]
[7] include_relative(::Module, ::String) at ./loading.jl:1105
[8] include(::Module, ::String) at ./Base.jl:31
[9] top-level scope at none:2
[10] eval at ./boot.jl:330 [inlined]
[11] eval(::Expr) at ./client.jl:425
[12] top-level scope at ./none:3
in expression starting at /home/pfitzseb/.julia/packages/CSV/GCUID/src/CSV.jl:6
ERROR: Failed to precompile CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b] to /home/pfitzseb/.julia/compiled/v1.3/CSV/HHBkp_vqstg.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1283
[3] _require(::Base.PkgId) at ./loading.jl:1024
[4] require(::Base.PkgId) at ./loading.jl:922
[5] require(::Module, ::Symbol) at ./loading.jl:917
(CSV) pkg> instantiate
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Resolving package versions...
Updating `~/.julia/packages/CSV/GCUID/Project.toml`
[324d7699] + CategoricalArrays v0.7.4
[a93c6f00] + DataFrames v0.20.0
[48062228] + FilePathsBase v0.7.0
[5078a376] + LazyArrays v0.14.10
[69de0a69] + Parsers v0.3.10
[2dfb63ee] + PooledArrays v0.5.2
[bd369af6] + Tables v0.2.11
[ea10d353] + WeakRefStrings v0.6.1
[ade2ca70] + Dates
[a63ad114] + Mmap
[4ec0a83e] + Unicode
ERROR: SystemError: opening file "/home/pfitzseb/.julia/packages/CSV/GCUID/Project.toml": Permission denied
Stacktrace:
[1] #systemerror#44(::Nothing, ::typeof(systemerror), ::String, ::Bool) at ./error.jl:134
[2] systemerror at ./error.jl:134 [inlined]
[3] #open#512(::Nothing, ::Nothing, ::Nothing, ::Bool, ::Nothing, ::typeof(open), ::String) at ./iostream.jl:254
[4] #open at ./none:0 [inlined]
[5] #open#271(::Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol},NamedTuple{(:truncate,),Tuple{Bool}}}, ::typeof(open), ::Pkg.Types.var"#41#43"{Base.GenericIOBuffer{Array{UInt8,1}}}, ::String) at ./io.jl:296
[6] #open at ./none:0 [inlined]
[7] write_project at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/project.jl:176 [inlined]
[8] #write_project#44(::Bool, ::typeof(Pkg.Types.write_project), ::Pkg.Types.Project, ::Pkg.Types.EnvCache, ::Pkg.Types.EnvCache, ::Pkg.Types.Context) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/project.jl:187
[9] #write_env#141 at ./none:0 [inlined]
[10] write_env at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/Types.jl:1373 [inlined]
[11] up(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Pkg.Types.UpgradeLevel) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/Operations.jl:1104
[12] #up#43(::Pkg.Types.UpgradeLevel, ::Pkg.Types.PackageMode, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.up), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:170
[13] #up at ./none:0 [inlined]
[14] #up#38 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:137 [inlined]
[15] #up at ./none:0 [inlined]
[16] #instantiate#114(::Nothing, ::Bool, ::Bool, ::Pkg.BinaryPlatforms.Linux, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.instantiate), ::Pkg.Types.Context) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:722
[17] instantiate(::Pkg.Types.Context) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:720
[18] do_instantiate!(::Dict{Symbol,Any}, ::Array{String,1}, ::Dict{Symbol,Any}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/REPLMode.jl:477
[19] #invokelatest#1(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Base.invokelatest), ::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:709
[20] invokelatest(::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:708
[21] do_cmd!(::Pkg.REPLMode.Command, ::REPL.LineEditREPL) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/REPLMode.jl:412
[22] #do_cmd#23(::Bool, ::typeof(Pkg.REPLMode.do_cmd), ::REPL.LineEditREPL, ::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/REPLMode.jl:391
[23] do_cmd at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/REPLMode.jl:387 [inlined]
[24] (::Pkg.REPLMode.var"#28#31"{REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/REPLMode.jl:619
[25] #invokelatest#1 at ./essentials.jl:709 [inlined]
[26] invokelatest at ./essentials.jl:708 [inlined]
[27] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/REPL/src/LineEdit.jl:2306
[28] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/REPL/src/REPL.jl:1045
[29] run_repl(::REPL.AbstractREPL, ::Any) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/REPL/src/REPL.jl:201
[30] (::Base.var"#770#772"{Bool,Bool,Bool,Bool})(::Module) at ./client.jl:382
[31] #invokelatest#1 at ./essentials.jl:709 [inlined]
[32] invokelatest at ./essentials.jl:708 [inlined]
[33] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:366
[34] exec_options(::Base.JLOptions) at ./client.jl:304
[35] _start() at ./client.jl:460
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment