ish-app / ish

Linux shell for iOS
https://ish.app
Other
16.34k stars 856 forks source link

Unable to import Pygame Python Module #2268

Open ve-cto opened 7 months ago

ve-cto commented 7 months ago

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 "<string>", line 1, in <module>
  File "/tmp/pip-install-jgah67os/pygame_fa3d710309cf4972b8ed7d5f8e6244d1/setup.py", line 409, in <module>
    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)