Hi, pszufe,
I removed all the packages installed via rm packageName
under the pkg mode in my atom REPL.
Then, I removed the entire .julia folder.
Then, I reinstalled the OpenStreetMapX and OpenStreetMapXPlot package using
(v1.0) pkg> add OpenStreetMapX
(v1.0) pkg> add https://github.com/pszufe/OpenStreetMapXPlot.jl
Then, the following is part of what has happened. Forgive me for this long posting. I can edit it later if necessary.
Starting Julia...
[ Info: Precompiling Atom [c52e3926-4ff0-5f6e-af25-54175e0327b1]
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.0.3 (2018-12-18)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia>
julia> using Pkg
julia> Pkg.installed()
Dict{String,Union{Nothing, VersionNumber}} with 4 entries:
"Juno" => v"0.5.4"
"OpenStreetMapX" => v"0.1.5"
"Atom" => v"0.7.14"
"OpenStreetMapXPlot" => v"0.1.2"
julia> using OpenStreetMapX
[ Info: Precompiling OpenStreetMapX [86cd37e6-c0ff-550b-95fe-21d72c8d4fc9]
julia> using OpenStreetMapXPlot
[ Info: Precompiling OpenStreetMapXPlot [d3d4fdd0-c191-11e8-3358-a3629b56487d]
ERROR: LoadError: InitError: PyError (PyImport_ImportModule
The Python package matplotlib could not be found by pyimport. Usually this means
that you did not install matplotlib in the Python version being used by PyCall.
PyCall is currently configured to use the Python version at:
/usr/bin/python3
and you should use whatever mechanism you usually use (apt-get, pip, conda,
etcetera) to install the Python package containing the matplotlib module.
One alternative is to re-configure PyCall to use a different Python
version on your system: set ENV["PYTHON"] to the path/name of the python
executable you want to use, run Pkg.build("PyCall"), and re-launch Julia.
Another alternative is to configure PyCall to use a Julia-specific Python
distribution via the Conda.jl package (which installs a private Anaconda
Python distribution), which has the advantage that packages can be installed
and kept up-to-date via Julia. As explained in the PyCall documentation,
set ENV["PYTHON"]="", run Pkg.build("PyCall"), and re-launch Julia. Then,
To install the matplotlib module, you can use `pyimport_conda("matplotlib", PKG)`,
where PKG is the Anaconda package the contains the module matplotlib,
or alternatively you can use the Conda package directly (via
`using Conda` followed by `Conda.add` etcetera).
) <class 'ModuleNotFoundError'>
ModuleNotFoundError("No module named 'matplotlib'",)
Stacktrace:
[1] pyimport(::String) at /home/devel/.julia/packages/PyCall/RQjD7/src/PyCall.jl:537
[2] pyimport_conda(::String, ::String, ::String) at /home/devel/.julia/packages/PyCall/RQjD7/src/PyCall.jl:695
[3] pyimport_conda at /home/devel/.julia/packages/PyCall/RQjD7/src/PyCall.jl:694 [inlined]
[4] __init__() at /home/devel/.julia/packages/PyPlot/mQXSC/src/init.jl:174
[5] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:633
[6] _require_from_serialized(::String) at ./loading.jl:684
[7] _require(::Base.PkgId) at ./loading.jl:967
[8] require(::Base.PkgId) at ./loading.jl:858
[9] require(::Module, ::Symbol) at ./loading.jl:853
[10] include at ./boot.jl:317 [inlined]
[11] include_relative(::Module, ::String) at ./loading.jl:1044
[12] include(::Module, ::String) at ./sysimg.jl:29
[13] top-level scope at none:2
[14] eval at ./boot.jl:319 [inlined]
[15] eval(::Expr) at ./client.jl:393
[16] top-level scope at ./none:3
during initialization of module PyPlot
in expression starting at /home/devel/.julia/packages/OpenStreetMapXPlot/As5Bc/src/OpenStreetMapXPlot.jl:6
ERROR: Failed to precompile OpenStreetMapXPlot [d3d4fdd0-c191-11e8-3358-a3629b56487d] to /home/devel/.julia/compiled/v1.0/OpenStreetMapXPlot/EiJFN.ji.
Stacktrace:
[1] compilecache(::Base.PkgId, ::String) at ./loading.jl:1203
[2] _require(::Base.PkgId) at ./loading.jl:960
[3] require(::Base.PkgId) at ./loading.jl:858
[4] require(::Module, ::Symbol) at ./loading.jl:853
(v1.0) pkg> add PyCall
Resolving package versions...
Updating `~/.julia/environments/v1.0/Project.toml`
[438e738f] + PyCall v1.90.0
Updating `~/.julia/environments/v1.0/Manifest.toml`
[no changes]
julia>
julia> using OpenStreetMapXPlot
[ Info: Precompiling OpenStreetMapXPlot [d3d4fdd0-c191-11e8-3358-a3629b56487d]
ERROR: LoadError: InitError: PyError (PyImport_ImportModule
The Python package matplotlib could not be found by pyimport. Usually this means
that you did not install matplotlib in the Python version being used by PyCall.
PyCall is currently configured to use the Python version at:
/usr/bin/python3
and you should use whatever mechanism you usually use (apt-get, pip, conda,
etcetera) to install the Python package containing the matplotlib module.
One alternative is to re-configure PyCall to use a different Python
version on your system: set ENV["PYTHON"] to the path/name of the python
executable you want to use, run Pkg.build("PyCall"), and re-launch Julia.
Another alternative is to configure PyCall to use a Julia-specific Python
distribution via the Conda.jl package (which installs a private Anaconda
Python distribution), which has the advantage that packages can be installed
and kept up-to-date via Julia. As explained in the PyCall documentation,
set ENV["PYTHON"]="", run Pkg.build("PyCall"), and re-launch Julia. Then,
To install the matplotlib module, you can use `pyimport_conda("matplotlib", PKG)`,
where PKG is the Anaconda package the contains the module matplotlib,
or alternatively you can use the Conda package directly (via
`using Conda` followed by `Conda.add` etcetera).
) <class 'ModuleNotFoundError'>
ModuleNotFoundError("No module named 'matplotlib'",)
Stacktrace:
[1] pyimport(::String) at /home/devel/.julia/packages/PyCall/RQjD7/src/PyCall.jl:537
[2] pyimport_conda(::String, ::String, ::String) at /home/devel/.julia/packages/PyCall/RQjD7/src/PyCall.jl:695
[3] pyimport_conda at /home/devel/.julia/packages/PyCall/RQjD7/src/PyCall.jl:694 [inlined]
[4] __init__() at /home/devel/.julia/packages/PyPlot/mQXSC/src/init.jl:174
[5] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:633
[6] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:713
[7] _require(::Base.PkgId) at ./loading.jl:937
[8] require(::Base.PkgId) at ./loading.jl:858
[9] require(::Module, ::Symbol) at ./loading.jl:853
[10] include at ./boot.jl:317 [inlined]
[11] include_relative(::Module, ::String) at ./loading.jl:1044
[12] include(::Module, ::String) at ./sysimg.jl:29
[13] top-level scope at none:2
[14] eval at ./boot.jl:319 [inlined]
[15] eval(::Expr) at ./client.jl:393
[16] top-level scope at ./none:3
during initialization of module PyPlot
in expression starting at /home/devel/.julia/packages/OpenStreetMapXPlot/As5Bc/src/OpenStreetMapXPlot.jl:6
ERROR: Failed to precompile OpenStreetMapXPlot [d3d4fdd0-c191-11e8-3358-a3629b56487d] to /home/devel/.julia/compiled/v1.0/OpenStreetMapXPlot/EiJFN.ji.
Stacktrace:
[1] compilecache(::Base.PkgId, ::String) at ./loading.jl:1203
[2] _require(::Base.PkgId) at ./loading.jl:960
[3] require(::Base.PkgId) at ./loading.jl:858
[4] require(::Module, ::Symbol) at ./loading.jl:853
julia> using Pkg
julia> Pkg.installed()
Dict{String,Union{Nothing, VersionNumber}} with 5 entries:
"Juno" => v"0.5.4"
"OpenStreetMapX" => v"0.1.5"
"Atom" => v"0.7.14"
"PyCall" => v"1.90.0"
"OpenStreetMapXPlot" => v"0.1.2"
julia> ENV["PYTHON"]="/home/devel/anaconda3/bin/python"
"/home/devel/anaconda3/bin/python"
julia> Pkg.build("PyCall")
Building Conda ββ `~/.julia/packages/Conda/CpuvI/deps/build.log`
Building PyCall β `~/.julia/packages/PyCall/RQjD7/deps/build.log`
julia>
Julia has exited. Press Enter to start a new session.
Starting Julia...
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.0.3 (2018-12-18)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> using OpenStreetMapX
julia> using OpenStreetMapXPlot
[ Info: Precompiling OpenStreetMapXPlot [d3d4fdd0-c191-11e8-3358-a3629b56487d]
β Warning: `getindex(o::PyObject, s::Symbol)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o.s` instead of `o[:s]`.
β caller = __init__() at init.jl:175
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:175
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = find_backend(::PyCall.PyObject) at init.jl:73
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:73
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = find_backend(::PyCall.PyObject) at init.jl:129
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:129
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = find_backend(::PyCall.PyObject) at init.jl:142
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:142
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = __init__() at init.jl:189
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:189
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = __init__() at init.jl:191
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:191
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = __init__() at init.jl:192
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:192
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = __init__() at init.jl:193
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:193
β Warning: `setindex!(o::PyObject, v, s::Union{Symbol, AbstractString})` is deprecated in favor of `setproperty!(o, s, v)`.
β caller = __init__() at init.jl:194
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:194
β Warning: `setindex!(o::PyObject, v, s::Union{Symbol, AbstractString})` is deprecated in favor of `setproperty!(o, s, v)`.
β caller = __init__() at init.jl:195
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:195
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = init_colormaps() at colormaps.jl:45
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/colormaps.jl:45
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = init_colormaps() at colormaps.jl:47
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/colormaps.jl:47
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = init_colormaps() at colormaps.jl:49
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/colormaps.jl:49
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = init_colormaps() at colormaps.jl:50
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/colormaps.jl:50
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = init_colormaps() at colormaps.jl:52
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/colormaps.jl:52
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = init_colormaps() at colormaps.jl:53
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/colormaps.jl:53
β Warning: `getindex(o::PyObject, s::Symbol)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o.s` instead of `o[:s]`.
β caller = __init__() at init.jl:175
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:175
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = find_backend(::PyCall.PyObject) at init.jl:73
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:73
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = find_backend(::PyCall.PyObject) at init.jl:129
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:129
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = find_backend(::PyCall.PyObject) at init.jl:142
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:142
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = __init__() at init.jl:189
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:189
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = __init__() at init.jl:191
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:191
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = __init__() at init.jl:192
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:192
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = __init__() at init.jl:193
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:193
β Warning: `setindex!(o::PyObject, v, s::Union{Symbol, AbstractString})` is deprecated in favor of `setproperty!(o, s, v)`.
β caller = __init__() at init.jl:194
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:194
β Warning: `setindex!(o::PyObject, v, s::Union{Symbol, AbstractString})` is deprecated in favor of `setproperty!(o, s, v)`.
β caller = __init__() at init.jl:195
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:195
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = __init__() at init.jl:204
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:204
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = __init__() at init.jl:205
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/init.jl:205
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = init_colormaps() at colormaps.jl:45
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/colormaps.jl:45
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = init_colormaps() at colormaps.jl:47
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/colormaps.jl:47
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = init_colormaps() at colormaps.jl:49
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/colormaps.jl:49
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = init_colormaps() at colormaps.jl:50
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/colormaps.jl:50
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = init_colormaps() at colormaps.jl:52
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/colormaps.jl:52
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = init_colormaps() at colormaps.jl:53
β @ PyPlot ~/.julia/packages/PyPlot/mQXSC/src/colormaps.jl:53
β Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o."s"` instead of `o["s"]`.
β caller = top-level scope at none:0
β @ Core none:0
julia> m=get_map_data("/home/devel/Desktop/output.osm")
ERROR: KeyError: key OpenStreetMapX [5c67c38e-c187-11e8-2be6-e3a6a3a5610f] not found