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

Try to show random image #782

Closed
boroboro77 opened this issue Dec 15, 2020 · 4 comments
Closed

Try to show random image #782

boroboro77 opened this issue Dec 15, 2020 · 4 comments

Comments

@boroboro77
Copy link

Hello! Very great work with Pluto!
Unfortunately sometimes i get very strange problems.
This is one of them:
image

Can someone tell me what goes wrong?

@fonsp
Copy link
Owner

fonsp commented Dec 15, 2020

Can you copy paste the error? It got cropped in the image

@boroboro77
Copy link
Author

boroboro77 commented Dec 15, 2020

img

Failed to show value:

MethodError: no method matching save(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Array{ColorTypes.RGB{Float32},2}, ::Pair{Symbol,ImageShow.var"#14#16"})

Closest candidates are:

save(::IO, ::S; compression_level, compression_strategy, filters, palette) where {T, S<:Union{AbstractArray{T,3}, AbstractArray{T,2} where T}} at C:\Users\Name.julia\packages\PNGFiles\3VoQP\src\io.jl:300

save(!Matched::String, ::S; compression_level, compression_strategy, filters, palette) where {T, S<:Union{AbstractArray{T,3}, AbstractArray{T,2} where T}} at C:\Users\Name.julia\packages\PNGFiles\3VoQP\src\io.jl:268

handle_error(::MethodError, ::FileIO.Stream{FileIO.DataFormat{:PNG},IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}})@error_handling.jl:82
handle_exceptions(::Array{Any,1}, ::String)@error_handling.jl:77
#save#33(::Base.Iterators.Pairs{Symbol,ImageShow.var"#14#16",Tuple{Symbol},NamedTuple{(:mapi,),Tuple{ImageShow.var"#14#16"}}}, ::typeof(FileIO.save), ::FileIO.Formatted, ::Any)@loadsave.jl:238
#show#13(::Int64, ::Int64, ::Function, ::typeof(show), ::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::MIME{Symbol("image/png")}, ::Array{ColorTypes.RGB{Float32},2})@showmime.jl:43
show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::MIME{Symbol("image/png")}, ::Array{ColorTypes.RGB{Float32},2})@showmime.jl:28
show_richest(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Any)@PlutoRunner.jl:380
#sprint_withreturned#23(::IOContext{Base.DevNull}, ::Int64, ::typeof(Main.PlutoRunner.sprint_withreturned), ::Function, ::Array{ColorTypes.RGB{Float32},2})@PlutoRunner.jl:333
#format_output_default#13(::Pair{Symbol,Dict{Tuple{UInt64,Int64},Int64}}, ::typeof(Main.PlutoRunner.format_output_default), ::Any)@PlutoRunner.jl:268
#format_output#[email protected]:285[inlined]
formatted_result_of(::Base.UUID, ::Bool, ::Nothing)@PlutoRunner.jl:76
top-level scope@none:1

@fonsp
Copy link
Owner

fonsp commented Dec 17, 2020

Fixed in JuliaIO/PNGFiles.jl#29 , try updating your packages

@fonsp fonsp closed this as completed Dec 17, 2020
@boroboro77
Copy link
Author

thank you a lot!

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