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

ERROR: UndefVarError: A not defined in local scope #1145

Open
yakir12 opened this issue Nov 15, 2024 · 0 comments
Open

ERROR: UndefVarError: A not defined in local scope #1145

yakir12 opened this issue Nov 15, 2024 · 0 comments

Comments

@yakir12
Copy link

yakir12 commented Nov 15, 2024

When trying to parse two csv files, I get this error:

tbl = CSV.File(files)
ERROR: UndefVarError: `A` not defined in local scope
Suggestion: check for an assignment to a local variable that shadows a global of the same name.
Stacktrace:
 [1] (::CSV.var"#3#4")(x::PooledArrays.PooledVector{Union{Missing, String3}, UInt32, Vector{UInt32}})
   @ CSV ./none:0
 [2] iterate
   @ ./generator.jl:48 [inlined]
 [3] collect(itr::Base.Generator{Vector{PooledArrays.PooledVector{Union{}, UInt32, Vector{}}}, CSV.var"#3#4"})
   @ Base ./array.jl:780
 [4] chaincolumns!(a::Any, b::Any)
   @ CSV ~/.julia/packages/CSV/XLcqT/src/utils.jl:240
 [5] CSV.File(sources::Vector{String}; source::Nothing, kw::@Kwargs{})
   @ CSV ~/.julia/packages/CSV/XLcqT/src/file.jl:936
 [6] CSV.File(sources::Vector{String})
   @ CSV ~/.julia/packages/CSV/XLcqT/src/file.jl:907
 [7] top-level scope
   @ REPL[120]:1
Some type information was truncated. Use `show(err)` to see complete types.

The files are mounted on an external hard-drive, but if I copy them locally, then everything works. Both files have empty last rows in them. If I delete those empty rows, then parsing "even" the mounted files works...

So strange...

Not sure why its complaining on the scope of that A variable, maybe due to some lazy step in ChainedVector...?

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

1 participant