You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran into this problem about two weeks ago, and it still persists with newest Julia nightly and Pkg.update(). (Gadfly plots are working..)
Is there anyone else who can confirm this?
Here the code:
using PyPlot
x =linspace(0,2*pi,1000)
y =sin(3*x +4*cos(2*x));
plot(x, y, color="red", linewidth=2.0, linestyle="--")
I just ran into this myself. On my laptop (where I had been having other package problems), I got rid of it by deleting the ~/.julia directory and re-installing the packages, but now I ran into it on my other machine too; I'm not sure what is going on yet.
It seems to come from JuliaPy/PyCall.jl@183c915 ... reverting this patch fixes the problem (on Python 2). I think that the problem is that on Python 2 it is trying to convert binary data to a UTF-8 string and getting confused by the encoding. I need to figure out the correct conversion here.
Activity
stevengj commentedon Mar 2, 2015
I just ran into this myself. On my laptop (where I had been having other package problems), I got rid of it by deleting the
~/.juliadirectory and re-installing the packages, but now I ran into it on my other machine too; I'm not sure what is going on yet.I am on a Mac; is that the case for you too?
axsk commentedon Mar 2, 2015
I am using 32bit-Julia on Windows8.
Maybe #119 is connected to this problem, as both involve IJulia.
stevengj commentedon Mar 2, 2015
The error seems related to PNG (binary image) output, as SVG (ascii data) output works (do
PyPlot.svg(true))stevengj commentedon Mar 2, 2015
It seems to come from JuliaPy/PyCall.jl@183c915 ... reverting this patch fixes the problem (on Python 2). I think that the problem is that on Python 2 it is trying to convert binary data to a UTF-8 string and getting confused by the encoding. I need to figure out the correct conversion here.
stevengj commentedon Mar 3, 2015
Should be fixed by the latest PyCall version.
axsk commentedon Mar 25, 2015
Although late, thank you!
It's working :)