nir / jupylet

Python game programming in Jupyter notebooks.

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"SystemError: error return without exception set" when creating App

gmseabra opened this issue · comments

Hi,

I'm trying to run jupylet on Windows, with Python 3.9.1. After installing the libraries following the instructions on the docs, if I try to run any example that creates an App I am getting the error:

app = App()
---------------------------------------------------------------------------
SystemError                               Traceback (most recent call last)
<ipython-input-5-91042f890017> in <module>
----> 1 app = App()

~\Source\Repos\jupylet\jupylet\app.py in __init__(self, width, height, mode, resource_dir, quality, **kwargs)
    236 
    237         shader = set_shader_2d(self.load_program('shaders/sprite.glsl'))
--> 238         shader['projection'].write(glm.ortho(
    239             0, width, 0, height, -1, 1
    240         ))

~\Miniconda3\envs\jupylet\lib\site-packages\moderngl\program_members\uniform.py in write(self, data)
    176         '''
    177 
--> 178         self.mglo.data = data

SystemError: error return without exception set

Any idea what could be wrong?

Thank you!

Hi, jupylet is only compatible with python 3.6, 3.7 or 3.8 since some of its dependencies do not support python 3.9 yet.

If you install the conda distribution of python you can easily setup differnet environments each with a different version of python.

How did you install it?

Hi,

Thanks for the fast answer! I had installed in a conda env that I created. By default it created the env with Python 3.9 \o/.

I tried again with a fresh env created with

$ conda create -n jupylet python=3.8

and follow the remaining instructions, and now it works fine.

Thanks!

Nice.

Recent pypi packages of Jupylet declare they require python < 3.9 and I "yanked" the older versions in pypi.

Thanks to your heads up I now see that for some reason pip on python 3.9 just skips the new versions that it cannot install and silently tries to install an older yanked version. Will try to think what to do about it.

Thanks for this report.