Error using PackageCompiler for Gadfly

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.

I don’t use JuliaPro so I’m guessing here. The default directory when you dev a package is ~/.julia/dev/ (see Pkg docs), but JuliaPro is using a different directory. You might need to change the environment variable JULIA_PKG_DEVDIR (see Julia docs for general info on environment variables) . However an easier solution for Julia and JuliaPro might be don’t use dev, but instead do:

]add PackageCompiler#master

Does that work? If so, can change in the Gadfly docs.

I tried it, but with seemingly the same error. I’ll try a clean install of Julia next without JuliaPro, to see if that makes a difference.

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> add PackageCompiler#master
  Updating registry at `C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\registries\JuliaPro`
  Updating git-repo `https://pkg.juliacomputing.com//registry/JuliaPro`
  Updating git-repo `https://github.com/JuliaLang/PackageCompiler.jl.git`
 Resolving package versions...
  Updating `C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\environments\v1.2\Project.toml`
  [9b87118b] + PackageCompiler v0.6.4 #master (https://github.com/JuliaLang/PackageCompiler.jl.git)
  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 #master (https://github.com/JuliaLang/PackageCompiler.jl.git)
  [c17dfb99] + WinRPM v0.4.2

julia> using PackageCompiler

julia> compile_package("Gadfly", force=false)
  Updating registry at `C:\Users\carlm\.julia\registries\General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
  Updating `C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\packages\PackageCompiler\tk9TX\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\packages\PackageCompiler\tk9TX\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
 Resolving package versions...
  Updating `C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\packages\PackageCompiler\tk9TX\packages\Gadfly\Project.toml`
  [9b87118b] + PackageCompiler v0.6.4
  [44cfe95a] + Pkg
  Updating `C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\packages\PackageCompiler\tk9TX\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
ERROR: LoadError: ArgumentError: Package PackageCompiler not found in current path:
- Run `import Pkg; Pkg.add("PackageCompiler")` to install the PackageCompiler package.

Stacktrace:
 [1] require(::Module, ::Symbol) at .\loading.jl:876
 [2] include at .\boot.jl:328 [inlined]
 [3] include_relative(::Module, ::String) at .\loading.jl:1094
 [4] include(::Module, ::String) at .\Base.jl:31
 [5] exec_options(::Base.JLOptions) at .\client.jl:295
 [6] _start() at .\client.jl:464
in expression starting at C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\packages\PackageCompiler\tk9TX\sysimg\run_julia_code.jl:1
ERROR: failed process: Process(`'C:\Users\carlm\AppData\Local\JuliaPro-1.2.0-1\Julia-1.2.0\bin\julia.exe' --compile=all --optimize=0 -g1 '--trace-compile=C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\packages\PackageCompiler\tk9TX\packages\precompile_tmp.jl' --startup-file=no --history-file=yes --code-coverage=none --inline=yes --math-mode=ieee --handle-signals=yes --warn-overwrite=no --compile=yes --depwarn=yes --cpu-target=native --track-allocation=none --sysimage-native-code=yes '--sysimage=C:\Users\carlm\AppData\Local\JuliaPro-1.2.0-1\Julia-1.2.0\lib\julia\sys.dll' -g1 --compiled-modules=yes --optimize=2 'C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\packages\PackageCompiler\tk9TX\sysimg\run_julia_code.jl'`, ProcessExited(1)) [1]

Stacktrace:
 [1] pipeline_error at .\process.jl:813 [inlined]
 [2] #run#536(::Bool, ::typeof(run), ::Cmd) at .\process.jl:728
 [3] run at .\process.jl:726 [inlined]
 [4] #run_julia#1 at C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\packages\PackageCompiler\tk9TX\src\compiler_flags.jl:225 [inlined]
 [5] #run_julia at .\none:0 [inlined]
 [6] snoop(::Symbol, ::String, ::String, ::String, ::Bool, ::Array{Any,1}) at C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\packages\PackageCompiler\tk9TX\src\snooping.jl:33
 [7] (::getfield(PackageCompiler, Symbol("##35#37")){Array{Any,1},Tuple{Symbol},Dict{Any,Any},String,Dict{String,Array{Dict{String,Any},1}}})(::IOStream) at C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\packages\PackageCompiler\tk9TX\src\snooping.jl:123
 [8] #open#312(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(open), ::getfield(PackageCompiler, Symbol("##35#37")){Array{Any,1},Tuple{Symbol},Dict{Any,Any},String,Dict{String,Array{Dict{String,Any},1}}}, ::String, ::Vararg{String,N} where N) at .\iostream.jl:375
 [9] open at .\iostream.jl:373 [inlined]
 [10] #snoop_packages#34 at C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\packages\PackageCompiler\tk9TX\src\snooping.jl:109 [inlined]
 [11] #snoop_packages at .\none:0 [inlined]
 [12] #compile_package#67(::Bool, ::Bool, ::Bool, ::Nothing, ::Bool, ::typeof(compile_package), ::Tuple{String,String}) at C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\packages\PackageCompiler\tk9TX\src\PackageCompiler.jl:124
 [13] #compile_package#64 at .\none:0 [inlined]
 [14] (::getfield(PackageCompiler, Symbol("#kw##compile_package")))(::NamedTuple{(:force,),Tuple{Bool}}, ::typeof(compile_package), ::String) at .\none:0
 [15] top-level scope at REPL[3]:1

I uninstalled Julia and JuliaPro, deleted my .julia and .juilia-pro folders. Installed the current release (1.2) fresh, and I had two problems:

  1. For some reason ]add Gadfly failed, and I had to do import Pkg; Pkg.add("Gadfly") instead.
  2. import PackageCompiler; PackageCompiler.compile_package("Gadfly", force=false) failed, but this time because of some problem between Gadfly and CSV.

I am really confused and I am not sure how to get a clean start. Any suggestions?

Full output from a fresh install of 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> status
    Status `C:\Users\carlm\.julia\environments\v1.2\Project.toml`
  (empty environment)

(v1.2) pkg> up
   Cloning default registries into `C:\Users\carlm\.julia`
   Cloning registry from "https://github.com/JuliaRegistries/General.git"
     Added registry `General` to `C:\Users\carlm\.julia\registries\General`
  Updating registry at `C:\Users\carlm\.julia\registries\General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...

