You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the file C:\Users\fsald\.julia\packages\CSV\jFiCn\src\utils.jl the following function is generating an error when I try to read a CSV file:
@noinline function _parseany(T, buf, pos, len, opts)::Parsers.Result{Any}
return Parsers.xparse(T, buf, pos, len, opts, Any)
end
The call to read the file is as follows:
CSV.read(full_path_astro, DataFrames.DataFrame)
Other CSV files were read without any problems. The file has about 45k rows and 600 columns. Until yesterday there were no errors, this file was read daily. When I deleted most columns, leaving only about 20, the file was read with no problems.
The error message is:
ERROR: TaskFailedException
nested task error: MethodError: Cannot `convert` an object of type
Parsers.Result{String15} to an object of type
Parsers.Result{Any}
Closest candidates are:
convert(::Type{T}, ::T) where T at Base.jl:61
Stacktrace:
[1] _parseany(T::Type, buf::Vector{UInt8}, pos::Int64, len::Int64, opts::Parsers.Options)
@ CSV C:\Users\fsald\.julia\packages\CSV\jFiCn\src\utils.jl:455
Considering this error message we tried to remove the return type specification from the function parseany:
@noinline function _parseany(T, buf, pos, len, opts)
return Parsers.xparse(T, buf, pos, len, opts, Any)
end
This worked. The file was read with no problems.
The problem still occurs if all but the two first lines of the file are deleted.
hopefully this issue should be fixed if using InlineStrings.jl v1.2.2 (which is a dependency of CSV.jl)
Please can you try running using Pkg; Pkg.update() to see if that gets you InlineStrings.jl v1.2.2? Pkg.status("InlineStrings"; mode=PKGMODE_MANIFEST) can show you which version you have.
If that Pkg.update() doesn't get you v1.2.2, could you try starting Julia with the environment variable JULIA_PKG_SERVER_REGISTRY_PREFERENCE=eager then hopefully that'll get you v1.2.2 🤞
e.g.
$> JULIA_PKG_SERVER_REGISTRY_PREFERENCE=eager julia --project -q
julia> using Pkg; Pkg.update()
In the file
C:\Users\fsald\.julia\packages\CSV\jFiCn\src\utils.jl
the following function is generating an error when I try to read a CSV file:The call to read the file is as follows:
Other CSV files were read without any problems. The file has about 45k rows and 600 columns. Until yesterday there were no errors, this file was read daily. When I deleted most columns, leaving only about 20, the file was read with no problems.
The error message is:
Considering this error message we tried to remove the return type specification from the function
parseany
:This worked. The file was read with no problems.
The problem still occurs if all but the two first lines of the file are deleted.
Astro_alpha_0.3_ConjunctionOrb_15.CSV
On the other hand, deleting all but the first 20 columns the file is read with no problems.
We solved the problem by changing the call to CSV.read to:
The text was updated successfully, but these errors were encountered: