Skip to content
Sign upLog in
← Back to Community

Error on the packages

Profile icon
TaximinHn

Here's my error i don't why it don't work, its work on windows even
Python 3.8.1 (default, Feb 2 2020, 08:37:37)

Repl.it: Updating package configuration

--> /usr/local/bin/python3 -m poetry init --no-interaction

This command will guide you through creating your pyproject.toml config.

--> /usr/local/bin/python3 -m poetry add pygame
Using version ^1.9 for pygame

Updating dependencies
Resolving dependencies...

Writing lock file

Package operations: 1 install, 0 updates, 0 removals

  • Installing pygame (1.9.6)

[EnvCommandError]
Command ['/home/runner/.local/share/virtualenvs/python3/bin/python', '-m', '
pip', 'install', '--no-deps', 'pygame==1.9.6'] errored with the following ou
tput:
Collecting pygame==1.9.6
Downloading https://files.pythonhosted.org/packages/0f/9c/78626be04e193c06
24842090fe5555b3805c050dfaa81c8094d6441db2be/pygame-1.9.6.tar.gz (3.2MB)
ERROR: Command errored out with exit status 1:
command: /home/runner/.local/share/virtualenvs/python3/bin/python -c 'i
mport sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lvxpr03
a/pygame/setup.py'"'"'; file='"'"'/tmp/pip-install-lvxpr03a/pygame/setup
.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().r
eplace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file,
'"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: /tmp/pip-install-lvxpr03a/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 SD

L is installed.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Chec
k the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.0.2 is availab
le.
You should consider upgrading via the 'pip install --upgrade pip' command.

add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] ()...

exit status 1

Repl.it: Package operation failed.

Voters
Profile icon
TaximinHn
Comments
hotnewtop
Profile icon
RobloxVoiceChat

Replit: Updating package configuration

package.json: invalid character '"' after object key:value pair

Replit: Package operation failed.

Profile icon
NoelB33

When you create a repl you’d need to say it’s PyGame.

99FF7D17-E46E-42A0-9A71-44A8404AA117

Profile icon
TaximinHn

@NoelBryan
thx

Profile icon
NoelB33

Also you can just copy and paste the code from your old repl

@TaximinHn

Profile icon
TaximinHn

@NoelBryan
no its an uploaded folder with 4 python files and pictures but it don't seems to work, white screen without any error

Profile icon
NoelB33

It’s probably an error in your code then, would you mind linking [email protected]

Profile icon
TaximinHn

@NoelBryan
it works on windows, maybe it can't link the main file with the others ? it is possible ? or a problem with the infinite while

Profile icon
NoelB33

I’m not sure about that, sorry. I’ll try to see if that’s the case, but I don’t think it is. It could be the code because you can use the repl file system like a normal one, not sur rid you get what I mean.

@TaximinHn

Profile icon
TaximinHn

@NoelBryan
thanks a lot, but if it can't link the others, it should return an error

Profile icon
NoelB33

Do you mind sending the repl?

@TaximinHn

Profile icon
TaximinHn

@NoelBryan
thx for ur help but i find a new way to execute it