我在Julia 1.3.1中添加了Mathematica软件包(https://github.com/JuliaInterop/Mathematica.jl)。
现在,如果我使用命令...
using Mathematica
我收到此错误:
[ Info: Precompiling Mathematica [32681abc-2ee8-5d23-a06a-fe3af83833d6]
┌ Warning: Package Mathematica does not have MathLink in its dependencies:
│ - If you have Mathematica checked out for development and have
│ added MathLink as a dependency but haven't updated your primary
│ environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with Mathematica
└ Loading MathLink into Mathematica from project dependency, future warnings for Mathematica are suppressed.
ERROR: LoadError: LoadError: UndefVarError: @mmimport not defined
Stacktrace:
[1] top-level scope
[2] eval at ./boot.jl:330 [inlined]
[3] top-level scope at /Users/murray/.julia/packages/Mathematica/W4UIg/src/Mathematica.jl:36
[4] include at ./boot.jl:328 [inlined]
[5] include_relative(::Module, ::String) at ./loading.jl:1105
[6] include(::Module, ::String) at ./Base.jl:31
[7] top-level scope at none:2
[8] eval at ./boot.jl:330 [inlined]
[9] eval(::Expr) at ./client.jl:425
[10] top-level scope at ./none:3
in expression starting at /Users/murray/.julia/packages/Mathematica/W4UIg/src/Mathematica.jl:36
in expression starting at /Users/murray/.julia/packages/Mathematica/W4UIg/src/Mathematica.jl:34
ERROR: Failed to precompile Mathematica [32681abc-2ee8-5d23-a06a-fe3af83833d6] to /Users/murray/.julia/compiled/v1.3/Mathematica/cqgUM_XJ2Lx.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1283
[3] _require(::Base.PkgId) at ./loading.jl:1024
[4] require(::Base.PkgId) at ./loading.jl:922
[5] require(::Module, ::Symbol) at ./loading.jl:917
我该如何纠正?
答案 0 :(得分:2)
根据克里斯的评论,建议是使用MathLink.jl。我与Mathematica的软件包维护者进行了交谈,并向自述文件添加了弃用警告,以避免将来出现问题。