JuliaGraphics / Winston.jl

2D plotting for Julia
MIT License
171 stars 55 forks source link

ERROR: LoadError: LoadError: LoadError: LoadError: UndefVarError: print_escaped not defined #290

Open programistawpf opened 6 years ago

programistawpf commented 6 years ago

New, clear instaling of Julia, Instalesd was only WINSTON via Pkg.add.. julia> using Winston INFO: Precompiling module Cairo. INFO: Precompiling module IniFile. INFO: Precompiling module StatsBase. ERROR: LoadError: LoadError: LoadError: LoadError: UndefVarError: print_escaped not defined Stacktrace: [1] init() at C:\Users\PC.julia\v0.6\Tk\src\tkwidget.jl:49 [2] include_from_node1(::String) at .\loading.jl:576 [3] include(::String) at .\sysimg.jl:14 [4] include_from_node1(::String) at .\loading.jl:576 [5] eval(::Module, ::Any) at .\boot.jl:235 [6] _require(::Symbol) at .\loading.jl:490 [7] require(::Symbol) at .\loading.jl:405 [8] include_from_node1(::String) at .\loading.jl:576 [9] include(::String) at .\sysimg.jl:14 [10] include_from_node1(::String) at .\loading.jl:576 [11] eval(::Module, ::Any) at .\boot.jl:235 [12] _require(::Symbol) at .\loading.jl:490 [13] require(::Symbol) at .\loading.jl:405 while loading C:\Users\PC.julia\v0.6\Tk\src\tkwidget.jl, in expression starting on line 457 while loading C:\Users\PC.julia\v0.6\Tk\src\Tk.jl, in expression starting on line 37 while loading C:\Users\PC.julia\v0.6\Winston\src\tk.jl, in expression starting on line 1 while loading C:\Users\PC.julia\v0.6\Winston\src\Winston.jl, in expression starting on line 2814

julia> versioninfo() Julia Version 0.6.2 Commit d386e40c17* (2017-12-13 18:08 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NOAFFINITY Sandybridge) LAPACK: libopenblas64 LIBM: libopenlibm LLVM: libLLVM-3.9.1 (ORCJIT, sandybridge)

programistawpf commented 6 years ago

julia> Pkg.build("Winston") INFO: Building SpecialFunctions INFO: Building WinRPM INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_L eap_42.2/repodata/repomd.xml INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_L eap_42.2/repodata/repomd.xml INFO: Building Cairo INFO: Updating WinRPM package list INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_L eap_42.2/repodata/repomd.xml INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_L eap_42.2/repodata/repomd.xml INFO: Building Tk INFO: Updating WinRPM package list INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_L eap_42.2/repodata/repomd.xml INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_L eap_42.2/repodata/repomd.xml

julia> using Winston

julia> plot(6) ERROR: expected array or function for argument #1; got Int64 Stacktrace: [1] #plot#121(::Array{Any,1}, ::Function, ::Winston.FramedPlot, ::Int64, ::Vararg{Int64,N} where N) at C:\Users\PC.jul ia\v0.6\Winston\src\plot.jl:169 [2] plot(::Winston.FramedPlot, ::Int64) at C:\Users\PC.julia\v0.6\Winston\src\plot.jl:115 [3] #plot#132(::Array{Any,1}, ::Function, ::Int64, ::Vararg{Int64,N} where N) at C:\Users\PC.julia\v0.6\Winston\src\pl ot.jl:240 [4] plot(::Int64) at C:\Users\PC.julia\v0.6\Winston\src\plot.jl:240

programistawpf commented 6 years ago

julia> using WinRPM

julia> WinRPM.update() INFO: Downloading https://cache.julialang.org/http://download.op eap_42.2/repodata/repomd.xml INFO: Downloading https://cache.julialang.org/http://download.op eap_42.2/repodata/repomd.xml

julia> Pkg.build("Winston") INFO: Building SpecialFunctions INFO: Building WinRPM INFO: Downloading https://cache.julialang.org/http://download.op eap_42.2/repodata/repomd.xml INFO: Downloading https://cache.julialang.org/http://download.op eap_42.2/repodata/repomd.xml INFO: Building Cairo INFO: Updating WinRPM package list INFO: Downloading https://cache.julialang.org/http://download.op eap_42.2/repodata/repomd.xml INFO: Downloading https://cache.julialang.org/http://download.op eap_42.2/repodata/repomd.xml INFO: Building Tk INFO: Updating WinRPM package list INFO: Downloading https://cache.julialang.org/http://download.op eap_42.2/repodata/repomd.xml INFO: Downloading https://cache.julialang.org/http://download.op eap_42.2/repodata/repomd.xml

julia> using Winston

julia> plot(rand(10)) Winston.FramedPlot(...)

Unfortunatly any plots.... any new window Paul

paulobuchsbaum commented 6 years ago

My computer run Windows. I did the following:

In c:\Users\...\.julia\v0.6\Tk\src there is a source tkwidget.jl written in Julia. There do the follow replacements.

1) Replace print_escaped (depreciated) by escape_string. 2) Replace takebuf_string(b) (depreciated) by String(take!(b)) where b is any parameter.

After that Winston works like a charm.

Example:

using Winston
plot(rand(100))