模块不支持预编译,但由支持预编译的模块导入

Sch*_*tor 3 julia

我正在pmapJulia 中使用分布式数组来并行化代码。该命令@everywhere include("./code.jl")运行时会输出一长串警告信息,过程中会消耗相当长的时间。文件内的包code.jl例如:

\n\n
using DataFrames\nusing Images\n
Run Code Online (Sandbox Code Playgroud)\n\n

我不知道如何解决这个问题missing from the cache

\n\n

这是运行的线路

\n\n
@everywhere include("./code.jl")\n
Run Code Online (Sandbox Code Playgroud)\n\n

我没想到会收到一连串的抱怨。但是,所有工作人员的输出都与此类似:

\n\n
From worker 2:  \xe2\x94\x82 This may mean CategoricalArrays [324d7699-5711-5eae-9e2f-1d82baa6b597] does not support precompilation but is imported by a module that does.\n      From worker 2:    \xe2\x94\x94 @ Base loading.jl:947\n      From worker 6:    \xe2\x94\x8c Warning: Module CategoricalArrays with build ID 5344443537363826 is missing from the cache.\nFrom worker 4:  \xe2\x94\x8c Warning: Module DataFrames with build ID 5344463834994296 is missing from the cache.\n      From worker 4:    \xe2\x94\x82 This may mean DataFrames [a93c6f00-e57d-5684-b7b6-d8193f3e46c0] does not support precompilation but is imported by a module that does.\n      From worker 4:    \xe2\x94\x94 @ Base loading.jl:947\n      From worker 2:    \xe2\x94\x8c Warning: Module DataFrames with build ID 5344464953933087 is missing from the cache.\n      From worker 2:    \xe2\x94\x82 This may mean DataFrames [a93c6f00-e57d-5684-b7b6-d8193f3e46c0] does not support precompilation but is imported by a module that does.\n
Run Code Online (Sandbox Code Playgroud)\n

tho*_*oly 6

您可能有一个需要重新编译的包,并且您遇到了竞争条件,其中所有工作人员都决定他们需要独立地重新编译它。尝试启动单个 Julia 会话并键入]precompile]用于进入 pkg 模式)。一旦完成,为了安全起见,您可以尝试using DataFrames确保它有效。然后尝试上面的代码。