# Issue running setup.py

**URL:** <https://forum.theavr.org/t/issue-running-setup-py/511>\
**Category:** Technical Support (Official)\
**Created:** [June 17, 2023, 6:01pm UTC](https://forum.theavr.org/t/issue-running-setup-py/511 "2023-06-17T18:01:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RyanG](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@RyanG](https://forum.theavr.org/u/RyanG)\
**Post date:** [June 17, 2023, 6:01pm UTC](https://forum.theavr.org/t/issue-running-setup-py/511/1 "2023-06-17T18:01:33Z")

</div>

We have an error trying to run setup.py. We re-flashed the micro SD card in order to get a fresh start because we could not get our drone to fly in position flight mode and did not see any issues with hardware so we decided to make sure software is at least functional. After cloning the repository and running ./setup.py, we get these errors.

---

<div class="post-metadata">

**Author:** ![Phantom\_BELL](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.theavr.org/phantom_bell/32/237_2.png) [@Phantom\_BELL](https://forum.theavr.org/u/Phantom_BELL)\
**Post date:** [June 19, 2023, 1:03pm UTC](https://forum.theavr.org/t/issue-running-setup-py/511/2 "2023-06-19T13:03:44Z")

</div>

Hello RyanG,  
Thank you for reaching out. Could you please provide us with a screenshot of the error message you are encountering?

Also, can you check the Flight Modes inside QGroundControl to see if you assigned any channels to Position flight mode?

---

<div class="post-metadata">

**Author:** ![RyanG](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@RyanG](https://forum.theavr.org/u/RyanG)\
**Post date:** [June 20, 2023, 9:13pm UTC](https://forum.theavr.org/t/issue-running-setup-py/511/3 "2023-06-20T21:13:08Z")

</div>

![IMG_5326](https://canada1.discourse-cdn.com/flex007/uploads/avr/original/1X/066e2050d1ac776db42338a8d54528fa62d483e9.jpeg)  
This message is what pops up when trying to switch to Position Flight Mode. We do not know if this issue occurs because of a problem with the ZED Camera, if we cloned the git repo incorrectly, or if we setup Pyrhon incorrectly.

---

<div class="post-metadata">

**Author:** ![RyanG](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@RyanG](https://forum.theavr.org/u/RyanG)\
**Post date:** [June 20, 2023, 9:15pm UTC](https://forum.theavr.org/t/issue-running-setup-py/511/4 "2023-06-20T21:15:20Z")

</div>

![IMG_5316](https://canada1.discourse-cdn.com/flex007/uploads/avr/original/1X/d204277b45a40ed3828622f1ac6598f25eb8db5d.jpeg)  
This is our error message after running ‘setup.py’. There was also an error regarding ‘docker’, we had not taken a photo but we searched up the error which was “subprocess.CalledProcessError: Command ‘[‘apt-get’, ‘update’]’ returned non-zero exit status 100.”

---

<div class="post-metadata">

**Author:** ![nathan](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.theavr.org/nathan/32/4_2.png) [@nathan](https://forum.theavr.org/u/nathan)\
**Post date:** [June 21, 2023, 10:55pm UTC](https://forum.theavr.org/t/issue-running-setup-py/511/5 "2023-06-21T22:55:11Z")

</div>

> Could not resolve host [github.com](http://github.com)

is definitely an internet connection issue. Does your Jetson have a network connection? To test, run

```bash
ping google.com

```

Position hold will not work until the setu.py script has run to completion at least once. After that, you will need to run all the software, with at least the flight control module, fusion module, mqtt module, and vio module all working.
