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

Running as stand-alone script on Windows #22

Open
vsavenkov opened this issue Dec 8, 2020 · 4 comments
Open

Running as stand-alone script on Windows #22

vsavenkov opened this issue Dec 8, 2020 · 4 comments

Comments

@vsavenkov
Copy link

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)

@nir
Copy link
Owner

nir commented Dec 8, 2020

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!

@vsavenkov
Copy link
Author

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

@nir
Copy link
Owner

nir commented Dec 10, 2020

What if you try:

$ python spaceship.py --window glfw

Does it work?

@nir
Copy link
Owner

nir commented Dec 16, 2020

1608124830574395105989

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants