# Issues setting Up your catkin\_ws for Python3 environment on the Physical Jetson Nano

**URL:** <https://get-help.theconstruct.ai/t/issues-setting-up-your-catkin-ws-for-python3-environment-on-the-physical-jetson-nano/13466>\
**Category:** Using Nvidia Jetson Nano with ROS\
**Created:** [October 30, 2021, 8:34am UTC](https://get-help.theconstruct.ai/t/issues-setting-up-your-catkin-ws-for-python3-environment-on-the-physical-jetson-nano/13466 "2021-10-30T08:34:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wai.mak](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/wai.mak/32/7147_2.png) [@wai.mak](https://get-help.theconstruct.ai/u/wai.mak)\
**Post date:** [October 30, 2021, 8:34am UTC](https://get-help.theconstruct.ai/t/issues-setting-up-your-catkin-ws-for-python3-environment-on-the-physical-jetson-nano/13466/1 "2021-10-30T08:34:07Z")

</div>

Hi,

I’m running your course in my “own” real Jetbot environment,

I followed steps to create the Python3 Environment and I’m stuck at this command “source ~/.py3venv/bin/activate”

Below are the errors:

ubuntu@grace:~$ cd ~/catkin\_ws/src/my\_catkin\_ws\_python3  
ubuntu@grace:~/catkin\_ws/src/my\_catkin\_ws\_python3$ source ~/.py3venv/bin/activate  
bash: /home/ubuntu/.py3venv/bin/activate: No such file or directory  
ubuntu@grace:~/catkin\_ws/src/my\_catkin\_ws\_python3$ python3 --version  
Python 3.6.9  
ubuntu@grace:~/catkin\_ws/src/my\_catkin\_ws\_python3$ source ~/.catkin\_ws\_python3/bin/activate  
bash: /home/ubuntu/.catkin\_ws\_python3/bin/activate: No such file or directory  
ubuntu@grace:~/catkin\_ws/src/my\_catkin\_ws\_python3$

I even try the commands at [Virtual env: no such file or directory - #3 by Robots4Space\_Bapt](https://get-help.robotigniteacademy.com/t/virtual-env-no-such-file-or-directory/11846/3)

when I get up to here: sudo python -m virtualenv py3venv  
I get this error : /usr/bin/python: No module named virtualenv

is there a way to resolve this?  
I cannot move on further…,

Thanks

---

<div class="post-metadata">

**Author:** ![wai.mak](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/wai.mak/32/7147_2.png) [@wai.mak](https://get-help.theconstruct.ai/u/wai.mak)\
**Post date:** [November 2, 2021, 4:44am UTC](https://get-help.theconstruct.ai/t/issues-setting-up-your-catkin-ws-for-python3-environment-on-the-physical-jetson-nano/13466/2 "2021-11-02T04:44:53Z")

</div>

@albertoezquerro ,

Its been 3 days and I still got no replies…, please help!!!, I’m still stuck!!

catkin\_make -DPYTHON\_EXECUTABLE:FILEPATH=/home/ubuntu/catkin\_ws/src/my\_catkin\_ws\_python3/my\_catkin\_ws\_python3/bin/python

I’m just following the course for my jetson nano and I got the ERRORS below and I cannot move on…,

 ![image](https://get-help.robotigniteacademy.com/uploads/default/original/2X/2/26d403937e5ad0ca81349fa4e0c43351e7a62777.jpeg)

 ![image](https://get-help.robotigniteacademy.com/uploads/default/original/2X/0/008711d6c431211077f1fef4c920bb5776710d6c.jpeg)

You can also remote in and check if you like

Also, in this course, unit 2,

roscd jetbot\_pkg

> > > ( It should take you to .catkin\_ws\_python3/src/jetbot\_pkg)

This gives an error in the web shell:

SyntaxError: invalid syntax

> > > roscd jetbot\_pkg  
> > > File “”, line 1  
> > > roscd jetbot\_pkg

jetbot\_pkg does not even exists in the catkin\_ws\_python3/src/ path…, very very frustrating here!

---

<div class="post-metadata">

**Author:** ![wai.mak](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/wai.mak/32/7147_2.png) [@wai.mak](https://get-help.theconstruct.ai/u/wai.mak)\
**Post date:** [November 9, 2021, 10:50pm UTC](https://get-help.theconstruct.ai/t/issues-setting-up-your-catkin-ws-for-python3-environment-on-the-physical-jetson-nano/13466/3 "2021-11-09T22:50:19Z")

</div>

@albertoezquerro , ANY UPDATES ON THIS PLEASE?

---

<div class="post-metadata">

**Author:** ![duckfrost2](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/duckfrost2/32/9365_2.png) [@duckfrost2](https://get-help.theconstruct.ai/u/duckfrost2)\
**Post date:** [November 10, 2021, 10:10am UTC](https://get-help.theconstruct.ai/t/issues-setting-up-your-catkin-ws-for-python3-environment-on-the-physical-jetson-nano/13466/4 "2021-11-10T10:10:26Z")

</div>

Hi,

Is because both **.catkin\_ws\_python3** and **.py3venv** were created for this course. These are

- .py3venv: This si a virtual environment for using python 3 in a python 2 system.
- .catkin\_ws\_python3: Is a catkin\_ws compiled after sourcing in the .py3venv.

So to make this work in your local system you first have to install venv elements to be able to create one of your own. Then create a catkin\_ws and after sourcing the venv, do **catkin\_make**.

mkdir -p /usr/local/share/venvs   
&& sudo chown user:user -R /usr/local/share/venvs   
&& virtualenv /usr/local/share/venvs/py3venv --python=python3   
&& ln -s /usr/local/share/venvs/py3venv ~/.py3venv   
&& source ~/.py3venv/bin/activate   
&& pip install WAHTEVERYOU\_NEED

sudo mkdir -p /usr/local/share/venvs/catkin\_ws\_python3/src   
&& sudo chown user:user -R /usr/local/share/venvs/catkin\_ws\_python3   
&& ln -sfv /usr/local/share/venvs/catkin\_ws\_python3 ~/.catkin\_ws\_python3   
&& cd /home/user/.catkin\_ws\_python3/src   
&& source ~/.py3venv/bin/activate \

Something like this you should do, depending on your system. Hope you can get it ;), but we cant give full support for each person that want to install things in their own systems.
