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 error when Using TensorFlow #276

Closed
mbeltagy opened this issue Jul 11, 2017 · 2 comments
Closed

Precompile error when Using TensorFlow #276

mbeltagy opened this issue Jul 11, 2017 · 2 comments

Comments

@mbeltagy
Copy link

After successfully building the package, I get the following

julia> using TensorFlow
INFO: Recompiling stale cache file /home/user/.julia/lib/v0.6/TensorFlow.ji for module TensorFlow.
WARNING: Loading a new version of TensorFlow.jl for the first time. This initial load can take around 5 minutes as code is precompiled; subsequent usage will only take a few seconds.
WARNING: Base.FloatRange is deprecated, use Base.Use_StepRangeLen_Instead{T} where T<:AbstractFloat instead.
  likely near /home/user/.julia/TensorFlow/src/ops/indexing.jl:102
WARNING: The call to compilecache failed to create a usable precompiled cache file for module TensorFlow. Got:
WARNING: Module FFTW uuid did not match cache file.
ERROR: LoadError: Declaring __precompile__(true) is only allowed in module files being imported.
Stacktrace:
 [1] __precompile__(::Bool) at ./loading.jl:335
 [2] include_from_node1(::String) at ./loading.jl:569
 [3] eval(::Module, ::Any) at ./boot.jl:235
 [4] _require(::Symbol) at ./loading.jl:483
 [5] require(::Symbol) at ./loading.jl:398
while loading /home/user/.julia/TensorFlow/src/TensorFlow.jl, in expression starting on line 1

I am using 0.6.1-pre.0

@mbeltagy
Copy link
Author

mbeltagy commented Jul 11, 2017

I got it to work by

julia> using FFTW
WARNING: imported binding for FFTW overwritten in module Main

julia> using TensorFlow
INFO: Recompiling stale cache file /home/elbeltagy/.julia/lib/v0.6/TensorFlow.ji for module TensorFlow.
WARNING: Loading a new version of TensorFlow.jl for the first time. This initial load can take around 5 minutes as code is precompiled; subsequent usage will only take a few seconds.
WARNING: Base.FloatRange is deprecated, use Base.Use_StepRangeLen_Instead{T} where T<:AbstractFloat instead.
  likely near /home/elbeltagy/.julia/TensorFlow/src/ops/indexing.jl:102

This is a JuliaLang issue. Currently being discussed at JuliaLang/julia#21969

@malmaud
Copy link
Owner

malmaud commented Jul 11, 2017

Yep, it's annoying and is biting me constantly now. I'm going to close this issue though since it's not actionable on our part for now.

@malmaud malmaud closed this as completed Jul 11, 2017
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