Greetings
I encountered the following error:
[9.780207664750093e7, -4.344016826050785e7]ERROR: LoadError: MethodError: Cannot convert
an object of type Missing to an object of type Float64
Closest candidates are:
convert(::Type{T}, ::ColorTypes.Gray24) where T<:Real at ~/.julia/packages/ColorTypes/1dGw6/src/conversions.jl:114
convert(::Type{T}, ::ColorTypes.Gray) where T<:Real at ~/.julia/packages/ColorTypes/1dGw6/src/conversions.jl:113
convert(::Type{T}, ::Base.TwicePrecision) where T<:Number at twiceprecision.jl:273
Could you please advise on how to solve it?
Thanks
Without more code it’s unlikely that anyone can tell you more than the error message already does - you are trying to convert a missing value to Float64, which doesn’t work:
julia> convert(Float64, missing)
ERROR: MethodError: Cannot `convert` an object of type Missing to an object of type Float64
If you are getting this error when you are starting up without trying to run any code, then information like the Julia version number, operating system and how Julia was installed will likely be relevant.
If you are getting the error while trying to run a particular piece of code, then try to find out which line of code causes this error and if possible post it here or at least describe the code in some way.