(v1.2) pkg> add Gadfly
[ Info: resolving package identifier `Gadfly` as a directory at `C:\Users\carlm\AppData\Local\Julia-1.2.0\Gadfly`.
   Cloning git-repo `Gadfly`
ERROR: Git repository not found at 'Gadfly'

(v1.2) pkg> ?add
  add pkg[=uuid] [@version] [#rev] ...

  Add package pkg to the current project file. If pkg could refer to multiple different packages, specifying uuid
  allows you to disambiguate. @version optionally allows specifying which versions of packages to add. Version
  specifications are of the form @1, @1.2 or @1.2.3, allowing any version with a prefix that matches, or ranges
  thereof, such as @1.2-3.4.5. A git revision can be specified by #branch or #commit.

  If a local path is used as an argument to add, the path needs to be a git repository. The project will then track
  that git repository just like it would track a remote repository online.

  Examples

  pkg> add Example
  pkg> add Example@0.5
  pkg> add Example#master
  pkg> add Example#c37b675
  pkg> add https://github.com/JuliaLang/Example.jl#master
  pkg> add git@github.com:JuliaLang/Example.jl.git
  pkg> add Example=7876af07-990d-54b4-ab0e-23690620f79a

julia> import Pkg

julia> Pkg.add("Gadfly")
 Resolving package versions...
 Installed Missings ─────────────── v0.4.3
 Installed PDMats ───────────────── v0.9.10
 Installed StaticArrays ─────────── v0.12.1
 Installed KernelDensity ────────── v0.5.1
 Installed ArrayInterface ───────── v1.2.1
 Installed Compose ──────────────── v0.7.4
 Installed Optim ────────────────── v0.19.4
 Installed Gadfly ───────────────── v1.1.0
 Installed LineSearches ─────────── v7.0.1
 Installed StatsFuns ────────────── v0.9.0
 Installed MacroTools ───────────── v0.5.1
 Installed Compat ───────────────── v2.2.0
 Installed AxisAlgorithms ───────── v1.0.0
 Installed OffsetArrays ─────────── v0.11.1
 Installed FFTW ─────────────────── v1.1.0
 Installed SortingAlgorithms ────── v0.3.1
 Installed Calculus ─────────────── v0.5.0
 Installed Requires ─────────────── v0.5.2
 Installed WoodburyMatrices ─────── v0.4.1
 Installed Reexport ─────────────── v0.2.0
 Installed CommonSubexpressions ─── v0.2.0
 Installed NLSolversBase ────────── v7.5.0
 Installed Juno ─────────────────── v0.7.2
 Installed Arpack ───────────────── v0.3.1
 Installed Loess ────────────────── v0.5.0
 Installed Distributions ────────── v0.19.2
 Installed FillArrays ───────────── v0.7.4
 Installed DiffRules ────────────── v0.1.0
 Installed BinaryProvider ───────── v0.5.8
 Installed ColorTypes ───────────── v0.8.0
 Installed NaNMath ──────────────── v0.3.2
 Installed Conda ────────────────── v1.3.0
 Installed Interpolations ───────── v0.12.5
 Installed Colors ───────────────── v0.9.6
 Installed StatsBase ────────────── v0.32.0
 Installed IndirectArrays ───────── v0.5.0
 Installed AbstractFFTs ─────────── v0.5.0
 Installed Parameters ───────────── v0.12.0
 Installed DiffEqDiffTools ──────── v1.4.0
 Installed Hexagons ─────────────── v0.2.0
 Installed Distances ────────────── v0.8.2
 Installed Tokenize ─────────────── v0.5.6
 Installed URIParser ────────────── v0.4.0
 Installed OrderedCollections ───── v1.1.0
 Installed BinDeps ──────────────── v0.8.10
 Installed Showoff ──────────────── v0.3.1
 Installed Media ────────────────── v0.5.0
 Installed Measures ─────────────── v0.3.0
 Installed JSON ─────────────────── v0.20.0
 Installed IterTools ────────────── v1.2.0
 Installed PositiveFactorizations ─ v0.2.3
 Installed FixedPointNumbers ────── v0.6.1
 Installed QuadGK ───────────────── v2.1.1
 Installed SpecialFunctions ─────── v0.8.0
 Installed DataStructures ───────── v0.15.0
 Installed CSTParser ────────────── v1.0.0
 Installed ForwardDiff ──────────── v0.10.6
 Installed Rmath ────────────────── v0.5.1
 Installed CategoricalArrays ────── v0.5.5
 Installed VersionParsing ───────── v1.1.3
 Installed DiffResults ──────────── v0.0.4
 Installed Ratios ───────────────── v0.3.1
 Installed DataAPI ──────────────── v1.1.0
 Installed Contour ──────────────── v0.5.1
 Installed DocStringExtensions ──── v0.7.0
 Installed CoupledFields ────────── v0.1.0
  Updating `C:\Users\carlm\.julia\environments\v1.2\Project.toml`
  [c91e804a] + Gadfly v1.1.0
  Updating `C:\Users\carlm\.julia\environments\v1.2\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
  [b99e7846] + BinaryProvider v0.5.8
  [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.1.0
  [b4f34e82] + Distances v0.8.2
  [31c24e10] + Distributions v0.19.2
  [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
  [c91e804a] + Gadfly v1.1.0
  [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.5.1
  [992d4aef] + Showoff v0.3.1
  [a2af1166] + SortingAlgorithms v0.3.1
  [276daf66] + SpecialFunctions v0.8.0
  [90137ffa] + StaticArrays v0.12.1
  [2913bbd2] + StatsBase v0.32.0
  [4c63d2b9] + StatsFuns v0.9.0
  [0796e94c] + Tokenize v0.5.6
  [30578b45] + URIParser v0.4.0
  [81def892] + VersionParsing v1.1.3
  [efce3f68] + WoodburyMatrices v0.4.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
  [9abbd945] + Profile
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [1a1011a3] + SharedArrays
  [6462fe0b] + Sockets
  [2f01184e] + SparseArrays
  [10745b16] + Statistics
  [4607b0f0] + SuiteSparse
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  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 Arpack ──────────→ `C:\Users\carlm\.julia\packages\Arpack\cu5By\deps\build.log`
  Building SpecialFunctions → `C:\Users\carlm\.julia\packages\SpecialFunctions\ne2iw\deps\build.log`
  Building Rmath ───────────→ `C:\Users\carlm\.julia\packages\Rmath\4wt82\deps\build.log`

julia> Pkg.add("PackageCompiler")
 Resolving package versions...
 Installed WinRPM ────────── v0.4.2
 Installed BufferedStreams ─ v1.0.0
 Installed Libz ──────────── v1.0.0
 Installed PackageCompiler ─ v0.6.4
 Installed LibCURL ───────── v0.5.2
 Installed HTTPClient ────── v0.2.1
 Installed LibExpat ──────── v0.5.0
  Updating `C:\Users\carlm\.julia\environments\v1.2\Project.toml`
  [9b87118b] + PackageCompiler v0.6.4
  Updating `C:\Users\carlm\.julia\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
  [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`

julia> import PackageCompiler
[ Info: Precompiling PackageCompiler [9b87118b-4619-50d2-8e1e-99f35a4d4d9d]

julia> PackageCompiler.compile_package("Gadfly")
[ Info: Precompiling Gadfly [c91e804a-d5a3-530f-b6f0-dfbca275c004]
ERROR: InterruptException:ERROR:
Stacktrace:
 [1] poptaskref(::Base.InvasiveLinkedListSynchronized{Task}) at .\task.jl:564
 [2] wait() at .\task.jl:591
 [3] wait(::Base.ERROR: GenericCondition{Base.AlwaysLockedST}) at .\condition.jl:104
 [4] stream_wait(::Base.Process, ::Base.GenericCondition{Base.AlwaysLockedST}) at .\stream.jl:47
 [5] wait at .\process.jl:956 [inlined]
 [6] success at .\process.jl:771 [inlined]
 [7] compilecache(::Base.PkgId, ::String) at .\loading.jl:1245
 [8] _require(::Base.PkgId) at .\loading.jl:1013
 [9] require(::Base.PkgId) at .\loading.jl:911
 [10] require(::Module, ::Symbol) at .\loading.jl:906
 [11] package_toml(::Symbol) at C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\src\pkg.jl:105
 [12] (::getfield(PackageCompiler, Symbol("##35#37")){Array{Any,1},Tuple{Symbol},Dict{Any,Any},String,Dict{String,Array{Dict{String,Any},1}}})(::IOStream) at C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\src\snooping.jl:122
 [13] #open#312(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{LoadError: (LoadError: ),Tuple{}}}, ::typeof(open), ::getfield(PackageCompiler, Symbol("##35#37")){Array{Any,1},Tuple{Symbol},Dict{Any,Any},String,Dict{String,Array{Dict{String,Any},1}}}, ::String, ::Vararg{String,N} where N) at .\iostream.jl:375
 [14] open at .\iostream.jl:373 [inlined]
 [15] #snoop_packages#34 at C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\src\snooping.jl:109 [inlined]
 [16] #snoop_packages at .\none:0 [inlined]
 [17] #compile_package#67(::Bool, ::Bool, ::Bool, ::Nothing, ::Bool, ::typeof(PackageCompiler.compile_package), ::Tuple{String,String}) at C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\src\PackageCompiler.jl:124
 [18] #compile_package#64 at C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\src\PackageCompiler.jl:118 [inlined]
 [19] compile_package(::String) at C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\src\PackageCompiler.jl:90
 [20] top-level scope at REPL[9]:1

julia> InterruptException:InterruptException:
Stacktrace:
Stacktrace:
 [1] poptaskref
 [1] _include_from_serialized((::::Base.InvasiveLinkedListSynchronized{Task}) at .\task.jl:564
 [2] wait() at .\task.jl:591
 [3] wait(::Base.GenericCondition{Base.AlwaysLockedST}) at .\condition.jl:104
 [4] stream_wait(::Base.Process, ::Base.GenericCondition{Base.AlwaysLockedST}) at .\stream.jl:47
 [5] wait at .\process.jl:956 [inlined]
 [6] success at .\process.jl:771 [inlined]
 [7] compilecache(::Base.PkgId, ::String) at .\loading.jl:1245
 [8] _require(::Base.PkgId) at .\loading.jl:1013
 [9] require(::Base.PkgId) at .\loading.jl:911
 [10] require(::Module, ::Symbol) at .\loading.jl:906
 [11] include at .\boot.jl:328 [inlined]
 [12] include_relative(::Module, ::String) at .\loading.jl:1094
 [13] include(::Module, ::String) at .\Base.jl:31
 [14] top-level scope at String, none:2::Array{
Any [15] ,eval at .\boot.jl:330 [inlined]
 [16] 1}eval)( at ::Expr.\loading.jl:669)
 at  [2] .\client.jl:432_require_from_serialized
 [17] top-level scope at (.\none:3::String
in expression starting at C:\Users\carlm\.julia\packages\Gadfly\1wgcD\src\Gadfly.jl:5
) at .\loading.jl:736
 [3] _require(::Base.PkgId) at .\loading.jl:1023
 [4] require(::Base.PkgId) at .\loading.jl:911
 [5] require(::Module, ::Symbol) at .\loading.jl:906
 [6] include at .\boot.jl:328 [inlined]
 [7] include_relative(::Module, ::String) at .\loading.jl:1094
 [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:432
 [12] top-level scope at .\none:3
in expression starting at C:\Users\carlm\.julia\packages\Compose\UIDMc\src\Compose.jl:5
julia> ^C

julia> PackageCompiler.compile_package("Gadfly", force=false)
[ Info: Precompiling Gadfly [c91e804a-d5a3-530f-b6f0-dfbca275c004]
  Updating registry at `C:\Users\carlm\.julia\registries\General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
 Installed Rmath ──────────── v0.6.0
 Installed DiffRules ──────── v0.0.10
 Installed StatsFuns ──────── v0.8.0
 Installed SpecialFunctions ─ v0.7.2
 Installed StatsBase ──────── v0.30.0
 Installed Distributions ──── v0.20.0
  Updating `C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\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\.julia\packages\PackageCompiler\CJQcs\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
  [b99e7846] + BinaryProvider v0.5.8
  [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
  [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
  [9abbd945] + Profile
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [1a1011a3] + SharedArrays
  [6462fe0b] + Sockets
  [2f01184e] + SparseArrays
  [10745b16] + Statistics
  [4607b0f0] + SuiteSparse
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  Building SpecialFunctions → `C:\Users\carlm\.julia\packages\SpecialFunctions\fvheQ\deps\build.log`
  Building Rmath ───────────→ `C:\Users\carlm\.julia\packages\Rmath\BoBag\deps\build.log`
 Resolving package versions...
  Updating `C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\packages\Gadfly\Project.toml`
  [9b87118b] + PackageCompiler v0.6.4
  [44cfe95a] + Pkg
  Updating `C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\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
Activating environment at `C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\packages\Gadfly\Project.toml`
ERROR: LoadError: `CSV` is a direct dependency, but does not appear in the manifest. If you intend `CSV` to be a direct dependency, run `Pkg.resolve()` to populate the manifest. Otherwise, remove `CSV` with `Pkg.rm("CSV")`. Finally, run `Pkg.instantiate()` again.
Stacktrace:
 [1] pkgerror(::String, ::Vararg{String,N} where N) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\Types.jl:112
 [2] #instantiate#81(::Nothing, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.instantiate), ::Pkg.Types.Context) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\API.jl:472
 [3] instantiate at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\API.jl:461 [inlined]
 [4] #instantiate#80 at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\API.jl:458 [inlined]
 [5] instantiate() at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\API.jl:458
 [6] top-level scope at C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\sysimg\run_julia_code.jl:6
 [7] include at .\boot.jl:328 [inlined]
 [8] include_relative(::Module, ::String) at .\loading.jl:1094
 [9] include(::Module, ::String) at .\Base.jl:31
 [10] exec_options(::Base.JLOptions) at .\client.jl:295
 [11] _start() at .\client.jl:464
in expression starting at C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\sysimg\run_julia_code.jl:6
ERROR: failed process: Process(`'C:\Users\carlm\AppData\Local\Julia-1.2.0\bin\julia.exe' --compile=all --optimize=0 -g1 '--trace-compile=C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\packages\precompile_tmp.jl' --history-file=yes --code-coverage=none --inline=yes --math-mode=ieee --handle-signals=yes --warn-overwrite=no --compile=yes --depwarn=yes --cpu-target=native --track-allocation=none --sysimage-native-code=yes '--sysimage=C:\Users\carlm\AppData\Local\Julia-1.2.0\lib\julia\sys.dll' -g1 --compiled-modules=yes --optimize=2 'C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\sysimg\run_julia_code.jl'`, ProcessExited(1)) [1]

Stacktrace:
 [1] pipeline_error at .\process.jl:813 [inlined]
 [2] #run#536(::Bool, ::typeof(run), ::Cmd) at .\process.jl:728
 [3] run at .\process.jl:726 [inlined]
 [4] #run_julia#1 at C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\src\compiler_flags.jl:225 [inlined]
 [5] #run_julia at .\none:0 [inlined]
 [6] snoop(::Symbol, ::String, ::String, ::String, ::Bool, ::Array{Any,1}) at C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\src\snooping.jl:33
 [7] (::getfield(PackageCompiler, Symbol("##35#37")){Array{Any,1},Tuple{Symbol},Dict{Any,Any},String,Dict{String,Array{Dict{String,Any},1}}})(::IOStream) at C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\src\snooping.jl:123
 [8] #open#312(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(open), ::getfield(PackageCompiler, Symbol("##35#37")){Array{Any,1},Tuple{Symbol},Dict{Any,Any},String,Dict{String,Array{Dict{String,Any},1}}}, ::String, ::Vararg{String,N} where N) at .\iostream.jl:375
 [9] open at .\iostream.jl:373 [inlined]
 [10] #snoop_packages#34 at C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\src\snooping.jl:109 [inlined]
 [11] #snoop_packages at .\none:0 [inlined]
 [12] #compile_package#67(::Bool, ::Bool, ::Bool, ::Nothing, ::Bool, ::typeof(PackageCompiler.compile_package), ::Tuple{String,String}) at C:\Users\carlm\.julia\packages\PackageCompiler\CJQcs\src\PackageCompiler.jl:124
 [13] #compile_package#64 at .\none:0 [inlined]
 [14] (::getfield(PackageCompiler, Symbol("#kw##compile_package")))(::NamedTuple{(:force,),Tuple{Bool}}, ::typeof(PackageCompiler.compile_package), ::String) at .\none:0
 [15] top-level scope at REPL[10]:1

I’m also confused, ]add Gadfly should just work. You might need to delete the directory C:\Users\carlm\AppData\Local\Julia-1.2.0 (Julia shouldn’t think that Gadfly is a directory there). Also test if Gadfly works first (using Gadfly) before trying PackageCompiler. For PackageCompiler, you need to do either ]dev PackageCompiler or ]add PackageCompiler#master, which I don’t see in your last attempt.

The Pkg REPL mode accepts paths to git repos as arguments (it says this in the help you printed). So C:\Users\carlm\AppData\Local\Julia-1.2.0 must have been your working directory and you have a Gadfly directory in that folder. Pkg attempted to add that directory ( Info: resolving package identifier `Gadfly` as a directory at `C:\Users\carlm\AppData\Local\Julia-1.2.0\Gadfly), but failed since it is not a git repo.

Pkg.add only accepts registered package names by default, so that is why that specific command succeeded.

You’re right. Somehow a Gadfly directory got created. I deleted that folder as well as any other Julia looking folders, and installed JuliaPro again. I retried the steps from before with PackageCompiler#master, and now I get an error related to CSV. For some reason it appears to be looking in a C:\Users\julia\ directory which doesn’t exist:

Julia program file:
  "C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\packages\PackageCompiler\tk9TX\sysimg\precompile.jl"
Build directory:
  "C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\packages\PackageCompiler\tk9TX\sysimg"
┌ Info: activating new environment at C:\Users\carlm\.juliapro\JuliaPro_v1.2.0-1\packages\PackageCompiler\tk
└ @ Pkg.API C:\Users\julia\AppData\Local\Julia-1.2.0\share\julia\stdlib\v1.2\Pkg\src\API.jl:524
  Updating registry at `C:\Users\carlm\.julia\registries\General`
┌ Warning: ErrorException("PCRE.exec error: NULL argument passed")
└ @ Pkg.Operations C:\Users\julia\AppData\Local\Julia-1.2.0\share\julia\stdlib\v1.2\Pkg\src\Operations.jl:48
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
ERROR: LoadError: LoadError: ArgumentError: Package CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b] is required b
 - Run `Pkg.instantiate()` to install all recorded dependencies.

At this point, I’ve mostly given up. I cannot figure out either where the error is or how my setup is somehow broken.

If you have any advice for how to get a clean start I’m still up for another try.

i just got Gadfly to compile using PackageCompilerX using:

]activate gadflycompile
]add Gadfly
]add https://github.com/JuliaComputing/PackageCompilerX.jl.git
create_sysimage(:Gadfly, sysimage_path="GadflySysImage.so", precompile_execution_file=".julia/dev/Gadfly/test/runtests.jl")

note that PackageCompileX reauires julia 1.3.1.