Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Juliaのバージョン違いによるエラー #24

Open
gs55 opened this issue Apr 27, 2019 · 0 comments
Open

Juliaのバージョン違いによるエラー #24

gs55 opened this issue Apr 27, 2019 · 0 comments

Comments

@gs55
Copy link

gs55 commented Apr 27, 2019

こちらで公開しているJuliaのver0.6のcodeをver1.0以降でも動くようにしたいと考えています。Juliaの変更点を把握するのに下記のJuliaのコミュニティーにver0.7で実行して、warningからバージョンによる違いを把握するのが良いと記載されていたため、ver0.7で実行をしました。

しかし、

julia>  using demo_GaussianMixtureModel

を行うと下記のような KeyErrorが生じます。

ERROR: LoadError: KeyError: key "o" not found
Stacktrace:
 [1] getproperty(::PyCall.PyObject, ::String) at /home/.julia/packages/PyCall/ttONZ/src/PyCall.jl:308
 [2] getproperty at /home/.julia/packages/PyCall/ttONZ/src/PyCall.jl:313 [inlined]
 [3] getproperty at /home/.julia/packages/PyPlot/cdCMF/src/colormaps.jl:25 [inlined]
 [4] (::getfield(Base.__toplevel__, Symbol("##1#3")){PyPlot.ColorMap})(::Float64) at ./none:0
 [5] iterate at ./generator.jl:47 [inlined]
 [6] collect(::Base.Generator{StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},getfield(Base.__toplevel__, Symbol("##1#3")){PyPlot.ColorMap}}) at ./array.jl:619
 [7] visualize_2D(::Array{Float64,2}, ::Array{Float64,2}, ::Array{Float64,2}, ::String) at /home/BayesBook/src/demo_GaussianMixtureModel.jl:17
 [8] test_2D() at /home/BayesBook/src/demo_GaussianMixtureModel.jl:65
 [9] top-level scope at none:0
 [10] include at ./boot.jl:317 [inlined]
 [11] include_relative(::Module, ::String) at ./loading.jl:1038
 [12] include(::Module, ::String) at ./sysimg.jl:29
 [13] top-level scope at none:2
 [14] eval at ./boot.jl:319 [inlined]
 [15] eval(::Expr) at ./client.jl:399
 [16] top-level scope at ./none:3

また

julia> using demo_PoissonMixtureModel

を行っても下記のような KeyErrorが生じます。

ERROR: KeyError: key demo_PoissonMixtureModel [top-level] not found
Stacktrace:
 [1] getindex at ./dict.jl:478 [inlined]
 [2] root_module at ./loading.jl:892 [inlined]
 [3] require(::Base.PkgId) at ./loading.jl:858
 [4] macro expansion at ./logging.jl:311 [inlined]
 [5] require(::Module, ::Symbol) at ./loading.jl:834

KeyErrorの原因と解決策を教えていただけないでしょうか。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant