ish-app / ish-app/ish

Unable to import Pygame Python Module

Open
#2,268 0 comments 0 reactions 0 assignees View on GitHub
unconfirmed
Dominant language
C
Stars
20.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

After installing `sudo` and `pip`, when trying to run `pip install pygame` I get the following error, (attached as a text file, hopefully). It would be great if anylinux applications could run on Alpine.

[localhost:~# pip install pygame
Collecting pygame
Using cached pygame-2.5.2.tar.gz (15.8 MB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jgah67os/pygame_fa3d710309cf4972b8ed7d5f8e6244d1/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jgah67os/pygame_fa3d710309cf4972b8ed7d5f8e6244d1/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-purpn_zu
cwd: /tmp/pip-install-jgah67os/pygame_fa3d710309cf4972b8ed7d5f8e6244d1/
Complete output (33 lines):
Skipping Cython compilation


WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using UNIX configuration...

/bin/sh: dpkg-architecture: not found
/bin/sh: gcc: not found
/bin/sh: gcc: not found
/bin/sh: sdl2-config: not found
/bin/sh: sdl2-config: not found
/bin/sh: sdl2-config: not found
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-jgah67os/pygame_fa3d710309cf4972b8ed7d5f8e6244d1/setup.py", line 409, in
buildconfig.config.main(AUTO_CONFIG)
File "/tmp/pip-install-jgah67os/pygame_fa3d710309cf4972b8ed7d5f8e6244d1/buildconfig/config.py", line 231, in main
deps = CFG.main(**kwds, auto_config=auto)
File "/tmp/pip-install-jgah67os/pygame_fa3d710309cf4972b8ed7d5f8e6244d1/buildconfig/config_unix.py", line 218, in main
DependencyProg('SDL', 'SDL_CONFIG', 'sdl2-config', '2.0', ['sdl']),
File "/tmp/pip-install-jgah67os/pygame_fa3d710309cf4972b8ed7d5f8e6244d1/buildconfig/config_unix.py", line 43, in __init__
self.ver = config[0].strip()
IndexError: list index out of range

Hunting dependencies...

---
For help with compilation see:
https://www.pygame.org/wiki/Compilation
To contribute to pygame development see:
https://www.pygame.org/contribute.html
---

----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/c6/aa/2c0c867d6cff00966cfc2152b25f61599f87e88b239e4dcb8ad5357f0f69/pygame-2.5.2.tar.gz#sha256=c1b89eb5d539e7ac5cf75513125fb5f2f0a2d918b1fd6e981f23bf0ac1b1c24a (from https://pypi.org/simple/pygame/) (requires-python:>=3.6). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.](errormessage.txt)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.