# When I run the example with pylith v2.2, occuring the error

**URL:** <https://community.geodynamics.org/t/when-i-run-the-example-with-pylith-v2-2-occuring-the-error/3471>\
**Category:** PyLith\
**Created:** [May 23, 2024, 4:57am UTC](https://community.geodynamics.org/t/when-i-run-the-example-with-pylith-v2-2-occuring-the-error/3471 "2024-05-23T04:57:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenyq](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@chenyq](https://community.geodynamics.org/u/chenyq)\
**Post date:** [May 23, 2024, 4:57am UTC](https://community.geodynamics.org/t/when-i-run-the-example-with-pylith-v2-2-occuring-the-error/3471/1 "2024-05-23T04:57:32Z")

</div>

error is \>/usr/bin/env: ‘nemesis’: No such file or directory

---

<div class="post-metadata">

**Author:** ![baagaard](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/baagaard/32/615_2.png) [@baagaard](https://community.geodynamics.org/u/baagaard)\
**Post date:** [May 23, 2024, 2:18pm UTC](https://community.geodynamics.org/t/when-i-run-the-example-with-pylith-v2-2-occuring-the-error/3471/2 "2024-05-23T14:18:21Z")

</div>

`nemesis` is a PyLith provided parallel processing aware wrapper around Python. You need to setup your environment so that nemesis and the other PyLith software is available. For the PyLith binary packages, this is done by running `source setup.sh` in the top-level PyLith directory. Refer to the PyLith installation instructions for more information.

---

<div class="post-metadata">

**Author:** ![chenyq](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@chenyq](https://community.geodynamics.org/u/chenyq)\
**Post date:** [May 23, 2024, 2:35pm UTC](https://community.geodynamics.org/t/when-i-run-the-example-with-pylith-v2-2-occuring-the-error/3471/3 "2024-05-23T14:35:42Z")

</div>

I run `source setup.sh` at the top of the pylith directory, and I get an error when I run the example. I don’t know why, it’s weird

---

<div class="post-metadata">

**Author:** ![baagaard](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/baagaard/32/615_2.png) [@baagaard](https://community.geodynamics.org/u/baagaard)\
**Post date:** [May 23, 2024, 3:32pm UTC](https://community.geodynamics.org/t/when-i-run-the-example-with-pylith-v2-2-occuring-the-error/3471/4 "2024-05-23T15:32:34Z")

</div>

If you need additional help, please provide a description of your operating system, the directory where you installed PyLith, and show complete details for every command you are running and the resulting output, beginning with `source setup.sh`.

---

<div class="post-metadata">

**Author:** ![chenyq](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@chenyq](https://community.geodynamics.org/u/chenyq)\
**Post date:** [May 24, 2024, 2:14am UTC](https://community.geodynamics.org/t/when-i-run-the-example-with-pylith-v2-2-occuring-the-error/3471/5 "2024-05-24T02:14:09Z")

</div>

My operate system is WSL, and installation path is /mnt/f/pylith-2.2.1-linux-x86\_64/pylith-2.2.1-linux-x86\_64,

 ![](https://canada1.discourse-cdn.com/flex036/uploads/geodynamics/original/2X/1/11185601e9f06259c0b3ea44f97035b63c593aa9.png)

 ![](https://canada1.discourse-cdn.com/flex036/uploads/geodynamics/original/2X/2/2561c2eb032ee3e91036ec85d4216e5a6e1a9fd2.png)

 ![](https://canada1.discourse-cdn.com/flex036/uploads/geodynamics/original/2X/5/5ab5a881eb007e8ba0f96f3781ac0713bdd05f77.png)

---

<div class="post-metadata">

**Author:** ![chenyq](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@chenyq](https://community.geodynamics.org/u/chenyq)\
**Post date:** [May 24, 2024, 2:18am UTC](https://community.geodynamics.org/t/when-i-run-the-example-with-pylith-v2-2-occuring-the-error/3471/6 "2024-05-24T02:18:30Z")

</div>

However, when I run the pylith v4.0, pylith is ok.

 ![](https://canada1.discourse-cdn.com/flex036/uploads/geodynamics/original/2X/4/4e9ee076caba8f923ee1345b7b0ae9ade831f870.png)

 ![](https://canada1.discourse-cdn.com/flex036/uploads/geodynamics/original/2X/4/4812630446bef93b69a7f53362b649260cd8ccf7.png)

 ![](https://canada1.discourse-cdn.com/flex036/uploads/geodynamics/original/2X/7/75164232b4f9af90e960303f78f06bdf3cffb0f0.png)

---

<div class="post-metadata">

**Author:** ![baagaard](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/baagaard/32/615_2.png) [@baagaard](https://community.geodynamics.org/u/baagaard)\
**Post date:** [May 24, 2024, 7:52pm UTC](https://community.geodynamics.org/t/when-i-run-the-example-with-pylith-v2-2-occuring-the-error/3471/7 "2024-05-24T19:52:36Z")

</div>

PyLith v2 is uses Python 2 whereas PyLith v3 and later use Python 3. We provide the appropriate Python in the Linux binary. I suspect there is a conflict with your environment when you use PyLith v2.2. I recommend setting PATH to only system libraries and unsetting LD\_LIBRARY\_PATH and PYTHONPATH (see below) _before_ running `source setup.sh`.

```auto
PATH=/bin:/usr/bin:/sbin:/usr/sbin
unset LD_LIBRARY_PATH PYTHONPATH

```

---

<div class="post-metadata">

**Author:** ![chenyq](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@chenyq](https://community.geodynamics.org/u/chenyq)\
**Post date:** [May 28, 2024, 2:01am UTC](https://community.geodynamics.org/t/when-i-run-the-example-with-pylith-v2-2-occuring-the-error/3471/9 "2024-05-28T02:01:19Z")

</div>

I’m using Python 2.7 to run pylith2.2 and have set it up as you recommended, but I still get the same error!
