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

Precompile fails on Julia v1.4.0 due to Printf #258

Closed
braamvandyk opened this issue Mar 23, 2020 · 5 comments
Closed

Precompile fails on Julia v1.4.0 due to Printf #258

braamvandyk opened this issue Mar 23, 2020 · 5 comments

Comments

@braamvandyk
Copy link

Julia 1.4.0 Official Binaries
ODBC v0.9.0

Updated packages and started precompile. This resulted in the following:

[ Info: Precompiling ODBC [be6f12e9-ca4f-5eb2-a339-a4f995cc0291]
ERROR: LoadError: UndefVarError: Printf not defined
Stacktrace:
[1] getproperty(::Module, ::Symbol) at .\Base.jl:26
[2] top-level scope at C:\Users\vdykb.julia\packages\DecFP\3jJW7\src\DecFP.jl:294
[3] eval(::Module, ::Any) at .\boot.jl:331
[4] top-level scope at C:\Users\vdykb.julia\packages\DecFP\3jJW7\src\DecFP.jl:222
[5] include(::Module, ::String) at .\Base.jl:377
[6] top-level scope at none:2
[7] eval at .\boot.jl:331 [inlined]
[8] eval(::Expr) at .\client.jl:449
[9] top-level scope at .\none:3
in expression starting at C:\Users\vdykb.julia\packages\DecFP\3jJW7\src\DecFP.jl:207
ERROR: LoadError: Failed to precompile DecFP [55939f99-70c6-5e9b-8bb0-5071ed7d61fd] to C:\Users\vdykb.julia\compiled\v1.4\DecFP\QmCKT_LM9Ra.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1272
[3] _require(::Base.PkgId) at .\loading.jl:1029
[4] require(::Base.PkgId) at .\loading.jl:927
[5] require(::Module, ::Symbol) at .\loading.jl:922
[6] include(::Module, ::String) at .\Base.jl:377
[7] top-level scope at none:2
[8] eval at .\boot.jl:331 [inlined]
[9] eval(::Expr) at .\client.jl:449
[10] top-level scope at .\none:3
in expression starting at C:\Users\vdykb.julia\packages\ODBC\5L1N8\src\ODBC.jl:3

@braamvandyk
Copy link
Author

Update: I forked the repo and "dev"'d in Julia. Same error. I then instantiated the project to install dependencies and the error went away. I'll test uninstalling ODBC and reinstalling a clean copy to see if that fixes this.

@braamvandyk
Copy link
Author

Last update. Uninstalled the package and forced a garbage collect via

using Pkg, Dates
Pkg.gc(;collect_delay=Hour(0))

Then reinstalled and did a precompile. Worked just fine. I think this can be closed. If someone else has this issue, perhaps this will work for them as well.

@alecloudenback
Copy link

alecloudenback commented Mar 31, 2020

I had this issue too - add DecFP#master fixed it for me. Doing the uninstall/reinstall and garbage collect did not work for me.

@gw-gdm
Copy link

gw-gdm commented Jul 5, 2020

@alecloudenback how did you fix this issue? I did Pkg.add("DecFP") and it doesn't work.

@alecloudenback
Copy link

CSV.jl recently underwent a major overhaul so the same solution might not work.

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

3 participants