# Pluto problem with Base.load\_path() when importing locally installed packages

**URL:** <https://discourse.julialang.org/t/pluto-problem-with-base-load-path-when-importing-locally-installed-packages/107755>\
**Category:** Pluto\
**Created:** [December 18, 2023, 5:13am UTC](https://discourse.julialang.org/t/pluto-problem-with-base-load-path-when-importing-locally-installed-packages/107755 "2023-12-18T05:13:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hisacro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hisacro/32/202631_2.png) [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Post date:** [December 18, 2023, 5:13am UTC](https://discourse.julialang.org/t/pluto-problem-with-base-load-path-when-importing-locally-installed-packages/107755/1 "2023-12-18T05:13:17Z")

</div>

I used to use

```julia
begin
	import Pkg
	Pkg.activate()
using ForwardDiff, LinearAlgebra,PlutoUI, DelimitedFiles, DynamicalSystems, GLMakie, Plots, OrdinaryDiffEq, ProgressMeter; plotly();
end

```

to import locally installed packages, after a force shutdown I reopened the environment to  
see pluto is warning me

```julia
ArgumentError: Package ForwardDiff not found in current path.

- Run `import Pkg; Pkg.add("ForwardDiff")` to install the ForwardDiff package.

```

but I know these are installed in the path because I can work on REPL,

so  
running

> Base.load\_path()  
> after that import

```julia
"/home/hisacro/packages/julias/julia-1.9/share/julia/stdlib/v1.9"

```

in the repl my

> Base.load\_path()

```julia
"/home/hisacro/packages/julias/julia-1.9/share/julia/stdlib/v1.9"
"/home/hisacro/.julia/environments/v1.9/Project.toml"

```

so seems to be Project.toml is missing, now how to rectify this and make pluto import local packages

found this for repl, [JULIA\_LOAD\_PATH replace load path instead of append to it · Issue #29513 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/29513) but I cannot wrap this for pluto  
any help is much appreciated since it was working fine before with local imports

---

<div class="post-metadata">

**Author:** ![disberd](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@disberd](https://discourse.julialang.org/u/disberd)\
**Post date:** [January 25, 2024, 5:35pm UTC](https://discourse.julialang.org/t/pluto-problem-with-base-load-path-when-importing-locally-installed-packages/107755/2 "2024-01-25T17:35:45Z")

</div>

Which OS are you using?

I can’t seem to replicate this on my windows machine (although I am on 1.10) and the ouput ot `Base.load_path()` correctly holds the main env.

Have you tried splitting the `using` statements in a separate cell?  
It shouldn’t matter but it’s always worth trying out

---

<div class="post-metadata">

**Author:** ![hisacro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hisacro/32/202631_2.png) [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Post date:** [January 27, 2024, 2:35pm UTC](https://discourse.julialang.org/t/pluto-problem-with-base-load-path-when-importing-locally-installed-packages/107755/3 "2024-01-27T14:35:12Z")

</div>

It was debian and hard disk faced a failure, so I don’t have access to it now. I just replicated the same setup on current one without issues.

Still have no idea how to resolve these
