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

'print_escaped' not defined. #140

Closed
joa-quim opened this issue Nov 6, 2017 · 5 comments
Closed

'print_escaped' not defined. #140

joa-quim opened this issue Nov 6, 2017 · 5 comments

Comments

@joa-quim
Copy link

joa-quim commented Nov 6, 2017

julia> using Tk
INFO: Recompiling stale cache file c:\j\.julia\lib\v0.6\Cairo.ji for module Cairo.
ERROR: LoadError: LoadError: UndefVarError: print_escaped not defined
Stacktrace:
 [1] init() at c:\j\.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
while loading c:\j\.julia\v0.6\Tk\src\tkwidget.jl, in expression starting on line 457
while loading c:\j\.julia\v0.6\Tk\src\Tk.jl, in expression starting on line 37
@ararslan
Copy link
Contributor

Looks like it was deprecated in JuliaLang/julia#16603 (0.5.0-dev+4354) in favor of escape_string. Since this package requires 0.5 at a minimum, it should be safe to just replace print_escaped with escape_string.

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

@rafaqz
Copy link

rafaqz commented Jun 15, 2018

@paulobuchsbaum how about a pull request fixing that? we just had the same problem

@rafaqz
Copy link

rafaqz commented Jun 15, 2018

Seems there already are 2 pull requests for this

#139

@aviks
Copy link
Collaborator

aviks commented Feb 5, 2020

Fixed by #147

@aviks aviks closed this as completed Feb 5, 2020
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

5 participants