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

Complains about 'pygame' not present in requirements.txt #2478

Open
dr0id opened this issue Sep 30, 2023 · 3 comments
Open

Complains about 'pygame' not present in requirements.txt #2478

dr0id opened this issue Sep 30, 2023 · 3 comments
Labels
bug Not working as intended discussion PyCharm

Comments

@dr0id
Copy link
Contributor

dr0id commented Sep 30, 2023

Environment:

Windows
PyCharm 2023.2.1 (Community Edition)
python 3.11

image

The IDE complains about 'pygame' not being in the requirements.txt, which looks like this:

pygame-ce==2.3.2

AFAIK I could suppress this warning, but then I would have to do it in every file. Maybe another workaround exists that I'm not aware of. There might also be other tools that might have similar warnings or even worse, if the requirements.txt is generate from the code, it will probably contain 'pygame' instead of 'pygame-ce'.

Not sure if this can be fixed because pygame-ce has been designed as a drop-in replacement for pygame.

Possible solution/idea:
Actually, i would not mind to write import pygamece for new projects. But this would probably mean a different package to install.

@dr0id dr0id added bug Not working as intended discussion labels Sep 30, 2023
@JiffyRob
Copy link
Contributor

I have this problem too. I'm using the snap release of pycharm on debian.

@Starbuck5
Copy link
Member

The question is how to do other libraries with different install vs import names work? Like (opencv-python / opencv) or (Pillow / PIL)

@MyreMylar
Copy link
Member

This has to be fixed on PyCharm's side. I've added a request to this issue here:
https://youtrack.jetbrains.com/issue/PY-27985

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended discussion PyCharm
Projects
None yet
Development

No branches or pull requests

4 participants