nir / jupylet

Python game programming in Jupyter notebooks.

Home Page:https://jupylet.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running as stand-alone script on Windows

vsavenkov opened this issue · comments

When run as a stand-alone script on Windows 10 (Python 3.7.9), example programs just die silently after the first jupylet import (e.g. from jupylet.sprite import Sprite in spaceship.py)

Works as expected on my system:

>ipython
Python 3.7.9 (default, Aug 31 2020, 17:10:11) [MSC v.1916 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import platform

In [2]: platform.platform()
Out[2]: 'Windows-10-10.0.16299-SP0'

What build of Windows 10 are you using?
Are you using the latest version of Jupylet (0.8.3) ?

Make sure to install it with: pip install --upgrade jupylet

Make sure to update the archive with the examples too to the latest version, since the game script loads the jupylet library from the archive itself.

Thanks for this report!

Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import platform

In [2]: platform.platform()
Out[2]: 'Windows-10-10.0.18362-SP0'

The spaceship notebook runs fine in Jupyter, but "python spaceship.py" just waits and then dies silently (also tried it on a fresh virtual environment).

What if you try:

$ python spaceship.py --window glfw

Does it work?

1608124830574395105989

works for me on a slightly more updated windows 10 as well.