ERROR: invalid base 10 digit '.' in "101.1" ?

821 views
Skip to first unread message

Andreas Lobinger

unread,
Dec 22, 2013, 11:27:20 AM12/22/13
to julia...@googlegroups.com
Hello,

it might be, i'm trying something strange here, but ...

julia> using Cairo

julia> c2 = CairoRGBSurface(100,100)
CairoSurface(Ptr{Void} @0x0b4959c0,100.0,100.0,#undef)

julia> c1 = CairoContext(c2)
CairoContext(Ptr{Void} @0xb3305500,CairoSurface(Ptr{Void} @0x0b4959c0,100.0,100.0,#undef),Ptr{Void} @0x0c5bf840)

julia> move_to(c1,100,100)

julia> move_to(c1,100.5,100)
ERROR: invalid base 10 digit '.' in "100.5"

and yes, according to Cairo.jl the call seems to be:

     @eval begin
        $NAME(ctx::CairoContext, d0::Real, d1::Real) =
            ccall(($(Expr(:quote,FUNCTION)),_jl_libcairo),
                  Void, (Ptr{Void},Float64,Float64), ctx.ptr, d0, d1)
    end

so something with float.

Wishing a happy day,
     Andreas

Tim Holy

unread,
Dec 22, 2013, 1:04:24 PM12/22/13
to julia...@googlegroups.com
Works for me...

Elliot Saba

unread,
Dec 22, 2013, 3:53:20 PM12/22/13
to julia...@googlegroups.com
Try updating, we had some weird numeric parsing problems a few days ago, it's possible this is another symptom.  This is, of course, assuming that you are running `master` and not the 0.2 release.
-E

Andreas Lobinger

unread,
Dec 23, 2013, 2:27:35 AM12/23/13
to julia...@googlegroups.com


works for me also (after updating).

Andreas Lobinger

unread,
Dec 30, 2013, 10:14:51 AM12/30/13
to julia...@googlegroups.com
Does not work anymore (after updating):

               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" to list help topics
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.3.0-prerelease+741 (2013-12-30 07:22 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 941c6e3 (0 days old master)
|__/                   |  i686-linux-gnu

julia> using Gtk

julia> c = Gtk.Canvas(500,500);

julia> w = Gtk.Window(c,"a",500,500);

julia> c1 = c.backcc;

julia> move_to(c1,100.0,100.0)
ERROR: invalid base 10 digit '.' in "100.0"

julia>

Alfred Tarski

unread,
Dec 30, 2013, 6:30:55 PM12/30/13
to julia...@googlegroups.com
With the latest julia master (Version 0.3.0-prerelease+749 (2013-12-30 18:12 UTC)) I get a similar error: 

julia> using PyPlot
ERROR: invalid base 10 digit '.' in "0.5"
in reload_path at loading.jl:146
in _require at loading.jl:59
in require at loading.jl:46
in reload_path at loading.jl:146
in _require at loading.jl:59
in require at loading.jl:43
while loading /home/ms/.julia/Color/src/Color.jl, in expression starting on line 192
while loading /home/ms/.julia/PyPlot/src/colormaps.jl, in expression starting on line 4
while loading /home/ms/.julia/PyPlot/src/PyPlot.jl, in expression starting on line 244

I've been updating (git pull) and recompiling for the last 3 days and it always happens as above. 


Reply all
Reply to author
Forward
0 new messages