1

我正在尝试在 Julia 中测试 Winston 绘图引擎。我安装了该软件包,但现在当我尝试编译其中一个示例时遇到了一些错误:

> julia example1.jl
Warning: could not import Base.haskey into Inifile
Warning: could not import Graphics.set_source into Color
ERROR: no method haskey(Dict{String,Dict{String,String}},ASCIIString)
 in read at /Users/thinkpad20/.julia/IniFile/src/IniFile.jl:41
 in read at /Users/thinkpad20/.julia/IniFile/src/IniFile.jl:67
 in anonymous at /Users/thinkpad20/.julia/Winston/src/Winston.jl:39
 in include_from_node1 at loading.jl:88
 in reload_path at loading.jl:111
 in require at loading.jl:46
 in include_from_node1 at loading.jl:88
 in process_options at client.jl:253
 in _start at client.jl:334
at /Users/thinkpad20/.julia/Winston/src/Winston.jl:31
at /Users/thinkpad20/.julia/Winston/examples/example1.jl:3

谁能告诉我发生了什么事?似乎是找不到Base.haskey,但我不知道如何解决这个问题。

4

1 回答 1

1

尝试检查Base.VERSION

haskey在 Julia v0.2 中引入(在撰写本文时仍为预发布版本),我怀疑您运行的是 0.1.x 版本

真正的问题在于 Winston 包内部。听起来他们的要求信息设置错误。你应该在这里提出问题:https ://github.com/nolta/Winston.jl

您还可以在此处下载适用于 windows 和 mac 的 0.2 预发布版本:https ://code.google.com/p/julialang/downloads/list

于 2013-06-02T02:41:36.277 回答