Wedg / PlotShapefiles.jl

A package to plot shapefiles with Julia.
MIT License
12 stars 3 forks source link

Unable to install/use on 1.0.3 #3

Closed johannspies closed 5 years ago

johannspies commented 5 years ago

I get this:

using PlotShapefiles
[ Info: Precompiling PlotShapefiles [e62d43aa-b002-5ea9-b6a3-79e43a2fe733]
ERROR: LoadError: ArgumentError: Package PlotShapefiles does not have Reexport in its dependencies:
- If you have PlotShapefiles checked out for development and have
  added Reexport as a dependency but haven't updated your primary
  environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with PlotShapefiles
Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:836
 [2] include at ./boot.jl:317 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1044
 [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:393
 [8] top-level scope at ./none:3
in expression starting at /home/js/.julia/packages/PlotShapefiles/AsH6H/src/PlotShapefiles.jl:9
ERROR: Failed to precompile PlotShapefiles [e62d43aa-b002-5ea9-b6a3-79e43a2fe733] to /home/js/.julia/compiled/v1.0/PlotShapefiles/OBDFk.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1203
 [3] _require(::Base.PkgId) at ./loading.jl:960
 [4] require(::Base.PkgId) at ./loading.jl:858
 [5] require(::Module, ::Symbol) at ./loading.jl:853
sanberlan commented 5 years ago

I also have the same problem on julia 1.0.2 running on Mac OSX 10.10.5 and with julia 1.0.0 running on Windows 7. I think it might be an issue on the OS, because those are not very new, but does anyone know something about it?

Wedg commented 5 years ago

Hi both

Apologies this took me some time to look into. I needed to update for the Julia 1.0 method of registering packages and dependencies i.e. adding Project.toml and Manifest.toml files.

Please can you try now by removing the package i.e. (v1.x) pkg> remove PlotShapefiles

And then re adding i.e. (v1.x) pkg> add https://github.com/Wedg/PlotShapefiles.jl

This now works for me. Let me know if that solves it for you.

johannspies commented 5 years ago

Thanks. That helped. I could install and precompile it now.

Wedg commented 5 years ago

Thanks Johan!