-
Notifications
You must be signed in to change notification settings - Fork 172
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
Some error I got #126
Comments
I also have this question.Did you fix this? |
I think OSMesa is not installed in your system, that's why you are facing this error
on Ubuntu/Debian: on Windows: No need to install dependencies - the binary gem includes everything or But I think the above command will solve the issue for sure |
I run the command : python demo.py --checkpoint=data/model_checkpoint.pt --img=examples/im1010.jpg
bue after that Igot this error.
Traceback (most recent call last):
File "demo.py", line 36, in
from utils.renderer import Renderer
File "C:\Users\Sam\PycharmProjects\photowakeup\SPIN-master\utils\renderer.py", line 6, in
import pyrender
File "C:\Users\Sam\PycharmProjects\photowakeup\venv\lib\site-packages\pyrender_init_.py", line 3, in
from .light import Light, PointLight, DirectionalLight, SpotLight
File "C:\Users\Sam\PycharmProjects\photowakeup\venv\lib\site-packages\pyrender\light.py", line 10, in
from OpenGL.GL import *
File "C:\Users\Sam\PycharmProjects\photowakeup\venv\lib\site-packages\OpenGL\GL_init_.py", line 3, in
from OpenGL import error as _error
File "C:\Users\Sam\PycharmProjects\photowakeup\venv\lib\site-packages\OpenGL\error.py", line 12, in
from OpenGL import platform, configflags
File "C:\Users\Sam\PycharmProjects\photowakeup\venv\lib\site-packages\OpenGL\platform_init.py", line 35, in
load()
File "C:\Users\Sam\PycharmProjects\photowakeup\venv\lib\site-packages\OpenGL\platform_init.py", line 32, in _load
plugin.install(globals())
File "C:\Users\Sam\PycharmProjects\photowakeup\venv\lib\site-packages\OpenGL\platform\baseplatform.py", line 92, in install
namespace[ name ] = getattr(self,name,None)
File "C:\Users\Sam\PycharmProjects\photowakeup\venv\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in get
value = self.fget( obj )
File "C:\Users\Sam\PycharmProjects\photowakeup\venv\lib\site-packages\OpenGL\platform\osmesa.py", line 66, in GetCurrentContext
function = self.OSMesa.OSMesaGetCurrentContext
File "C:\Users\Sam\PycharmProjects\photowakeup\venv\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in get
value = self.fget( obj )
File "C:\Users\Sam\PycharmProjects\photowakeup\venv\lib\site-packages\OpenGL\platform\osmesa.py", line 60, in OSMesa
def OSMesa( self ): return self.GL
File "C:\Users\Sam\PycharmProjects\photowakeup\venv\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in get
value = self.fget( obj )
File "C:\Users\Sam\PycharmProjects\photowakeup\venv\lib\site-packages\OpenGL\platform\osmesa.py", line 28, in GL
raise ImportError("Unable to load OpenGL library", *err.args)
ImportError: ('Unable to load OpenGL library', "Could not find module 'OSMesa' (or one of its dependencies). Try using the full path with constructor syntax.", 'OSMesa', None)
It seems like some problem occored on OpenGL.
I wonder if I use a wrong version of python,which version should I use?
Or is it happened by other reason?
The text was updated successfully, but these errors were encountered: