Ask coding questions

← Back to all posts
Error on the packages
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):

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] [--path PATH] [--optional] [--platform PLATFORM] [--dry-run] <name> (<name>)...

exit status 1

Repl.it: Package operation failed.

Voters
TaximinHn
Comments
hotnewtop
RobloxVoiceChat

Replit: Updating package configuration

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

Replit: Package operation failed.

NoelB33

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

TaximinHn
NoelB33

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

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

NoelB33

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

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

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

TaximinHn

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

NoelB33

Do you mind sending the repl? @TaximinHn

TaximinHn

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