CSV 0.7.7 Error

Hello All,

Julia is new to me and I have been having a problem I’m hope I can get some help.

I was having a CSV.write problem that I posted on Stackoverflow (Bogumił Kamiński) was kind enough to help me. He suggested I make a new project environment. Which I did but I’m getting a new Error he suggested that I post the Error to the Community. I’m on a MacBook Pro / using Atom Juno.
Julia - 1.5.2 - Thank you for whatever help you can give.

julia> using CSV
[ Info: Precompiling CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b]
ERROR: LoadError: too many parameters for type
[1] precompile() at /Users/.julia/packages/CSV/MKemC/src/precompile.jl:3
[2] top-level scope at /Users/.julia/packages/CSV/MKemC/src/CSV.jl:48
[3] include(::Function, ::Module, ::String) at ./Base.jl:380
[4] include(::Module, ::String) at ./Base.jl:368
[5] top-level scope at none:2
[6] eval at ./boot.jl:331 [inlined]
[7] eval(::Expr) at ./client.jl:467
[8] top-level scope at ./none:3
in expression starting at /Users/.julia/packages/CSV/MKemC/src/CSV.jl:48
ERROR: Failed to precompile CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b] to /Users/.julia/compiled/v1.5/CSV/HHBkp_feOl4.ji.
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
[3] _require(::Base.PkgId) at ./loading.jl:1030
[4] require(::Base.PkgId) at ./loading.jl:928
[5] require(::Module, ::Symbol) at ./loading.jl:923

add CSV
[336ed68f] + CSV v0.7.7
[324d7699] + CategoricalArrays v0.8.3
[a93c6f00] + DataFrames v0.21.8
[e2d170a0] + DataValueInterfaces v1.0.0
[41ab1584] + InvertedIndices v1.0.0
[82899510] + IteratorInterfaceExtensions v1.0.0
[682c06a0] + JSON v0.21.1
[69de0a69] + Parsers v1.0.11
[2dfb63ee] + PooledArrays v0.5.3
[189a3867] + Reexport v0.2.0
[91c51154] + SentinelArrays v1.2.16
[856f2bd8] + StructTypes v1.1.0
[3783bdb8] + TableTraits v1.0.0
[bd369af6] + Tables v1.1.0
[9fa8497b] + Future

What version of SnoopCompile.jl do you have? As this seems to be an error unrelated to CSV.jl.

Hello Bogumil,

Thank you for the reply - SnoopCompile v2.1.2

It should be OK then. @quinnj - do you have any idea what could be going on here?

Hmmm, this kind of error would suggest that a wrong version of a dependency is getting loaded, probably by Juno/Atom. If you do using CSV from a normal terminal, do you see the same issue?

1 Like

@bkamins @quinnj - Thank you both for helping me. @quinnj I try Julia 1.5.2 through the Mac applications which loads it into the terminal. I activate the project environment. Using CSV (CSV v0.7.7) - works find. So it does look like Juno/Atom is doing something to the CSV loading. (Very interesting)

1 Like

@pfitzseb - you probably then can tell best what is happening.

@orthoeng - in general AFIACT it is better to move to VS Code.

1 Like

Yeah, as Jacob says: it’s likely that Juno loads an incompatible version of Parsers.jl. This shouldn’t happen if you make sure to install CSV and Juno in the same environment, I think.

1 Like

Update: - @bkamins @quinnj and pfitzseb - really appreciate the time you took. So just a quick update.
I uninstalled and reinstalled Atom - Activate the project. Using CSV - loads fine now. But do know why.

1 Like