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
527 stars 191 forks source link

Importing pygame zero breaks it #303

Open profK opened 1 year ago

profK commented 1 year ago

I suspect this is a python 2 to python 3 issue, but you cannot import the pygame zero symbols or it stops working.

This is a problem in IDEs because they complain about references to unimported classes and objects.

arganoid commented 1 year ago

I don't get this on mine, my code starts "import pygame, pgzero, pgzrun" and it's fine. What kind of system do you have, Python version, etc?

profK commented 1 year ago

Python 10.3 Pycharm Community/Educational 2022.2.1

pgzero is installed with pip and is v. 1.2.1. It pulls in pygame 2.1.2

I can make a simple example in the next few days and post it

On Mon, Oct 31, 2022 at 8:41 AM Andrew Gillett @.***> wrote:

I don't get this on mine, my code starts "import pygame, pgzero, pgzrun" and it's fine. What kind of system do you have, Python version, etc?

— Reply to this email directly, view it on GitHub https://github.com/lordmauve/pgzero/issues/303#issuecomment-1297028432, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA64NZMXHUXNLCSFLMVNXPDWF65BFANCNFSM6AAAAAAREUO74U . You are receiving this because you authored the thread.Message ID: @.***>

-- It's always darkest just before you are eaten by a grue.