Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't precompile current master: Metadata not defined #19

Closed
Datseris opened this issue Jan 13, 2020 · 4 comments
Closed

Can't precompile current master: Metadata not defined #19

Datseris opened this issue Jan 13, 2020 · 4 comments

Comments

@Datseris
Copy link

I have master of DimensionalData and GeoData checked out to learn them and try them out. ATM GeoData can't be precompiled, I get:

[ Info: Precompiling GeoData [9b6fcbb8-86d6-11e9-1ce7-23a6bb139a78]
ERROR: LoadError: LoadError: UndefVarError: Metadata not defined
Stacktrace:
 [1] top-level scope at C:\Users\gast\.julia\packages\GeoData\l3fFH\src\array.jl:105
 [2] include at .\boot.jl:328 [inlined]
 [3] include_relative(::Module, ::String) at .\loading.jl:1105
 [4] include at .\Base.jl:31 [inlined]
 [5] include(::String) at C:\Users\gast\.julia\packages\GeoData\l3fFH\src\GeoData.jl:1
 [6] top-level scope at C:\Users\gast\.julia\packages\GeoData\l3fFH\src\GeoData.jl:41
 [7] include at .\boot.jl:328 [inlined]
 [8] include_relative(::Module, ::String) at .\loading.jl:1105
 [9] include(::Module, ::String) at .\Base.jl:31
 [10] top-level scope at none:2
 [11] eval at .\boot.jl:330 [inlined]
 [12] eval(::Expr) at .\client.jl:425
 [13] top-level scope at .\none:3
in expression starting at C:\Users\gast\.julia\packages\GeoData\l3fFH\src\array.jl:105
in expression starting at C:\Users\gast\.julia\packages\GeoData\l3fFH\src\GeoData.jl:41
ERROR: Failed to precompile GeoData [9b6fcbb8-86d6-11e9-1ce7-23a6bb139a78] to C:\Users\gast\.julia\compiled\v1.3\GeoData\QAW9G_UmaT5.ji.

The line at fault is from utilities:

@inline getmeta(m::Metadata, key, fallback) = getmeta(val(m), key, fallback) 
@Datseris
Copy link
Author

Even if one comments out that line, other similar errors related to Metadata occur:

ERROR: LoadError: LoadError: UndefVarError: AbstractArrayMetadata not defined
Stacktrace:
 [1] top-level scope at C:\Users\gast\.julia\dev\GeoData\src\sources\grd.jl:6

@Datseris
Copy link
Author

@rafaqz I'd really like to try out GeoData but I haven't found the reason for this yet. Any tips?

@rafaqz
Copy link
Owner

rafaqz commented Jan 14, 2020

Master was way out of date as I was working on a branch. I just updated and looks like it's passing. It should mostly work from now as other people need to use it anyway.

If you want to try gdal you will need to use my branch of ArchGDAL too, until the PR is finished:

https://github.com/rafaqz/ArchGDAL.jl on the formattypes branch

@rafaqz
Copy link
Owner

rafaqz commented Jan 14, 2020

Also the one thin not in the test is plotting. But you should try A |> plot with any geoarray.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants