Tiny Core Base > Raspberry Pi
raspberry pi unable to install pygame
Ripley:
Im using a raspberry pi 3 B+ as my builder (a way for me to download all the files needed) for my raspberry pi zero (with no internet connection, hense the need for the builder) and I am trying to install python3's module pygame. But everytime I Pip install pygame, the download finishes and I am left with an error saying "python setup.py egg_info did not run successfully". I have updated my pip and setuptools for python. I have tried pip install on other modules such as mutagen and had success,
If someone could help me out, that would be great!
polikuo:
Hi, Ripley
Welcome to the forum
Have you installed compiletc ?
Some python modules use compiler during installation
Ripley:
Thanks for the welcome
I just installed compiletc, same issue
polikuo:
This is what I do on raspberry pi 4 with aarch64
--- Code: ---tc@pi4:~$ tce-load -i python3.8-pip python3.8-setuptools compiletc
tc@pi4:~$ pip install pygame
Collecting pygame
Downloading pygame-2.1.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (20.7 MB)
|████████████████████████████████| 20.7 MB 444 kB/s
Installing collected packages: pygame
Successfully installed pygame-2.1.2
WARNING: You are using pip version 20.1.1; however, version 22.0.4 is available.
You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.
tc@pi4:~$ echo $?
0
--- End code ---
polikuo:
Hmm.
On aarch64, pip doesn't ask for any dependencies at all
On armv7l, however, it's asking for several headers and can't be bypassed even if you specify --install-option='-auto'
I think they have binaries pre-compiled for certain architecture.
--- Code: ---tc@pi3:~$ tce-load -i SDL2_image-dev compiletc freetype-dev python3.8-pip python3.8-setuptools libX11-dev
tc@pi3:~$ pip3 install pygame --user
Collecting pygame
Downloading pygame-2.1.2.tar.gz (10.1 MB)
|████████████████████████████████| 10.1 MB 5.5 MB/s
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-o5tozjcu/pygame/setup.py'"'"'; __file__='"'"'/tmp/pip-install-o5tozjcu/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 /tmp/pip-pip-egg-info-grvt033y
cwd: /tmp/pip-install-o5tozjcu/pygame/
Complete output (31 lines):
WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using UNIX configuration...
WARNING:root:Some pygame dependencies were not found. Pygame can still compile and install, but games that depend on those missing dependencies will not run. Use -auto to continue building without all dependencies.
Missing dependencies
Hunting dependencies...
SDL : found 2.0.16
FONT : not found
FONT SDL_ttf.h libSDL2_ttf.so ['/usr/include', '/usr/include/SDL2', '/usr/local/include', '/usr/local/include/SDL2', '/usr/X11R6/include', '/usr/local/include/SDL2'] ['/usr/lib', '/usr/lib64', '/usr/X11R6/lib', '/usr/lib/i386-linux-gnu', '/usr/lib/x86_64-linux-gnu', '/usr/lib/arm-linux-gnueabihf/', '/usr/lib/aarch64-linux-gnu/', '/usr/local/lib', '/usr/local/lib64', '/usr/local/X11R6/lib', '/usr/local/lib/i386-linux-gnu', '/usr/local/lib/x86_64-linux-gnu', '/usr/local/lib/arm-linux-gnueabihf/', '/usr/local/lib/aarch64-linux-gnu/', '/usr/local/lib']
IMAGE : found
MIXER : not found
MIXER SDL_mixer.h libSDL2_mixer.so ['/usr/include', '/usr/include/SDL2', '/usr/local/include', '/usr/local/include/SDL2', '/usr/X11R6/include', '/usr/local/include/SDL2'] ['/usr/lib', '/usr/lib64', '/usr/X11R6/lib', '/usr/lib/i386-linux-gnu', '/usr/lib/x86_64-linux-gnu', '/usr/lib/arm-linux-gnueabihf/', '/usr/lib/aarch64-linux-gnu/', '/usr/local/lib', '/usr/local/lib64', '/usr/local/X11R6/lib', '/usr/local/lib/i386-linux-gnu', '/usr/local/lib/x86_64-linux-gnu', '/usr/local/lib/arm-linux-gnueabihf/', '/usr/local/lib/aarch64-linux-gnu/', '/usr/local/lib']
PNG : found
JPEG : found
SCRAP : found
PORTMIDI: not found
PORTMIDI portmidi.h libportmidi.so ['/usr/include', '/usr/include/SDL2', '/usr/local/include', '/usr/local/include/SDL2', '/usr/X11R6/include', '/usr/local/include/SDL2'] ['/usr/lib', '/usr/lib64', '/usr/X11R6/lib', '/usr/lib/i386-linux-gnu', '/usr/lib/x86_64-linux-gnu', '/usr/lib/arm-linux-gnueabihf/', '/usr/lib/aarch64-linux-gnu/', '/usr/local/lib', '/usr/local/lib64', '/usr/local/X11R6/lib', '/usr/local/lib/i386-linux-gnu', '/usr/local/lib/x86_64-linux-gnu', '/usr/local/lib/arm-linux-gnueabihf/', '/usr/local/lib/aarch64-linux-gnu/', '/usr/local/lib']
PORTTIME: not found
PORTTIME porttime.h libporttime.so ['/usr/include', '/usr/include/SDL2', '/usr/local/include', '/usr/local/include/SDL2', '/usr/X11R6/include', '/usr/local/include/SDL2'] ['/usr/lib', '/usr/lib64', '/usr/X11R6/lib', '/usr/lib/i386-linux-gnu', '/usr/lib/x86_64-linux-gnu', '/usr/lib/arm-linux-gnueabihf/', '/usr/lib/aarch64-linux-gnu/', '/usr/local/lib', '/usr/local/lib64', '/usr/local/X11R6/lib', '/usr/local/lib/i386-linux-gnu', '/usr/local/lib/x86_64-linux-gnu', '/usr/local/lib/arm-linux-gnueabihf/', '/usr/local/lib/aarch64-linux-gnu/', '/usr/local/lib']
FREETYPE: found 23.1.17
---
For help with compilation see:
https://www.pygame.org/wiki/Compilation
To contribute to pygame development see:
https://www.pygame.org/contribute.html
---
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
--- End code ---
You'll need these libraries and headders, which are not provided by TC repo.
You have to build them from source if you really want pygame.
--- Code: ---SDL_ttf.h libSDL2_ttf.so
SDL_mixer.h libSDL2_mixer.so
portmidi.h libportmidi.so
porttime.h libporttime.so
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version