eduble / gl Goto Github PK
View Code? Open in Web Editor NEWOpenGL headless on linux (EGL)
License: BSD 3-Clause "New" or "Revised" License
OpenGL headless on linux (EGL)
License: BSD 3-Clause "New" or "Revised" License
File "/gl-master/main.py", line 18, in main
if not ctx.initialize(WIDTH, HEIGHT):
File "/gl-master/libegl/context.py", line 10, in initialize
if not self.initialize_on_device(device, width, height):
File "/gl-master/libegl/context.py", line 29, in initialize_on_device
if not egl.eglInitialize(egl_dpy, pointer(major), pointer(minor)):
File "/var/lang/lib/python3.8/site-packages/OpenGL/platform/baseplatform.py", line 415, in __call__
return self( *args, **named )
File "/var/lang/lib/python3.8/site-packages/OpenGL/error.py", line 230, in glCheckError
raise self._errorClass(
OpenGL.raw.EGL._errors.EGLError: EGLError(
err = EGL_BAD_DISPLAY,
baseOperation = eglInitialize,
cArguments = (
<OpenGL._opaque.EGLDisplay_pointer object at 0x7f0a07af5e40>,
<OpenGL.arrays.arraydatatype.LP_c_int object at 0x7f0a07a8c0c0>,
<OpenGL.arrays.arraydatatype.LP_c_int object at 0x7f0a07a8c140>,
),
result = 0
)
You know what may be causing this bug?
Thank for your example,I find this error.
Traceback (most recent call last):
File "./main.py", line 26, in
main()
File "./main.py", line 18, in main
if not ctx.initialize(WIDTH, HEIGHT):
File "/test/liwei/PIFu-master/gl-master/libegl/context.py", line 10, in initialize
if not self.initialize_on_device(device, width, height):
File "/test/liwei/PIFu-master/gl-master/libegl/context.py", line 15, in initialize_on_device
print("selected: " + device.name)
File "/test/liwei/PIFu-master/gl-master/libegl/devices/generic.py", line 55, in name
return "EGL device " + devstr.decode('ASCII')
AttributeError: 'NoneType' object has no attribute 'decode'
Hi, i want to run opengl without x-server, and i find that our code is the python version of this link, https://developer.nvidia.com/blog/egl-eye-opengl-visualization-without-x-server/
But saddly that i can not run main.py in my server, the error message is as follows:
apt install libgl1-mesa-dri libegl1-mesa libgbm1
pip install pyopengl numpy
pip install wheel
All the command that referenced in the readme have been excuted.
the nvidia-smi info is as follows:
Do you have any suggestions?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.