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

Warnings produced when importing SortPerf.jl #1

Open
illerucis opened this issue Dec 17, 2013 · 5 comments
Open

Warnings produced when importing SortPerf.jl #1

illerucis opened this issue Dec 17, 2013 · 5 comments

Comments

@illerucis
Copy link

I get the following warnings when requiring SortPerf.jl. For example,

require("SortPerf.jl")

SortPerf.std_sort_tests(;sort_algs=[QuickSort, OldQuickSort],
                        types=[Int, Float32, Float64],
                        range=6:19,
                        replicates=10,
                        save=true)

produces the following before the benchmarking begins

Warning: New definition 
    getindex(DataArray{T,N},Union(Array{T,1},Ranges{T})) at /Users/illerucis/.julia/DataFrames/src/dataarray.jl:356
is ambiguous with: 
    getindex(DataArray{T<:Number,N},Union(Array{T,1},Ranges{T},BitArray{1})) at /Users/illerucis/.julia/DataFrames/src/dataarray.jl:340.
To fix, define 
    getindex(DataArray{T<:Number,N},Union(Array{T,1},Ranges{T}))
before the new definition.
Warning: New definition 
    map(Union(Function,DataType),Block{T}...) at /Users/illerucis/.julia/Blocks/src/mapreduce.jl:11
is ambiguous with: 
    map(Union(Function,DataType),Any...) at reduce.jl:129.
To fix, define 
    map(Union(Function,DataType),Block{T}...)
before the new definition.
Warning: New definition 
    mapreduce(Union(Function,DataType),Function,Block{T}...) at /Users/illerucis/.julia/Blocks/src/mapreduce.jl:86
is ambiguous with: 
    mapreduce(Union(Function,DataType),Union(Function,DataType),Any) at reduce.jl:150.
To fix, define 
    mapreduce(Union(Function,DataType),Function,Block{T})
before the new definition.
Warning: New definition 
    mapreduce(Union(Function,DataType),Function,Any,Block{T}...) at /Users/illerucis/.julia/Blocks/src/mapreduce.jl:87
is ambiguous with: 
    mapreduce(Union(Function,DataType),Union(Function,DataType),AbstractArray{T,N}) at reduce.jl:186.
To fix, define 
    mapreduce(Union(Function,DataType),Function,AbstractArray{T,N})
before the new definition.
Warning: New definition 
    mapreduce(Union(Function,DataType),Function,Any,Block{T}...) at /Users/illerucis/.julia/Blocks/src/mapreduce.jl:87
is ambiguous with: 
    mapreduce(Union(Function,DataType),Union(Function,DataType),Any) at reduce.jl:150.
To fix, define 
    mapreduce(Union(Function,DataType),Function,Any)
before the new definition.
Warning: New definition 
    mapreduce(Union(Function,DataType),Function,Any,Block{T}...) at /Users/illerucis/.julia/Blocks/src/mapreduce.jl:87
is ambiguous with: 
    mapreduce(Union(Function,DataType),Union(Function,DataType),Any,Any) at reduce.jl:164.
To fix, define 
    mapreduce(Union(Function,DataType),Function,Any,Block{T})
before the new definition.
Warning: New definition 
    mapreduce(Union(Function,DataType),Function,Any,Block{T}...) at /Users/illerucis/.julia/Blocks/src/mapreduce.jl:87
is ambiguous with: 
    mapreduce(Union(Function,DataType),Function,Block{T}...) at /Users/illerucis/.julia/Blocks/src/mapreduce.jl:86.
To fix, define 
    mapreduce(Union(Function,DataType),Function,Block{T},Block{T}...)
before the new definition.
Warning: using FS.rename in module DataFrames conflicts with an existing identifier
@kmsquire
Copy link
Owner

Hi Rob, That's because of a problem with Blocks, which has been fixed in the latest released version. Try running Pkg.update(), and let me know if that doesn't fix it.

@illerucis
Copy link
Author

Got it - trying that now

@illerucis
Copy link
Author

Fewer warnings, but still

Warning: using FS.rename in module DataFrames conflicts with an existing identifier.
Warning: New definition 
    |(SynchronousStepCollection,Any) at /Users/illerucis/.julia/BinDeps/src/BinDeps.jl:283
is ambiguous with: 
    |(Any,NAtype) at /Users/illerucis/.julia/DataArrays/src/operators.jl:502.
To fix, define 
    |(SynchronousStepCollection,NAtype)
before the new definition.
Warning: New definition 
    |(Any,SynchronousStepCollection) at /Users/illerucis/.julia/BinDeps/src/BinDeps.jl:286
is ambiguous with: 
    |(NAtype,Any) at /Users/illerucis/.julia/DataArrays/src/operators.jl:502.
To fix, define 
    |(NAtype,SynchronousStepCollection)
before the new definition.

@kmsquire
Copy link
Owner

Right, I had forgotten. DataFrames is in flux right now, so there's not
much I can do. If you do

Pkg.checkout("DataFrames")
Pkg.checkout("DataArrays")

all the warnings should go away. But I think thing might still work if you
don't do that. Let me know.

Kevin

On Monday, December 16, 2013, Rob wrote:

Less warnings, but still

Warning: using FS.rename in module DataFrames conflicts with an existing identifier.
Warning: New definition
|(SynchronousStepCollection,Any) at /Users/illerucis/.julia/BinDeps/src/BinDeps.jl:283
is ambiguous with:
|(Any,NAtype) at /Users/illerucis/.julia/DataArrays/src/operators.jl:502.
To fix, define
|(SynchronousStepCollection,NAtype)
before the new definition.
Warning: New definition
|(Any,SynchronousStepCollection) at /Users/illerucis/.julia/BinDeps/src/BinDeps.jl:286
is ambiguous with:
|(NAtype,Any) at /Users/illerucis/.julia/DataArrays/src/operators.jl:502.
To fix, define
|(NAtype,SynchronousStepCollection)
before the new definition.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-30723990
.

@illerucis
Copy link
Author

Warnings went away after

Pkg.checkout("DataFrames")
Pkg.checkout("DataArrays")

Thanks!

I saw one more issue, but regarding the PDF reports. The text in the graph titles was getting cut off. Have you noticed this before?

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

2 participants