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

pip install -r requirements.txt failing at pygame==2.1.2 #3023

Closed
xmfan opened this issue Sep 1, 2024 · 0 comments · Fixed by #3025
Closed

pip install -r requirements.txt failing at pygame==2.1.2 #3023

xmfan opened this issue Sep 1, 2024 · 0 comments · Fixed by #3025
Labels
bug build issue Issues relating to the tutorials build

Comments

@xmfan
Copy link
Member

xmfan commented Sep 1, 2024

Add Link

Not about a tutorial

Describe the bug

pip install -r requirements.txt

Collecting pygame==2.1.2 (from -r requirements.txt (line 67))                                                                                                                                                                     
  Using cached pygame-2.1.2.tar.gz (10.1 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error                                                                            
                                        
  × python setup.py egg_info did not run successfully.                                                           
  │ exit code: 1                                                                                                 
  ╰─> [33 lines of output]                                                                                       
                                                                                                                 
                                                                                                                 
      WARNING, No "Setup" File Exists, Running "buildconfig/config.py"                                           
      Using UNIX configuration...                                                                                
                                                                                                                 
      /bin/sh: line 1: sdl2-config: command not found                                                            
      /bin/sh: line 1: sdl2-config: command not found                                                            
      /bin/sh: line 1: sdl2-config: command not found                                                            
      Traceback (most recent call last):                                                                         
        File "<string>", line 2, in <module>                                                                     
        File "<pip-setuptools-caller>", line 34, in <module>                                                     
        File "/tmp/pip-install-lheiovkb/pygame_804550a7c8384bb896ee4dd8e008a476/setup.py", line 359, in <module> 
          buildconfig.config.main(AUTO_CONFIG)                                                                   
        File "/tmp/pip-install-lheiovkb/pygame_804550a7c8384bb896ee4dd8e008a476/buildconfig/config.py", line 225, in main
          deps = CFG.main(**kwds)                                                                                
                 ^^^^^^^^^^^^^^^^                                                                                                                                                                                                 
        File "/tmp/pip-install-lheiovkb/pygame_804550a7c8384bb896ee4dd8e008a476/buildconfig/config_unix.py", line 188, in main
          DependencyProg('SDL', 'SDL_CONFIG', 'sdl2-config', '2.0', ['sdl']),                                    
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                               
        File "/tmp/pip-install-lheiovkb/pygame_804550a7c8384bb896ee4dd8e008a476/buildconfig/config_unix.py", line 39, 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                                                                 
      ---                                                                                                        
                                                                                                                 
      [end of output]                                                                                            
                                                                                                                 
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed                                                                                
                                                                                                                 
× Encountered error while generating package metadata.                                                           
╰─> See above for output.

Describe your environment

Running locally from a clean py311 conda environment

@xmfan xmfan added the bug label Sep 1, 2024
@svekars svekars added the build issue Issues relating to the tutorials build label Sep 3, 2024
svekars added a commit that referenced this issue Sep 3, 2024
malfet pushed a commit that referenced this issue Sep 4, 2024
This allows one to install pygame binaries for Python-3.11/3.12 runtime, while PyGame-2.1.2 was only available up to python-3.10, see https://pypi.org/project/pygame/2.1.2/#files

Fixes #3023
c-p-i-o pushed a commit that referenced this issue Sep 6, 2024
This allows one to install pygame binaries for Python-3.11/3.12 runtime, while PyGame-2.1.2 was only available up to python-3.10, see https://pypi.org/project/pygame/2.1.2/#files

Fixes #3023
c-p-i-o pushed a commit that referenced this issue Sep 6, 2024
This allows one to install pygame binaries for Python-3.11/3.12 runtime, while PyGame-2.1.2 was only available up to python-3.10, see https://pypi.org/project/pygame/2.1.2/#files

Fixes #3023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug build issue Issues relating to the tutorials build
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants