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 issue #18

Closed
rsrock opened this issue Apr 25, 2017 · 5 comments · Fixed by JuliaArrays/AxisArrays.jl#82
Closed

Precompile issue #18

rsrock opened this issue Apr 25, 2017 · 5 comments · Fixed by JuliaArrays/AxisArrays.jl#82

Comments

@rsrock
Copy link

rsrock commented Apr 25, 2017

On Julia 0.6-pre.beta.325, I'm having issues using Images. I've traced it down to here. After nuking the precompile .julia/lib/v0.6 dir, I hit the following:


julia> using Iterators
INFO: Precompiling module Iterators.

julia> using AxisArrays
INFO: Precompiling module AxisArrays.

julia> using ImageAxes
INFO: Precompiling module ImageAxes.
WARNING: Module AxisArrays with uuid 366725446310407 is missing from the cache.
This may mean module AxisArrays does not support precompilation but is imported by a module that does.
ERROR: LoadError: Declaring __precompile__(false) is not allowed in files that are being precompiled.
Stacktrace:
 [1] require(::Symbol) at ./loading.jl:423
 [2] include_from_node1(::String) at ./loading.jl:539
 [3] include(::String) at ./sysimg.jl:14
 [4] anonymous at ./<missing>:2
while loading /Users/rrock/.julia/v0.6/ImageAxes/src/ImageAxes.jl, in expression starting on line 8
ERROR: Failed to precompile ImageAxes to /Users/rrock/.julia/lib/v0.6/ImageAxes.ji.
Stacktrace:
 [1] compilecache(::String) at ./loading.jl:673
 [2] require(::Symbol) at ./loading.jl:460

Any ideas? None of these packages have __precompile__(false) set.

@SimonDanisch
Copy link
Member

Yeah this is a known issue which got worse with the newest julia master... There is now Base.Iterators which messes with precompiling Iterators.jl... Maybe the only solution is to rename the package :-O

@timholy
Copy link
Member

timholy commented Apr 25, 2017

Does this even need Iterators (of any form)?

@SimonDanisch
Copy link
Member

I also fixed it by removing iterators for my packages :D

@rsrock
Copy link
Author

rsrock commented Apr 25, 2017

Should I file an issue with AxisArrays?

mbauman pushed a commit to JuliaArrays/AxisArrays.jl that referenced this issue May 8, 2017
* Remote Iterators frrom REQUIRES

No longer needed, and it fixes JuliaImages/ImageAxes.jl#18.

* Update AxisArrays.jl

* Completely remove Iterators
@timholy
Copy link
Member

timholy commented May 9, 2017

Thanks for the fix, @mbauman!

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

Successfully merging a pull request may close this issue.

3 participants