Following the instructions here to build a system image with Gadfly: Home · Gadfly.jl
I ran into a strange error saying PackageCompiler was not found despite having just run using PackageCompiler
. Any idea how to troubleshoot? I could reinstall Julia from scratch, but I haven’t customized much yet, so it seems strange to have a bad build already.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\Users\carlm> julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.2.0 (2019-08-20)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(v1.2) pkg> dev PackageCompiler
Updating registry at `C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\registries\JuliaPro`
Updating git-repo `https://pkg.juliacomputing.com//registry/JuliaPro`
Cloning git-repo `https://github.com/JuliaLang/PackageCompiler.jl.git`
Updating git-repo `https://github.com/JuliaLang/PackageCompiler.jl.git`
Resolving package versions...
Installed BufferedStreams ─ v1.0.0
Installed LibCURL ───────── v0.5.2
Installed LibExpat ──────── v0.5.0
Installed HTTPClient ────── v0.2.1
Installed WinRPM ────────── v0.4.2
Installed Libz ──────────── v1.0.0
Updating `C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\environments\v1.2\Project.toml`
[9b87118b] + PackageCompiler v0.6.4 [`C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\dev\PackageCompiler`]
Updating `C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\environments\v1.2\Manifest.toml`
[e1450e63] + BufferedStreams v1.0.0
[0862f596] + HTTPClient v0.2.1
[b27032c2] + LibCURL v0.5.2
[522f3ed2] + LibExpat v0.5.0
[2ec943e9] + Libz v1.0.0
[9b87118b] + PackageCompiler v0.6.4 [`C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\dev\PackageCompiler`]
[c17dfb99] + WinRPM v0.4.2
Building LibCURL ────────→ `C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\packages\LibCURL\lWJxD\deps\build.log`
Building WinRPM ─────────→ `C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\packages\WinRPM\Y9QdZ\deps\build.log`
Building PackageCompiler → `C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\dev\PackageCompiler\deps\build.log`
julia> using PackageCompiler
[ Info: Precompiling PackageCompiler [9b87118b-4619-50d2-8e1e-99f35a4d4d9d]
julia> compile_package("Gadfly", "Plots", "PyPlot", "Flux", "DataFrames", force=false)
Updating registry at `C:\Users\carlm\.julia\registries\General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Resolving package versions...
Installed Showoff ──────────────── v0.3.1
Installed Juno ─────────────────── v0.7.2
Installed Distributions ────────── v0.20.0
Installed IndirectArrays ───────── v0.5.0
Installed IterTools ────────────── v1.2.0
Installed Hexagons ─────────────── v0.2.0
Installed JSON ─────────────────── v0.20.0
Installed Compat ───────────────── v2.2.0
Installed Compose ──────────────── v0.7.4
Installed KernelDensity ────────── v0.5.1
Installed DocStringExtensions ──── v0.7.0
Installed CategoricalArrays ────── v0.5.5
Installed Measures ─────────────── v0.3.0
Installed Loess ────────────────── v0.5.0
Installed CoupledFields ────────── v0.1.0
Installed Requires ─────────────── v0.5.2
Installed Reexport ─────────────── v0.2.0
Installed Tokenize ─────────────── v0.5.6
Installed Distances ────────────── v0.8.2
Installed Colors ───────────────── v0.9.6
Installed Contour ──────────────── v0.5.1
Installed Calculus ─────────────── v0.5.0
Installed ArrayInterface ───────── v1.2.1
Installed Rmath ────────────────── v0.6.0
Installed QuadGK ───────────────── v2.1.1
Installed DiffEqDiffTools ──────── v1.4.0
Installed WoodburyMatrices ─────── v0.4.1
Installed FillArrays ───────────── v0.7.4
Installed PositiveFactorizations ─ v0.2.3
Installed Conda ────────────────── v1.3.0
Installed AbstractFFTs ─────────── v0.5.0
Installed DiffRules ────────────── v0.0.10
Installed StatsFuns ────────────── v0.8.0
Installed FFTW ─────────────────── v1.1.0
Installed NLSolversBase ────────── v7.5.0
Installed FixedPointNumbers ────── v0.6.1
Installed Missings ─────────────── v0.4.3
Installed DataAPI ──────────────── v1.1.0
Installed NaNMath ──────────────── v0.3.2
Installed URIParser ────────────── v0.4.0
Installed VersionParsing ───────── v1.1.3
Installed PDMats ───────────────── v0.9.10
Installed SortingAlgorithms ────── v0.3.1
Installed Media ────────────────── v0.5.0
Installed StaticArrays ─────────── v0.12.1
Installed ColorTypes ───────────── v0.8.0
Installed BinDeps ──────────────── v0.8.10
Installed ForwardDiff ──────────── v0.10.6
Installed LineSearches ─────────── v7.0.1
Installed StatsBase ────────────── v0.30.0
Installed DiffResults ──────────── v0.0.4
Installed OrderedCollections ───── v1.1.0
Installed Parameters ───────────── v0.12.0
Installed OffsetArrays ─────────── v0.11.1
Installed MacroTools ───────────── v0.5.1
Installed Ratios ───────────────── v0.3.1
Installed CommonSubexpressions ─── v0.2.0
Installed AxisAlgorithms ───────── v1.0.0
Installed CSTParser ────────────── v1.0.0
Installed SpecialFunctions ─────── v0.7.2
Installed Optim ────────────────── v0.19.4
Installed Arpack ───────────────── v0.3.1
Installed Interpolations ───────── v0.12.5
Updating `C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\dev\PackageCompiler\packages\Gadfly\Project.toml`
[324d7699] + CategoricalArrays v0.5.5
[5ae59095] + Colors v0.9.6
[34da2185] + Compat v2.2.0
[a81c6b42] + Compose v0.7.4
[d38c429a] + Contour v0.5.1
[7ad07ef1] + CoupledFields v0.1.0
[864edb3b] + DataStructures v0.15.0
[31c24e10] + Distributions v0.20.0
[ffbed154] + DocStringExtensions v0.7.0
[a1b4810d] + Hexagons v0.2.0
[9b13fd28] + IndirectArrays v0.5.0
[c8e1da08] + IterTools v1.2.0
[682c06a0] + JSON v0.20.0
[e5e0dc1b] + Juno v0.7.2
[5ab0869b] + KernelDensity v0.5.1
[4345ca2d] + Loess v0.5.0
[442fdcdd] + Measures v0.3.0
[ae029012] + Requires v0.5.2
[992d4aef] + Showoff v0.3.1
[2a0f44e3] + Base64
[ade2ca70] + Dates
[37e2e46d] + LinearAlgebra
[de0858da] + Printf
[9a3f8284] + Random
[10745b16] + Statistics
Updating `C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\dev\PackageCompiler\packages\Gadfly\Manifest.toml`
[621f4979] + AbstractFFTs v0.5.0
[7d9fca2a] + Arpack v0.3.1
[4fba245c] + ArrayInterface v1.2.1
[13072b0f] + AxisAlgorithms v1.0.0
[9e28174c] + BinDeps v0.8.10
[00ebfdb7] + CSTParser v1.0.0
[49dc2e85] + Calculus v0.5.0
[324d7699] + CategoricalArrays v0.5.5
[3da002f7] + ColorTypes v0.8.0
[5ae59095] + Colors v0.9.6
[bbf7d656] + CommonSubexpressions v0.2.0
[34da2185] + Compat v2.2.0
[a81c6b42] + Compose v0.7.4
[8f4d0f93] + Conda v1.3.0
[d38c429a] + Contour v0.5.1
[7ad07ef1] + CoupledFields v0.1.0
[9a962f9c] + DataAPI v1.1.0
[864edb3b] + DataStructures v0.15.0
[01453d9d] + DiffEqDiffTools v1.4.0
[163ba53b] + DiffResults v0.0.4
[b552c78f] + DiffRules v0.0.10
[b4f34e82] + Distances v0.8.2
[31c24e10] + Distributions v0.20.0
[ffbed154] + DocStringExtensions v0.7.0
[7a1cc6ca] + FFTW v1.1.0
[1a297f60] + FillArrays v0.7.4
[53c48c17] + FixedPointNumbers v0.6.1
[f6369f11] + ForwardDiff v0.10.6
[a1b4810d] + Hexagons v0.2.0
[9b13fd28] + IndirectArrays v0.5.0
[a98d9a8b] + Interpolations v0.12.5
[c8e1da08] + IterTools v1.2.0
[682c06a0] + JSON v0.20.0
[e5e0dc1b] + Juno v0.7.2
[5ab0869b] + KernelDensity v0.5.1
[d3d80556] + LineSearches v7.0.1
[4345ca2d] + Loess v0.5.0
[1914dd2f] + MacroTools v0.5.1
[442fdcdd] + Measures v0.3.0
[e89f7d12] + Media v0.5.0
[e1d29d7a] + Missings v0.4.3
[d41bc354] + NLSolversBase v7.5.0
[77ba4419] + NaNMath v0.3.2
[6fe1bfb0] + OffsetArrays v0.11.1
[429524aa] + Optim v0.19.4
[bac558e1] + OrderedCollections v1.1.0
[90014a1f] + PDMats v0.9.10
[d96e819e] + Parameters v0.12.0
[85a6dd25] + PositiveFactorizations v0.2.3
[1fd47b50] + QuadGK v2.1.1
[c84ed2f1] + Ratios v0.3.1
[189a3867] + Reexport v0.2.0
[ae029012] + Requires v0.5.2
[79098fc4] + Rmath v0.6.0
[992d4aef] + Showoff v0.3.1
[a2af1166] + SortingAlgorithms v0.3.1
[276daf66] + SpecialFunctions v0.7.2
[90137ffa] + StaticArrays v0.12.1
[2913bbd2] + StatsBase v0.30.0
[4c63d2b9] + StatsFuns v0.8.0
[0796e94c] + Tokenize v0.5.6
[30578b45] + URIParser v0.4.0
[81def892] + VersionParsing v1.1.3
[efce3f68] + WoodburyMatrices v0.4.1
[2a0f44e3] + Base64
[b99e7846] + BinaryProvider
[864e158e] + CredentialsHandler
[ade2ca70] + Dates
[8bb1440f] + DelimitedFiles
[8ba89e20] + Distributed
[9fa8497b] + Future
[cd3eb016] + HTTP
[83e8ac13] + IniFile
[b77e0a4c] + InteractiveUtils
[76f85450] + LibGit2
[8f399da3] + Libdl
[37e2e46d] + LinearAlgebra
[56ddb016] + Logging
[d6f4376e] + Markdown
[739be429] + MbedTLS
[a63ad114] + Mmap
[44cfe95a] + Pkg
[de0858da] + Printf
[9abbd945] + Profile
[3fa0cd96] + REPL
[9a3f8284] + Random
[ea8e919c] + SHA
[9e88b42a] + Serialization
[1a1011a3] + SharedArrays
[6462fe0b] + Sockets
[2f01184e] + SparseArrays
[10745b16] + Statistics
[4607b0f0] + SuiteSparse
[9d418dce] + TOML
[8dfed614] + Test
[cf7118a7] + UUIDs
[4ec0a83e] + Unicode
Building Rmath ───────────→ `C:\Users\carlm\.julia\packages\Rmath\BoBag\deps\build.log`
Building Conda ───────────→ `C:\Users\carlm\.julia\packages\Conda\kLXeC\deps\build.log`
Building FFTW ────────────→ `C:\Users\carlm\.julia\packages\FFTW\loJ3F\deps\build.log`
Building SpecialFunctions → `C:\Users\carlm\.julia\packages\SpecialFunctions\fvheQ\deps\build.log`
Building Arpack ──────────→ `C:\Users\carlm\.julia\packages\Arpack\cu5By\deps\build.log`
Resolving package versions...
Installed HTTPClient ────── v0.2.1
Installed WinRPM ────────── v0.4.2
Installed LibExpat ──────── v0.5.0
Installed LibCURL ───────── v0.5.2
Installed BufferedStreams ─ v1.0.0
Installed Libz ──────────── v1.0.0
Installed PackageCompiler ─ v0.6.4
Updating `C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\dev\PackageCompiler\packages\Gadfly\Project.toml`
[9b87118b] + PackageCompiler v0.6.4
[44cfe95a] + Pkg
Updating `C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\dev\PackageCompiler\packages\Gadfly\Manifest.toml`
[e1450e63] + BufferedStreams v1.0.0
[0862f596] + HTTPClient v0.2.1
[b27032c2] + LibCURL v0.5.2
[522f3ed2] + LibExpat v0.5.0
[2ec943e9] + Libz v1.0.0
[9b87118b] + PackageCompiler v0.6.4
[c17dfb99] + WinRPM v0.4.2
Building LibCURL ────────→ `C:\Users\carlm\.julia\packages\LibCURL\lWJxD\deps\build.log`
Building WinRPM ─────────→ `C:\Users\carlm\.julia\packages\WinRPM\Y9QdZ\deps\build.log`
Building PackageCompiler → `C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\deps\build.log`
ERROR: LoadError: ArgumentError: Package PackageCompiler not found in current path:
- Run `import Pkg; Pkg.add("PackageCompiler")` to install the PackageCompiler package.