jupylet icon indicating copy to clipboard operation
jupylet copied to clipboard

Running as stand-alone script on Windows

Open vsavenkov opened this issue 4 years ago • 4 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)

vsavenkov avatar Dec 08 '20 17:12 vsavenkov

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!

nir avatar Dec 08 '20 18:12 nir

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).

vsavenkov avatar Dec 09 '20 13:12 vsavenkov

What if you try:

$ python spaceship.py --window glfw

Does it work?

nir avatar Dec 10 '20 18:12 nir

1608124830574395105989

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

nir avatar Dec 16 '20 13:12 nir