You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
I expect no errors and for p5 to be imported.
Screenshots
❯ python
Python 3.9.7 (default, Sep 16 2021, 13:09:58)
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import p3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'p3'
>>> import p5
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/dparvaz/.local/lib/python3.9/site-packages/p5/__init__.py", line 19, in <module>
from .sketch import *
File "/home/dparvaz/.local/lib/python3.9/site-packages/p5/sketch/__init__.py", line 21, in <module>
from .userspace import *
File "/home/dparvaz/.local/lib/python3.9/site-packages/p5/sketch/userspace.py", line 30, in <module>
from .base import Sketch
File "/home/dparvaz/.local/lib/python3.9/site-packages/p5/sketch/base.py", line 26, in <module>
from ..core import p5
File "/home/dparvaz/.local/lib/python3.9/site-packages/p5/core/__init__.py", line 18, in <module>
from .structure import *
File "/home/dparvaz/.local/lib/python3.9/site-packages/p5/core/structure.py", line 21, in <module>
from . import primitives
File "/home/dparvaz/.local/lib/python3.9/site-packages/p5/core/primitives.py", line 28, in <module>
from .shape import PShape
File "/home/dparvaz/.local/lib/python3.9/site-packages/p5/core/shape.py", line 31, in <module>
from . import p5
File "/home/dparvaz/.local/lib/python3.9/site-packages/p5/core/p5.py", line 21, in <module>
from .tess import Tessellator
File "/home/dparvaz/.local/lib/python3.9/site-packages/p5/core/tess.py", line 1, in <module>
from OpenGL.GLU import gluNewTess, gluTessCallback, GLU_TESS_VERTEX, GLU_TESS_BEGIN, GLU_TESS_END, GLU_TESS_ERROR, \
File "/home/dparvaz/.local/lib/python3.9/site-packages/OpenGL/GLU/__init__.py", line 8, in <module>
from OpenGL.GLU.projection import *
File "/home/dparvaz/.local/lib/python3.9/site-packages/OpenGL/GLU/projection.py", line 3, in <module>
from OpenGL import GL
File "/home/dparvaz/.local/lib/python3.9/site-packages/OpenGL/GL/__init__.py", line 4, in <module>
from OpenGL.GL.VERSION.GL_1_1 import *
File "/home/dparvaz/.local/lib/python3.9/site-packages/OpenGL/GL/VERSION/GL_1_1.py", line 14, in <module>
from OpenGL.raw.GL.VERSION.GL_1_1 import *
File "/home/dparvaz/.local/lib/python3.9/site-packages/OpenGL/raw/GL/VERSION/GL_1_1.py", line 7, in <module>
from OpenGL.raw.GL import _errors
File "/home/dparvaz/.local/lib/python3.9/site-packages/OpenGL/raw/GL/_errors.py", line 4, in <module>
_error_checker = _ErrorChecker( _p, _p.GL.glGetError )
File "src/errorchecker.pyx", line 20, in OpenGL_accelerate.errorchecker._ErrorChecker.__init__
File "/home/dparvaz/.local/lib/python3.9/site-packages/OpenGL/platform/baseplatform.py", line 15, in __get__
value = self.fget( obj )
File "/home/dparvaz/.local/lib/python3.9/site-packages/OpenGL/platform/baseplatform.py", line 356, in CurrentContextIsValid
return self.GetCurrentContext
File "/home/dparvaz/.local/lib/python3.9/site-packages/OpenGL/platform/baseplatform.py", line 15, in __get__
value = self.fget( obj )
File "/home/dparvaz/.local/lib/python3.9/site-packages/OpenGL/platform/egl.py", line 106, in GetCurrentContext
return self.EGL.eglGetCurrentContext
AttributeError: 'NoneType' object has no attribute 'eglGetCurrentContext'
System information:
WSL running Ubuntu on Windows 11.
Describe the bug
Attempts to run
import p5
in python running in WSL results in the error shown in "screenshots" below.According to
apt-get
GLFW is installed, but that seems to be the point of failure.To Reproduce
Expected behavior
I expect no errors and for p5 to be imported.
Screenshots
System information:
WSL running Ubuntu on Windows 11.
The text was updated successfully, but these errors were encountered: