Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install pygame in gitpod #17

Open
YatinAdityaT opened this issue Jul 19, 2020 · 1 comment
Open

Can't install pygame in gitpod #17

YatinAdityaT opened this issue Jul 19, 2020 · 1 comment

Comments

@YatinAdityaT
Copy link

I can't run the project in gitpod because of this installation error:

gitpod /workspace/NEAT-Flappy-Bird $  HISTFILE=/workspace/.gitpod/cmd-0 history -r; {
> pip3 install -r requirements.txt
> } && {
> python3 flappy_bird.py
> }
Collecting numpy
  Downloading numpy-1.19.0-cp38-cp38-manylinux2010_x86_64.whl (14.6 MB)
     |████████████████████████████████| 14.6 MB 4.5 MB/s 
Collecting pygame
  Downloading pygame-1.9.6.tar.gz (3.2 MB)
     |████████████████████████████████| 3.2 MB 25.1 MB/s 
    ERROR: Command errored out with exit status 1:
     command: /home/gitpod/.pyenv/versions/3.8.3/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-69qddxjx/pygame/setup.py'"'"'; __file__='"'"'/tmp/pip-install-69qddxjx/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-xy9_mix1
         cwd: /tmp/pip-install-69qddxjx/pygame/
    Complete output (12 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!
    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.

Quoting this Stack Exchange answer:

The currently official pygame 1.9.6 is not compatible with Python 3.8

@edzhuang
Copy link

none of the built-in environments have a python 3 version less than 3.8, either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants