# I'm trying to install some software packages, but i keep getting errors

**URL:** <https://forum.ubiquityrobotics.com/t/im-trying-to-install-some-software-packages-but-i-keep-getting-errors/363>\
**Category:** General Questions\
**Created:** [September 20, 2019, 9:56pm UTC](https://forum.ubiquityrobotics.com/t/im-trying-to-install-some-software-packages-but-i-keep-getting-errors/363 "2019-09-20T21:56:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahir758](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/m/f07891/32.png) [@mahir758](https://forum.ubiquityrobotics.com/u/mahir758)\
**Post date:** [September 20, 2019, 9:56pm UTC](https://forum.ubiquityrobotics.com/t/im-trying-to-install-some-software-packages-but-i-keep-getting-errors/363/1 "2019-09-20T21:56:16Z")

</div>

So I’m using the RPi SD card build you guys have. And I’m trying to install pygame so i used:  
`sudo apt-get install python3-pygame`  
and i got:  
Reading package lists… Done  
Building dependency tree  
Reading state information… Done  
Package python3-pygame is not available, but is referred to by another package.  
This may mean that the package is missing, has been obsoleted, or  
is only available from another source

```
E: Package 'python3-pygame' has no installation candidate

```

so I used pip by doing:  
sudo pip3 install pygame  
and I got:  
Collecting pygame  
Using cached  
[https://files.pythonhosted.org/packages/0f/9c/78626be04e193c0624842090fe5555b3805c050dfaa81c8094d6441db2be/pygame-1.9.6.tar.gz](https://files.pythonhosted.org/packages/0f/9c/78626be04e193c0624842090fe5555b3805c050dfaa81c8094d6441db2be/pygame-1.9.6.tar.gz)  
ERROR: Command errored out with exit status 1:  
command: /usr/bin/python3 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-pr6c9vyu/pygame/setup.py’"’"’; **file** =’"’"’/tmp/pip-install-pr6c9vyu/pygame/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)( **file** );code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, **file** , ‘"’"‘exec’"’"’))’ egg\_info --egg-base pip-egg-info  
cwd: /tmp/pip-install-pr6c9vyu/pygame/  
Complete output (13 lines):

```
    WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
    Using UNIX configuration...
    
    /bin/sh: 1: sdl-config: not found
    /bin/sh: 1: sdl-config: not found
    /bin/sh: 1: sdl-config: not found
    
    Hunting dependencies...
    WARNING: "sdl-config" failed!
    WARNING: "pkg-config freetype2" failed!
    Unable to run "sdl-config". Please make sure a development version of SDL is installed.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

```

I later used the sudo -H flag and got the same result except the warning at the beginning. Most of the things are up to date, I managed to connect to internet and not the access point. I upgraded setuptools, pip3, build-essentials and a lot more other stuff and I honestly don’t know where the problem is. If someone could help me out, advise me on what to install in order to fix this this it would be really great, thank you.

edit: apologies for some of the messed up preformatted terminal text

---

<div class="post-metadata">

**Author:** ![KingAndrew](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/k/eada6e/32.png) [@KingAndrew](https://forum.ubiquityrobotics.com/u/KingAndrew)\
**Post date:** [September 27, 2019, 8:29pm UTC](https://forum.ubiquityrobotics.com/t/im-trying-to-install-some-software-packages-but-i-keep-getting-errors/363/2 "2019-09-27T20:29:16Z")

</div>

I’m having the exact same issue. Did you get any further?

where is setup.py supposed to be?

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [October 10, 2019, 2:59am UTC](https://forum.ubiquityrobotics.com/t/im-trying-to-install-some-software-packages-but-i-keep-getting-errors/363/3 "2019-10-10T02:59:01Z")

</div>

python3-pygame is not something we use on the platform for our Magni robot.  
Good luck in your experiment.  
Do you feel the pygame module would be of importance for robotic platforms?  
Thank You,  
Mark

---

<div class="post-metadata">

**Author:** ![rohbotics](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/rohbotics/32/222_2.png) [@rohbotics](https://forum.ubiquityrobotics.com/u/rohbotics)\
**Post date:** [October 11, 2019, 4:38pm UTC](https://forum.ubiquityrobotics.com/t/im-trying-to-install-some-software-packages-but-i-keep-getting-errors/363/4 "2019-10-11T16:38:07Z")

</div>

Sorry for getting to this so late.

To install pygame from pip3 you need to install all the C dependencies manually in order for pip to be able to build it.

```auto
sudo apt-get install git python3-dev python3-setuptools python3-numpy python3-opengl \
    libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev \
    libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev \
    libtiff5-dev libx11-6 libx11-dev fluid-soundfont-gm timgm6mb-soundfont \
    xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic fontconfig fonts-freefont-ttf libfreetype6-dev

```

---

<div class="post-metadata">

**Author:** ![Drclaudiorocha](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/d/6f9a4e/32.png) [@Drclaudiorocha](https://forum.ubiquityrobotics.com/u/Drclaudiorocha)\
**Post date:** [March 19, 2020, 4:30pm UTC](https://forum.ubiquityrobotics.com/t/im-trying-to-install-some-software-packages-but-i-keep-getting-errors/363/5 "2020-03-19T16:30:59Z")

</div>

Hello, I would like to thank you, the information brought was of great importance, I speak here from Brazil, and I would like to express my gratitude for the great help you have given me.

---

<div class="post-metadata">

**Author:** ![LloydF](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/lloydf/32/178_2.png) [@LloydF](https://forum.ubiquityrobotics.com/u/LloydF)\
**Post date:** [March 22, 2020, 1:15pm UTC](https://forum.ubiquityrobotics.com/t/im-trying-to-install-some-software-packages-but-i-keep-getting-errors/363/6 "2020-03-22T13:15:04Z")

</div>

You really have been a great help. As to mjstn2011, you do realize that after reading all different threads, that you sir come off as sharp and hard to deal with. Stop trying to stick it to your customers with your hard ass points.😉  
Let your techs do there thing. I should pm this but you need to hear it.
