JuliaLang / julia

The Julia Programming Language
https://julialang.org/
MIT License
45.4k stars 5.45k forks source link

I can no longer include Pkg.CSV in my Jupyter Notebook #42772

Closed CBrauer closed 2 years ago

CBrauer commented 2 years ago

Hey,

My notebook was working fine, but after some changes, I'm now getting an error. Please help me to fix this problem. The first few cells of my Jupyter Notebook are shown below:

Charles

using Pkg
Pkg.add("DataFrames")
Pkg.add("CSV")
Pkg.add("DecisionTree")
Pkg.add("Lathe")
executed in 10.4s, finished 16:07:16 2021-10-22
   Resolving package versions...
  No Changes to `C:\Users\cbrau\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\cbrau\.julia\environments\v1.6\Manifest.toml`
   Resolving package versions...
  No Changes to `C:\Users\cbrau\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\cbrau\.julia\environments\v1.6\Manifest.toml`
   Resolving package versions...
  No Changes to `C:\Users\cbrau\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\cbrau\.julia\environments\v1.6\Manifest.toml`
   Resolving package versions...
  No Changes to `C:\Users\cbrau\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\cbrau\.julia\environments\v1.6\Manifest.toml`

Pkg.update()
Pkg.status()
executed in 14.0s, finished 16:16:18 2021-10-22
    Updating registry at `C:\Users\cbrau\.julia\registries\General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
    Updating git-repo `https://github.com/tk3369/YeoJohnsonTrans.jl`
  No Changes to `C:\Users\cbrau\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\cbrau\.julia\environments\v1.6\Manifest.toml`
      Status `C:\Users\cbrau\.julia\environments\v1.6\Project.toml`
  [f9309374] ApplicationBuilder v0.4.0
  [c7e460c6] ArgParse v1.1.4
  [08437348] AutoMLPipeline v0.3.6
  [fbb218c0] BSON v0.3.4
  [336ed68f] CSV v0.4.0
  [a93c6f00] DataFrames v0.18.4
  [7806a523] DecisionTree v0.10.11
  [7073ff75] IJulia v1.23.2
  [b1bec4e5] LIBSVM v0.6.0
  [25676c37] Lale v0.1.9
  [38d8eb38] Lathe v0.0.9
  [f0e99cf1] MLBase v0.8.0
  [add582a8] MLJ v0.2.3
  [a7f614a8] MLJBase v0.2.1
  [61c7150f] MLJLIBSVMInterface v0.1.3
  [d491faf4] MLJModels v0.2.2
  [5ae90465] MLJScikitLearnInterface v0.1.10
  [6f286f6a] MultivariateStats v0.8.0
  [91a5bcdd] Plots v0.28.4
  [7f904dfe] PlutoUI v0.7.1
  [08abe8d2] PrettyTables v1.2.3
  [438e738f] PyCall v1.92.3
  [ce6b1742] RDatasets v0.6.1
  [321657f4] ScientificTypes v1.1.2
  [3646fa90] ScikitLearn v0.5.1
  [2913bbd2] StatsBase v0.32.2
  [bde5d4e9] YeoJohnsonTrans v1.0.0 `https://github.com/tk3369/YeoJohnsonTrans.jl#master`
  [10745b16] Statistics

Pkg.resolve()
executed in 779ms, finished 16:16:26 2021-10-22
  No Changes to `C:\Users\cbrau\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\cbrau\.julia\environments\v1.6\Manifest.toml`

using DataFrames
using CSV
using DecisionTre
using Lathe
executed in 1.14s, finished 16:16:37 2021-10-22
┌ Info: Precompiling CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b]
└ @ Base loading.jl:1342
ERROR: LoadError: ArgumentError: Package CSV does not have Parsers in its dependencies:
- If you have CSV checked out for development and have
  added Parsers as a dependency but haven't updated your primary
  environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with CSV
Stacktrace:
 [1] require(into::Module, mod::Symbol)
   @ Base .\loading.jl:906
 [2] include
   @ .\Base.jl:386 [inlined]
 [3] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
   @ Base .\loading.jl:1235
 [4] top-level scope
   @ none:1
 [5] eval
   @ .\boot.jl:360 [inlined]
 [6] eval(x::Expr)
   @ Base.MainInclude .\client.jl:446
 [7] top-level scope
   @ none:1
in expression starting at C:\Users\cbrau\.julia\packages\CSV\Jf3xI\src\CSV.jl:1`
simeonschaub commented 2 years ago

Hi and welcome! This repository is for tracking bugs and features in Julia base. Please use https://discourse.julialang.org/ for questions if you have troubles getting set up.