Presumably that branch needs to make use of Compat.

--Tim

On Wednesday, March 18, 2015 08:26:24 AM J Luis wrote:
> Sorry, doing to many things at same time and didn't realize that the
> "Graphics not defined " was an easy to fix issue. But now I'm getting
> different ones that I wont be able to fix. Besides many warning of the type
> 
> Warning: New definition
>     trunc(Type{T<:Integer},AbstractArray{G<:Images.ColorTypes.Gray{T<:Union(
> Fixe  dPointNumbers.FixedPoint,FloatingPoint)},N}) at C:\j\.julia\v0.4\
> Images\src\colo   rtypes.jl:249
> is ambiguous with:
>     trunc(Type{T},LastMain.LastMain.Base.SparseMatrix.SparseMatrixCSC{Tv,Ti
> }) at    sparse/sparsematrix.jl:498.
> To fix, define
>     trunc(Type{T<:Integer},LastMain.LastMain.Base.SparseMatrix.
> SparseMatrixCSC{_   <:Images.ColorTypes.Gray{T<:Union(FixedPointNumbers.
> FixedPoint,FloatingPoint)},T   i})
> before the new definition.
> 
> I get also an undefined var error
> 
> 8ERROR: LoadError: LoadError: UndefVarError: R not defined
> 
> 
> that occurs in annotations.jl about line 24 (my lines numbering is now
> different due to previous patches)
> 
> type AnnotationPoints{R<:Union(Real,(Real,Real)),T<:Union(R,Vector{R},Matrix
> {R})}
> 
> quarta-feira, 18 de Março de 2015 às 12:02:11 UTC, Tim Holy escreveu:
> > If you want to try to fix this, I recommend some reading:
> > http://docs.julialang.org/en/latest/manual/modules/
> > 
> > and start tweaking the source code at places corresponding to those error
> > messages.
> > 
> > Best,
> > --Tim
> > 
> > On Tuesday, March 17, 2015 03:42:27 PM J Luis wrote:
> > > Unfortunately none of those make a difference. e.g
> > > 
> > > julia> Pkg.add("Graphics")
> > > INFO: Nothing to be done
> > > 
> > > julia> using ImageView
> > > ERROR: LoadError: UndefVarError: Graphics not defined
> > > 
> > >  in include at boot.jl:250
> > >  in include_from_node1 at loading.jl:129
> > >  in reload_path at loading.jl:153
> > >  in _require at loading.jl:68
> > >  in require at loading.jl:51
> > > 
> > > while loading C:\j\.julia\v0.4\ImageView\src\ImageView.jl, in expression
> > > starting on line 3
> > > 
> > > terça-feira, 17 de Março de 2015 às 02:37:34 UTC, Tim Holy escreveu:
> > > > Now say Pkg.build("ImageView"). It should now install Graphics.jl for
> > 
> > you.
> > 
> > > > If
> > > > it doesn't, just say Pkg.add("Graphics"). (But adding it to the
> > 
> > REQUIRE
> > 
> > > > means
> > > > you will have fixed it for other users, too.)
> > > > 
> > > > --Tim
> > > > 
> > > > On Monday, March 16, 2015 12:00:32 PM J Luis wrote:
> > > > > I am sorry but I'm getting nowhere.
> > > > > - So I added
> > > > > 
> > > > > Graphics 0.1
> > > > > 
> > > > > to v0.4\ImageView\REQUIRE and similar in
> > 
> > v0.4\ImageView\src\ImageView.jl
> > 
> > > > to
> > > > 
> > > > > the commit you pointed above, but still
> > > > > 
> > > > > julia> using ImageView
> > > > > ERROR: LoadError: UndefVarError: Graphics not defined
> > > > > 
> > > > >  in include at boot.jl:250
> > > > >  in include_from_node1 at loading.jl:129
> > > > >  in reload_path at loading.jl:153
> > > > >  in _require at loading.jl:68
> > > > >  in require at loading.jl:51
> > > > > 
> > > > > while loading C:\j\.julia\v0.4\ImageView\src\ImageView.jl, in
> > 
> > expression
> > 
> > > > > starting on line 3
> > > > > 
> > > > > 
> > > > > 
> > > > > and
> > > > > 
> > > > > julia> Pkg.add("Graphics")
> > > > > INFO: Nothing to be done
> > > > > 
> > > > > segunda-feira, 16 de Março de 2015 às 00:22:50 UTC, Tim Holy
> > 
> > escreveu:
> > > > > > You likely have to do the same thing to Gtk as in
> > 
> > https://github.com/timholy/Images.jl/commit/68126750d07dec407ed0dbbd8ba01b
> > 
> > > > > > e28ce176d1
> > > > > > 
> > > > > > --Tim
> > > > > > 
> > > > > > On Sunday, March 15, 2015 10:32:32 AM J Luis wrote:
> > > > > > > and bad luck with Gtk too
> > > > > > > 
> > > > > > > julia> Img = imread(
> > 
> > "C://progs_cygw//GMTdev//gmt5//branches//5.2.0//test//grdimage//gdal//need
> > 
> > > > > > le>
> > > > > > 
> > > > > > > .jpg" );
> > > > > > > 
> > > > > > > julia> view(Img)
> > > > > > > (ImageCanvas,ImageSlice2d: zoom =
> > 
> > BoundingBox(0.0,430.0,0.0,300.0))
> > 
> > > > > > > julia> ERROR: `width` has no method matching width(::GtkCanvas)
> > > > > > > 
> > > > > > >  in setbb! at C:\j\.julia\v0.3\ImageView\src\display.jl:80
> > > > > > >  in resize at C:\j\.julia\v0.3\ImageView\src\display.jl:582
> > > > > > >  in anonymous at C:\j\.julia\v0.3\ImageView\src\display.jl:420
> > > > > > >  in draw at C:\j\.julia\v0.3\Gtk\src\cairo.jl:72
> > > > > > >  in notify_resize at C:\j\.julia\v0.3\Gtk\src\cairo.jl:52
> > > > > > > 
> > > > > > > domingo, 15 de Março de 2015 às 16:03:00 UTC, J Luis escreveu:
> > > > > > > > Bear with me that I'm still very rough with the packaging
> > 
> > system
> > 
> > > > but
> > > > 
> > > > > > the
> > > > > > 
> > > > > > > > fact that I see in my .julia/v0.4/Gtk/REQUIRE
> > > > > > > > 
> > > > > > > > Cairo 0.2.2
> > > > > > > > julia 0.2-
> > > > > > > > Graphics 0.1
> > > > > > > > BinDeps
> > > > > > > > @windows WinRPM
> > > > > > > > @osx Homebrew
> > > > > > > > 
> > > > > > > > does not mean that the Graphics dependency is already there?
> > > > > > > > 
> > > > > > > > domingo, 15 de Março de 2015 às 14:26:46 UTC, Tim Holy
> > 
> > escreveu:
> > > > > > > >> Can you add Graphics to the REQUIRE file and submit a pull
> > > > 
> > > > request
> > > > 
> > > > > > > >> against the
> > > > > > > >> gtk branch?
> > > > > > > >> 
> > > > > > > >> --Tim
> > > > > > > >> 
> > > > > > > >> On Sunday, March 15, 2015 07:13:02 AM J Luis wrote:
> > > > > > > >> > Thanks. On v0.3.4 it seams to work (I mean no errors on
> > 
> > "using
> > 
> > > > > > > >> ImageView")
> > > > > > > >> 
> > > > > > > >> > but on 0.4
> > > > > > > >> > 
> > > > > > > >> > julia> Pkg.checkout("ImageView", "gtk")
> > > > > > > >> > INFO: Checking out ImageView gtk...
> > > > > > > >> > INFO: Pulling ImageView latest gtk...
> > > > > > > >> > INFO: No packages to install, update or remove
> > > > > > > >> > 
> > > > > > > >> > julia> using ImageView
> > > > > > > >> > ERROR: LoadError: UndefVarError: Graphics not defined
> > > > > > > >> > while loading C:\j\.julia\v0.4\ImageView\src\ImageView.jl,
> > 
> > in
> > 
> > > > > > > >> expression
> > > > > > > >> 
> > > > > > > >> > starting on line 3
> > > > > > > >> > 
> > > > > > > >> > domingo, 15 de Março de 2015 às 13:27:23 UTC, Tim Holy
> > > > 
> > > > escreveu:
> > > > > > > >> > > Pkg.checkout("ImageView", "gtk")
> > > > > > > >> > > 
> > > > > > > >> > > But I haven't updated that branch in a long time---it's
> > 
> > being
> > 
> > > > > > held up
> > > > > > 
> > > > > > > >> > > because
> > > > > > > >> > > I have an ambitious revamping plan for ImageView, and I
> > 
> > just
> > 
> > > > > > haven't
> > > > > > 
> > > > > > > >> > > cleared
> > > > > > > >> > > the two weeks it will take to implement it. So you may
> > 
> > need
> > 
> > > > to be
> > > > 
> > > > > > > >> prepared
> > > > > > > >> 
> > > > > > > >> > > to
> > > > > > > >> > > fix up that gtk branch. Pull requests welcome :-).
> > > > > > > >> > > 
> > > > > > > >> > > --Tim
> > > > > > > >> > > 
> > > > > > > >> > > On Sunday, March 15, 2015 05:57:35 AM J Luis wrote:
> > > > > > > >> > > > Hi,
> > > > > > > >> > > > 
> > > > > > > >> > > > I can't use ImageView because of issue #67
> > > > > > > >> > > > <https://github.com/JuliaLang/Tk.jl/issues/67> (the
> > 
> > "Can't
> > 
> > > > > > find
> > > > > > 
> > > > > > > >> usable
> > > > > > > >> 
> > > > > > > >> > > > init.tcl"). But should this problem be avoidable by
> > 
> > using a
> > 
> > > > GTK
> > > > 
> > > > > > > >> > > ImageView?
> > > > > > > >> > > 
> > > > > > > >> > > > And if yes, how to make ImageView use the GTK render?

Reply via email to