JuliaPy / JuliaPy/PyCall.jl

precompile issue

Aperta
#568 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Julia
Stelle
1.5k
Fork
186
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When I run
``` _
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.2 (2017-12-13 18:08 UTC)
_/ |\__'_|_|_|\__'_| | Official http://julialang.org/ release
|__/ | x86_64-pc-linux-gnu

julia> using RobotOS

julia> Base.compilecache("RobotOS")
```
I Get
```
INFO: Recompiling stale cache file /home/mavs/.julia/lib/v0.6/RobotOS.ji for module RobotOS.
WARNING: Module PyCall with uuid 1033896533165 is missing from the cache.
This may mean module PyCall 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:455
[2] require(::Symbol) at ./loading.jl:405
[3] include_from_node1(::String) at ./loading.jl:576
[4] include(::String) at ./sysimg.jl:14
[5] anonymous at ./:2
while loading /home/mavs/.julia/v0.6/RobotOS/src/RobotOS.jl, in expression starting on line 5
ERROR: Failed to precompile RobotOS to /home/mavs/.julia/lib/v0.6/RobotOS.ji.
Stacktrace:
[1] compilecache(::String) at ./loading.jl:710
```

But if I remove the cache, the error goes away:
```
mavs@febbo-HP-ZBook-17-G2:~$ rm -rf /home/mavs/.julia/.cache
mavs@febbo-HP-ZBook-17-G2:~$ julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.2 (2017-12-13 18:08 UTC)
_/ |\__'_|_|_|\__'_| | Official http://julialang.org/ release
|__/ | x86_64-pc-linux-gnu

julia> Base.compilecache("RobotOS")
INFO: Precompiling module RobotOS.
"/home/mavs/.julia/lib/v0.6/RobotOS.ji"
```

Any thoughts? I would like to avoid having to remove the cache all of the time. It is troublesome for users.

Thanks!

P.S. I have been dealing with this issue for some time. Here are some related issues
https://github.com/jdlangs/RobotOS.jl/issues/45
https://github.com/JuliaMPC/MAVs/issues/28

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.