- Code: Select all
#version 120
Moderator: joepal
#version 120
jujube wrote:Update: I installed pycharm, and I'm trying to use it to run the openGL test cases scripts. They don't produce error messages*, but they don't launch any canvases either.
*or I think they don't... I'm not sure what the exit codes mean.
They all print this:
- Code: Select all
EFFECTIVE QT VERSION : 5.10.1
REQUESTED GL VERSION : (2, 0)
... snip
I am using Windows 7.
...snip
Process finished with exit code -1073741819 (0xC0000005)
The one error message I get is when running the genericgl init
- Code: Select all
Traceback (most recent call last):
File "C:/gl-test-cases-master/genericgl/__init__.py", line 5, in <module>
from .testapplication import TestApplication
SystemError: Parent module '' not loaded, cannot perform relative import
cd gl_test_cases
export PYTHONPATH=`pwd`
Aranuvir wrote:Can you try to add:to all *.glsl files as the first line and see if it helps?
- Code: Select all
#version 120
EFFECTIVE QT VERSION : 5.10.1
REQUESTED GL VERSION : (2, 0)
Process finished with exit code -1073741819 (0xC0000005)
joepal wrote:I think possibly it's time to write a more verbose post about what we're trying to do with these things. It'll be near impossible to figure that out from just looking at the source code of the refactor branch.
RobBaer wrote:joepal wrote:I think possibly it's time to write a more verbose post about what we're trying to do with these things. It'll be near impossible to figure that out from just looking at the source code of the refactor branch.
@Jujube
At the risk of being the one who is confused, I would suggest using the master branch of the repository at https://github.com/makehumancommunity/makehuman (which is essentially a working, python 3-based version of MakeHuman) for you skeleton testing work.
The _feature_refactor_opengl of the same repository and the gl-test-cases repository (https://github.com/makehumancommunity/gl-test-cases) are code snippets representing work on opengl refactoring. They are not, and not intended to be, working versions of MakeHuman. These will eventually replace parts of the master branch when all is working, and we have unraveled the code some. You are welcome/encouraged to play with these latter things as well, but they may be an unnecessary diversion from working on skeletons if that is your main focus.
unable to save file C:/Users/[name]/Documents/makehuman/v1py3/settings.ini
Traceback (most recent call last):
File "./core\mhmain.py", line 74, in outFile
os.rename(tmppath, path)
PermissionError: [WinError 5] Access is denied: 'C:/Users/[name]/Documents/makehuman/v1py3/settings.ini.tmp' -> 'C:/Users/[name]/Documents/makehuman/v1py3/settings.ini'
unable to save file C:/Users/[name]/Documents/makehuman/v1py3/mouse.ini
Traceback (most recent call last):
File "./core\mhmain.py", line 73, in outFile
os.remove(path)
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:/Users/[name]/Documents/makehuman/v1py3/mouse.ini'
gl.draw
Traceback (most recent call last):
File "./lib\glmodule.py", line 1038, in draw
_draw(productionRender)
File "./lib\glmodule.py", line 1030, in _draw
drawMeshes(False, productionRender)
File "./lib\glmodule.py", line 1026, in drawMeshes
drawOrPick(pickMode, obj)
File "./lib\glmodule.py", line 671, in drawOrPick
obj.draw()
File "./lib\object3d.py", line 286, in draw
return glmodule.drawMesh(self, *args, **kwargs)
File "./lib\glmodule.py", line 452, in drawMesh
glDisable(GL_TEXTURE_2D)
File "C:\Users\[name]\PycharmProjects\untitled\venv\lib\site-packages\OpenGL\error.py", line 232, in glCheckError
baseOperation = baseOperation,
OpenGL.error.GLError: GLError(
err = 1281,
description = b'invalid value',
baseOperation = glDisable,
cArguments = (GL_TEXTURE_2D,)
)
jujube wrote:The compiled exe still works fine btw.
joepal wrote:jujube wrote:The compiled exe still works fine btw.
This is exceptionally strange. To my knowledge, not a whole lot changed in the master branch between the build of that exe and now.
Maybe there is something strange in the dependencies installed on your machine?
The exe is simply a bundle of python embedded (from python's home page) and numpy/pyopengl/pyqt (from pip). Running it should be equivalent of downloading python, installing these dependencies and running from source.
Clunky workaround, if the exe works while a manual source run does not: the install directory contains a source checkout. Simply overwriting this with current master should give you an up to date build that should work.
import importlib.util
import sys
spec = importlib.util.find_spec('PyQt5')
if not spec:
print('PyQt5 missing')
else:
print('PyQt5 found')
spec = importlib.util.find_spec('numpy')
if not spec:
print('Numpy missing')
else:
print('Numpy found')
spec = importlib.util.find_spec('OpenGL')
if not spec:
print('OpenGL missing')
else:
print('OpenGL found')
print('Python version :', sys.version)
Return to General discussions about makehuman
Users browsing this forum: No registered users and 3 guests