-
Notifications
You must be signed in to change notification settings - Fork 143
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
ERROR: convert
has no method matching convert(::Type{Int64...}, ::Uint64)
#160
Comments
Can you provide an explicit test case? |
Hold on, there seems to be some interference with PyPlot. The error does not occur if I don't use |
Ok, so I am on latest master
with latest HDF5.jl (0.4.3) and PyPlot.jl (1.4.0). In a freshly opened Julia REPL, doing this using PyPlot
using HDF5, JLD
f=jldopen("newspectrum_32_1.30_0.45.jld","r")
spectrum1=read(f,"spectrum1")
close(f) fails with the aforementioned error. Exiting and restarting Julia, this then works using HDF5, JLD
f=jldopen("newspectrum_32_1.30_0.45.jld","r")
spectrum1=read(f,"spectrum1")
close(f) If I do Not sure if I need to report this here, at PyPlot.jl or at Julia itself. I can try to share the dataset. |
All this data is on my Dropbox folder, so I can just share this: |
Somehow, loading PyPlot breaks: convert((Int...), (uint(1),)) |
That's a surprisingly simple and yet very surprising explanation. Thanks. |
Note that |
Definitely a Julia bug, and actually triggered by Color.jl: julia> using Color
[deprecation warnings...]
julia> convert((Int...), (uint(1),))
ERROR: `convert` has no method matching convert(::Type{Int64...}, ::Uint64)
in convert at base.jl:9
in convert at base.jl:17
julia> f() = convert((Int...), (uint(1),));
julia> f()
(1,) |
Ok thanks. I'll hold off reporting this. |
See JuliaLang/julia#8631. Nice detective work, folks. |
I just ran into this issue, and found this ticket via web search. I see Issue #8631 references this issue, so I'll post here to let others know this issue between JLD.load(), convert, and PyPlot also exists in v0.3.1. To reproduce the error, start a new Julia REPL session, and type:
or
both give:
|
Does pinning your version of Color work? See JuliaAttic/Color.jl#68. It does seem there is some long-lurking bug that this has just exposed. |
Ah hah! Thanks! I verified pinning Color.jl to v0.3.9 would not cause the JLD.load() and convert problem I posted here. |
Update: hopefully this is fixed with the latest release of Color, so do a |
Updated Color fixes some problems, so it's worth trying, but not the specific test case here. See JuliaLang/julia#8631 |
Maybe it's already known but the commit in Color triggering this was 9367c4ef754580693cac5258859256717d812791 |
Do you have any clue why that commit causes this problem? |
None at all. That was the point when I gave up debugging and started searching for issues. |
Switching the colormaps_sequential and colormaps_diverging values from tuples to vectors works around the Julia bug JuliaLang/julia#8631, solving JuliaAttic#68 and JuliaIO/HDF5.jl#160.
This issue should be safe to close now. |
I seem to be getting this quite a few times.
My variables are normal
Arrays
and both saved and opened with HDF5.jl version 4.3.The text was updated successfully, but these errors were encountered: