Julia中的软件包安装

时间:2019-08-08 21:53:44

标签: package julia

我尝试在Julia中使用(强烈推荐) Eirine 软件包。添加它似乎可以正常工作,但是using Eirine如下所示炸开了我的脸。就像Eirine文档中一样,这种情况在Windows和Linux以及Julia版本1.1上都会发生。任何建议都将受到欢迎。

julia> using Eirene
[ Info: Precompiling Eirene [9c0f25c4-2ca1-5870-89f6-52640788da1d]
┌ Warning: Package Eirene does not have Pkg in its dependencies:
│ - If you have Eirene checked out for development and have
│   added Pkg 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 Eirene
└ Loading Pkg into Eirene from project dependency, future warnings for 
Eirene ar                    e suppressed.
ERROR: LoadError: LoadError: KeyError: key "Plotly" not found
Stacktrace:
 [1] getindex(::Dict{String,Union{Nothing, VersionNumber}}, ::String) at 
./dict.                    jl:478
 [2] top-level scope at none:0
 [3] include at ./boot.jl:326 [inlined]
 [4] include_relative(::Module, ::String) at ./loading.jl:1038
 [5] include at ./sysimg.jl:29 [inlined]
 [6] include(::String) at 
 /home/rivin/.julia/packages/Plotly/C5oqo/src/Plotly.jl                    
:1
 [7] top-level scope at none:0
 [8] include at ./boot.jl:326 [inlined]
 [9] include_relative(::Module, ::String) at ./loading.jl:1038
 [10] include(::Module, ::String) at ./sysimg.jl:29
 [11] top-level scope at none:2
 [12] eval at ./boot.jl:328 [inlined]
 [13] eval(::Expr) at ./client.jl:404
 [14] top-level scope at ./none:3
 in expression starting at 
/home/rivin/.julia/packages/Plotly/C5oqo/src/v2.jl:6
in expression starting at 
/home/rivin/.julia/packages/Plotly/C5oqo/src/Plotly.jl                    
:19
ERROR: LoadError: Failed to precompile Plotly [58dd65bb-95f3-509e-9936- 
c39a10fde                    ae7] to 
/home/rivin/.julia/compiled/v1.1/Plotly/M5iCk.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
 [3] _require(::Base.PkgId) at ./loading.jl:960
 [4] require(::Base.PkgId) at ./loading.jl:858
 [5] require(::Module, ::Symbol) at ./loading.jl:853
 [6] include at ./boot.jl:326 [inlined]
 [7] include_relative(::Module, ::String) at ./loading.jl:1038
 [8] include(::Module, ::String) at ./sysimg.jl:29
 [9] top-level scope at none:2
 [10] eval at ./boot.jl:328 [inlined]
 [11] eval(::Expr) at ./client.jl:404
 [12] top-level scope at ./none:3
 in expression starting at 
 /home/rivin/.julia/packages/Eirene/QIFsh/src/Eirene.jl                    
 :42
 ERROR: Failed to precompile Eirene [9c0f25c4-2ca1-5870-89f6-52640788da1d] to 
 /ho                    me/rivin/.julia/compiled/v1.1/Eirene/mCiG1.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
 [3] _require(::Base.PkgId) at ./loading.jl:960
 [4] require(::Base.PkgId) at ./loading.jl:858
 [5] require(::Module, ::Symbol) at ./loading.jl:853

julia>

1 个答案:

答案 0 :(得分:2)

由于某种原因,似乎plotly依赖于此[error] TypeError: Object prototype may only be an Object or null: undefined at setPrototypeOf (<anonymous>) at Object.__extends (C:\Users\leahb\Desktop\NH\NH-Senior-Project\node_modules\tslib\tslib.js:65:9) at C:\Users\leahb\Desktop\NH\NH-Senior-Project\node_modules\@angular\compiler-cli\src\ngtsc\indexer\src\template.js:115:17 tslib.js at line 65 (function (exporter) { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; __extends = function (d, b) { extendStatics(d, b); *//saying the error is coming from here* function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; 未正确安装。手动安装应该可以修复它。

相关问题