lordmauve / pgzero

A zero-boilerplate games programming framework for Python 3, based on Pygame.
https://pygame-zero.readthedocs.io/
GNU Lesser General Public License v3.0
530 stars 190 forks source link

Cannot install pgzero #231

Closed timension closed 3 years ago

timension commented 3 years ago

Have Python 3.9 and Pygame 2.0 installed. However, when I try to install Pygame Zero by typing pip install pgzero the installation exits with following error:

ERROR: Command errored out with exit status 1:

command: 'c:\users\maxim\appdata\local\programs\python\python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Maxim\AppData\Local\Temp\pip-install-rgmxyd65\pygame\setup.py'"'"'; file='"'"'C:\Users\Maxim\AppData\Local\Temp\pip-install-rgmxyd65\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 'C:\Users\Maxim\AppData\Local\Temp\pip-pip-egg-info-tg7ext7q' cwd: C:\Users\Maxim\AppData\Local\Temp\pip-install-rgmxyd65\pygame\ Complete output (17 lines):

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

Download prebuilts to "prebuilt_downloads" and copy to "./prebuilt-x64"? [Y/n]Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\Maxim\AppData\Local\Temp\pip-install-rgmxyd65\pygame\setup.py", line 194, in <module>
    buildconfig.config.main(AUTO_CONFIG)
  File "C:\Users\Maxim\AppData\Local\Temp\pip-install-rgmxyd65\pygame\buildconfig\config.py", line 210, in main
    deps = CFG.main(**kwds)
  File "C:\Users\Maxim\AppData\Local\Temp\pip-install-rgmxyd65\pygame\buildconfig\config_win.py", line 576, in main
    and download_win_prebuilt.ask(**download_kwargs):
  File "C:\Users\Maxim\AppData\Local\Temp\pip-install-rgmxyd65\pygame\buildconfig\download_win_prebuilt.py", line 302, in ask
    reply = raw_input(
EOFError: EOF when reading a line
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

What is wrong and how can I avoid the error?

Redysz commented 3 years ago

Workaround: pip install pygame==2.0.0 then pip install pgzero --no-deps

timension commented 3 years ago

Workaround: pip install pygame==2.0.0 then pip install pgzero --no-deps

Thank you Redysz! It worked! 👍

jhutar commented 3 years ago

Hello. Or you can use devel version where it is fixed:

pip install git+https://github.com/lordmauve/pgzero.git
frenzymadness commented 3 years ago

Wouldn't it be better to release a new version of pgzero? The latest release is from 2018.

lordmauve commented 3 years ago

I've released a new version 1.2.1.