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

AttributeError: 'NoneType' object has no attribute 'decode' #221

Closed
aoyang-hd opened this issue Aug 30, 2023 · 3 comments
Closed

AttributeError: 'NoneType' object has no attribute 'decode' #221

aoyang-hd opened this issue Aug 30, 2023 · 3 comments

Comments

@aoyang-hd
Copy link

Python 3.8.13 (default, Oct 21 2022, 23:50:54)
[GCC 11.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.

from animated_drawings import render
render.start('./examples/config/mvc/export_mp4_example.yaml')
/home/cv/.conda/envs/animated_drawings/lib/python3.8/site-packages/glfw/init.py:912: GLFWError: (65544) b'X11: Failed to open display localhost:13.0'
warnings.warn(message, GLFWError)
/home/cv/.conda/envs/animated_drawings/lib/python3.8/site-packages/glfw/init.py:912: GLFWError: (65537) b'The GLFW library is not initialized'
warnings.warn(message, GLFWError)
Traceback (most recent call last):
File "", line 1, in
File "/data/cv/aoyang/AnimatedDrawings/animated_drawings/render.py", line 17, in start
view = View.create_view(cfg.view)
File "/data/cv/aoyang/AnimatedDrawings/animated_drawings/view/view.py", line 47, in create_view
return WindowView(view_cfg)
File "/data/cv/aoyang/AnimatedDrawings/animated_drawings/view/window_view.py", line 34, in init
self._create_window(*cfg.window_dimensions) # pyright: ignore[reportGeneralTypeIssues]
File "/data/cv/aoyang/AnimatedDrawings/animated_drawings/view/window_view.py", line 126, in _create_window
logging.info(f'OpenGL Version: {GL.glGetString(GL.GL_VERSION).decode()}') # pyright: ignore[reportGeneralTypeIssues]
AttributeError: 'NoneType' object has no attribute 'decode'

@yihleego
Copy link
Contributor

See:
#128
#99 (comment)

@aoyang-hd
Copy link
Author

I have solve it
#99 (comment)

@JiepengTan
Copy link

open file ./examples/annotations_to_animation.py
add one line code :
'view': {'USE_MESA':True}, # use MESA for headless server

in here
image

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

3 participants