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

Failed to precompile - related to Printf and DecFP #311

Closed
whubbla opened this issue Sep 1, 2020 · 3 comments
Closed

Failed to precompile - related to Printf and DecFP #311

whubbla opened this issue Sep 1, 2020 · 3 comments

Comments

@whubbla
Copy link

whubbla commented Sep 1, 2020

Hello.

I recently installed Julia 1.5.0. I need to be able to import data from Microsoft SQL server and it seemed like your extension would help me. I added it through the package manager. Now, when I type "using ODBC", it tells me that it failed to precompile. I can successfully run "using Printf" but not "using DecFP". See below:


julia> using ODBC
[ 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\MyName\.julia\packages\DecFP\3jJW7\src\DecFP.jl:294
 [3] eval(::Module, ::Any) at .\boot.jl:331
 [4] top-level scope at C:\Users\MyName\.julia\packages\DecFP\3jJW7\src\DecFP.jl:222
 [5] include(::Function, ::Module, ::String) at .\Base.jl:380
 [6] include(::Module, ::String) at .\Base.jl:368
 [7] top-level scope at none:2
 [8] eval at .\boot.jl:331 [inlined]
 [9] eval(::Expr) at .\client.jl:467
 [10] top-level scope at .\none:3
in expression starting at C:\Users\MyName\.julia\packages\DecFP\3jJW7\src\DecFP.jl:207
ERROR: LoadError: Failed to precompile DecFP [55939f99-70c6-5e9b-8bb0-5071ed7d61fd] to C:\Users\MyName\.julia\compiled\v1.5\DecFP\QmCKT_XVKWc.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1290
 [3] _require(::Base.PkgId) at .\loading.jl:1030
 [4] require(::Base.PkgId) at .\loading.jl:928
 [5] require(::Module, ::Symbol) at .\loading.jl:923
 [6] include(::Function, ::Module, ::String) at .\Base.jl:380
 [7] include(::Module, ::String) at .\Base.jl:368
 [8] top-level scope at none:2
 [9] eval at .\boot.jl:331 [inlined]
 [10] eval(::Expr) at .\client.jl:467
 [11] top-level scope at .\none:3
in expression starting at C:\Users\MyName\.julia\packages\ODBC\CqFRL\src\ODBC.jl:3
ERROR: Failed to precompile ODBC [be6f12e9-ca4f-5eb2-a339-a4f995cc0291] to C:\Users\MyName\.julia\compiled\v1.5\ODBC\ZHXi3_XVKWc.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1290
 [3] _require(::Base.PkgId) at .\loading.jl:1030
 [4] require(::Base.PkgId) at .\loading.jl:928
 [5] require(::Module, ::Symbol) at .\loading.jl:923
 [6] include_string(::Function, ::Module, ::String, ::String) at .\loading.jl:1088
@quinnj
Copy link
Member

quinnj commented Sep 1, 2020

Yes, a few people have run into this; it has something to do with using an old version of DecFP.jl, even though ODBC.jl requires a newer one. Usually this is fixed by doing ] up DecFP and making sure you're on a version 1.0+

@whubbla
Copy link
Author

whubbla commented Sep 1, 2020

@quinnj - Thanks! That appears to have worked. DecFP needed to upgrade (at the cost of downgrading SpecialFunctions). Now on to actually getting the db connection set up.

@quinnj quinnj closed this as completed Sep 1, 2020
@quinnj
Copy link
Member

quinnj commented Sep 1, 2020

Good luck! Let me know if you run into issues

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