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

Error, what wrong? #283

Open
programistawpf opened this issue Sep 3, 2017 · 1 comment
Open

Error, what wrong? #283

programistawpf opened this issue Sep 3, 2017 · 1 comment

Comments

@programistawpf
Copy link

programistawpf commented Sep 3, 2017

  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.0 (2017-06-19 13:05 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-w64-mingw32

julia> using HDF5, JLD

julia> using Winston
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:569
 [3] include(::String) at .\sysimg.jl:14
 [4] include_from_node1(::String) at .\loading.jl:569
 [5] eval(::Module, ::Any) at .\boot.jl:235
 [6] _require(::Symbol) at .\loading.jl:483
 [7] require(::Symbol) at .\loading.jl:398
 [8] include_from_node1(::String) at .\loading.jl:569
 [9] include(::String) at .\sysimg.jl:14
 [10] include_from_node1(::String) at .\loading.jl:569
 [11] eval(::Module, ::Any) at .\boot.jl:235
 [12] _require(::Symbol) at .\loading.jl:483
 [13] require(::Symbol) at .\loading.jl:398
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> plot(rand(10))
ERROR: UndefVarError: plot not defined

julia> plot(rand(10))
ERROR: UndefVarError: plot not defined

julia> using Winston

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

julia>
@programistawpf programistawpf changed the title Erroor, what wrong? Error, what wrong? Sep 3, 2017
@paulobuchsbaum
Copy link

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))

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

2 participants