# Project Environment and Package Issues

**URL:** <https://discourse.julialang.org/t/project-environment-and-package-issues/116641>\
**Category:** General Usage\
**Tags:** question, package\
**Created:** [July 5, 2024, 6:59am UTC](https://discourse.julialang.org/t/project-environment-and-package-issues/116641 "2024-07-05T06:59:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![c-allergic](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/c-allergic/32/210462_2.png) [@c-allergic](https://discourse.julialang.org/u/c-allergic)\
**Post date:** [July 5, 2024, 6:59am UTC](https://discourse.julialang.org/t/project-environment-and-package-issues/116641/1 "2024-07-05T06:59:16Z")

</div>

I just pull an undergoing project on GitHub and its name is “ProblemReductions.jl”. I tried to run the example given in the directory “example/landscape”. There are Project.toml which clearifies the package that is useful in the example.  
Then I jump in to this directory and type:

```julia
Julia> julia
Julia>using Pkg
Julia>Pkg.activate(".")
Julia>Pkg.instantiate()
pkg>st

```

then everything went well, I did:

```julia
Julia> include("main.jl")

```

After a while, REPL complained:

```julia
ERROR:LoadError:UndefVarError: `Random` undefined

```

And the relative code in the main.jl is:

```julia
Random.seed!(seed)

```

What is the problem?

---

<div class="post-metadata">

**Author:** ![c-allergic](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/c-allergic/32/210462_2.png) [@c-allergic](https://discourse.julialang.org/u/c-allergic)\
**Post date:** [July 5, 2024, 6:59am UTC](https://discourse.julialang.org/t/project-environment-and-package-issues/116641/2 "2024-07-05T06:59:58Z")

</div>

sorry there’s a typo in the first line of code, I run Julia in the terminal

---

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [July 5, 2024, 7:29am UTC](https://discourse.julialang.org/t/project-environment-and-package-issues/116641/3 "2024-07-05T07:29:49Z")

</div>

The immediate error is due to the script not importing `Random`. But it’s also missing definitions of `seed` and `K`, and probably is supposed to import `nv` from `Graphs`.

Either the script is incomplete or not intended to be run in isolation. I recommend that you open an issue with the package to get this clarified.

---

<div class="post-metadata">

**Author:** ![c-allergic](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/c-allergic/32/210462_2.png) [@c-allergic](https://discourse.julialang.org/u/c-allergic)\
**Post date:** [July 5, 2024, 2:54pm UTC](https://discourse.julialang.org/t/project-environment-and-package-issues/116641/4 "2024-07-05T14:54:03Z")

</div>

I’ve solved the problem! Thank you
