[julia-users] Re: ambiguous +(...) definitions between Images and DataArrays

2014-09-23 Thread Jason Merrill
https://github.com/JuliaLang/julia/issues/6190

On Monday, September 22, 2014 10:46:25 PM UTC-7, Don MacMillen wrote:

 I am seeing ambiguous method definitions when using both the Images and 
 the DataArray packages.  I have already done Pkg.update() and 
 Pkg.build(Images) and Pkg.build(DataArrays).  Is there anything else 
 that I could have munged in the environment to trigger this?  More info 
 below (but not all of the ambiguous definitions are included here)

 Thanks,

 Don

 ubuntu@ubuntu:~$ julia
_
_   _ _(_)_ |  A fresh approach to technical computing
   (_) | (_) (_)|  Documentation: http://docs.julialang.org
_ _   _| |_  __ _   |  Type help() for help.
   | | | | | | |/ _` |  |
   | | |_| | | | (_| |  |  Version 0.4.0-dev+724 (2014-09-22 07:28 UTC)
  _/ |\__'_|_|_|\__'_|  |  Commit b012c1c (0 days old master)
 |__/   |  x86_64-linux-gnu

 julia using DataArrays

 julia using Images
 Warning: New definition 
 +(AbstractImageDirect{T,N},AbstractArray{T,N}) at 
 /home/ubuntu/.julia/v0.4/Images/src/algorithms.jl:17
 is ambiguous with: 
 +(AbstractArray{Bool,N},DataArray{Bool,N}) at 
 /home/ubuntu/.julia/v0.4/DataArrays/src/operators.jl:326.
 To fix, define 
 +(AbstractImageDirect{Bool,N},DataArray{Bool,N})
 before the new definition.



Re: [julia-users] Re: ambiguous +(...) definitions between Images and DataArrays

2014-09-23 Thread Don MacMillen
Thanks. (But I was hoping for something simple.)

Don
 On Sep 22, 2014 11:02 PM, Jason Merrill jwmerr...@gmail.com wrote:

 https://github.com/JuliaLang/julia/issues/6190

 On Monday, September 22, 2014 10:46:25 PM UTC-7, Don MacMillen wrote:

 I am seeing ambiguous method definitions when using both the Images and
 the DataArray packages.  I have already done Pkg.update() and
 Pkg.build(Images) and Pkg.build(DataArrays).  Is there anything else
 that I could have munged in the environment to trigger this?  More info
 below (but not all of the ambiguous definitions are included here)

 Thanks,

 Don

 ubuntu@ubuntu:~$ julia
_
_   _ _(_)_ |  A fresh approach to technical computing
   (_) | (_) (_)|  Documentation: http://docs.julialang.org
_ _   _| |_  __ _   |  Type help() for help.
   | | | | | | |/ _` |  |
   | | |_| | | | (_| |  |  Version 0.4.0-dev+724 (2014-09-22 07:28 UTC)
  _/ |\__'_|_|_|\__'_|  |  Commit b012c1c (0 days old master)
 |__/   |  x86_64-linux-gnu

 julia using DataArrays

 julia using Images
 Warning: New definition
 +(AbstractImageDirect{T,N},AbstractArray{T,N}) at
 /home/ubuntu/.julia/v0.4/Images/src/algorithms.jl:17
 is ambiguous with:
 +(AbstractArray{Bool,N},DataArray{Bool,N}) at
 /home/ubuntu/.julia/v0.4/DataArrays/src/operators.jl:326.
 To fix, define
 +(AbstractImageDirect{Bool,N},DataArray{Bool,N})
 before the new definition.




Re: [julia-users] Re: ambiguous +(...) definitions between Images and DataArrays

2014-09-23 Thread Tim Holy
Unfortunately, there isn't a simple fix. Someone just has to knuckle down and 
fix this in julia itself. Until then, tolerate the ambiguity warnings (if they 
aren't actually relevant for operations you want to perform), or work around 
then by writing glue code.

--Tim

On Tuesday, September 23, 2014 12:31:00 AM Don MacMillen wrote:
 Thanks. (But I was hoping for something simple.)
 
 Don
 
  On Sep 22, 2014 11:02 PM, Jason Merrill jwmerr...@gmail.com wrote:
  https://github.com/JuliaLang/julia/issues/6190
  
  On Monday, September 22, 2014 10:46:25 PM UTC-7, Don MacMillen wrote:
  I am seeing ambiguous method definitions when using both the Images and
  the DataArray packages.  I have already done Pkg.update() and
  Pkg.build(Images) and Pkg.build(DataArrays).  Is there anything else
  that I could have munged in the environment to trigger this?  More info
  below (but not all of the ambiguous definitions are included here)
  
  Thanks,
  
  Don
  
  ubuntu@ubuntu:~$ julia
  
 _
 
 _   _ _(_)_ |  A fresh approach to technical computing

(_) | (_) (_)|  Documentation: http://docs.julialang.org

 _ _   _| |_  __ _   |  Type help() for help.
 
| | | | | | |/ _` |  |
| | |
| | |_| | | | (_| |  |  Version 0.4.0-dev+724 (2014-09-22 07:28 UTC)
   
   _/ |\__'_|_|_|\__'_|  |  Commit b012c1c (0 days old master)
   
  |__/   |  x86_64-linux-gnu
  
  julia using DataArrays
  
  julia using Images
  Warning: New definition
  
  +(AbstractImageDirect{T,N},AbstractArray{T,N}) at
  
  /home/ubuntu/.julia/v0.4/Images/src/algorithms.jl:17
  
  is ambiguous with:
  +(AbstractArray{Bool,N},DataArray{Bool,N}) at
  
  /home/ubuntu/.julia/v0.4/DataArrays/src/operators.jl:326.
  To fix, define
  
  +(AbstractImageDirect{Bool,N},DataArray{Bool,N})
  
  before the new definition.