Menu

#25 PyOpenGL_accelerate fails to compile with Python 3.7+

OpenGLContext v1.0
open
nobody
None
5
2019-02-26
2019-02-26
Tomi Maila
No

The installation of PyOpenGL_accelerate fails to install on Python 3.7 on Windows 10 and later becasue the _ts struct in Python 3.7 was modified and no longer has the same members.

> pip3 --no-cache-dir install PyOpenGL_accelerate

    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\TOMIMA~1\AppData\Local\Temp\pip-install-b42xjb9j\PyOpenGL-accelerate\.. -IC:\Users\TOMIMA~1\AppData\Local\Temp\pip-install-b42xjb9j\PyOpenGL-accelerate\src -IC:\Users\TOMIMA~1\AppData\Local\Temp\pip-install-b42xjb9j\PyOpenGL-accelerate -Ic:\users\tomimaila\appdata\local\programs\python\python37\include -Ic:\users\tomimaila\appdata\local\programs\python\python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" /Tcsrc\wrapper.c /Fobuild\temp.win-amd64-3.7\Release\src\wrapper.obj
    wrapper.c
    src\wrapper.c(3919): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    src\wrapper.c(4376): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    src\wrapper.c(11474): error C2039: 'exc_type': is not a member of '_ts'
    c:\users\tomimaila\appdata\local\programs\python\python37\include\pystate.h(212): note: see declaration of '_ts'
    src\wrapper.c(11475): error C2039: 'exc_value': is not a member of '_ts'
    c:\users\tomimaila\appdata\local\programs\python\python37\include\pystate.h(212): note: see declaration of '_ts'
    src\wrapper.c(11476): error C2039: 'exc_traceback': is not a member of '_ts'
    c:\users\tomimaila\appdata\local\programs\python\python37\include\pystate.h(212): note: see declaration of '_ts'
    src\wrapper.c(11488): error C2039: 'exc_type': is not a member of '_ts'
    c:\users\tomimaila\appdata\local\programs\python\python37\include\pystate.h(212): note: see declaration of '_ts'
    src\wrapper.c(11489): error C2039: 'exc_value': is not a member of '_ts'
    c:\users\tomimaila\appdata\local\programs\python\python37\include\pystate.h(212): note: see declaration of '_ts'
    src\wrapper.c(11490): error C2039: 'exc_traceback': is not a member of '_ts'
    c:\users\tomimaila\appdata\local\programs\python\python37\include\pystate.h(212): note: see declaration of '_ts'
    src\wrapper.c(11491): error C2039: 'exc_type': is not a member of '_ts'
    c:\users\tomimaila\appdata\local\programs\python\python37\include\pystate.h(212): note: see declaration of '_ts'
    src\wrapper.c(11492): error C2039: 'exc_value': is not a member of '_ts'
    c:\users\tomimaila\appdata\local\programs\python\python37\include\pystate.h(212): note: see declaration of '_ts'
    src\wrapper.c(11493): error C2039: 'exc_traceback': is not a member of '_ts'
    c:\users\tomimaila\appdata\local\programs\python\python37\include\pystate.h(212): note: see declaration of '_ts'
    src\wrapper.c(11536): error C2039: 'exc_type': is not a member of '_ts'
    c:\users\tomimaila\appdata\local\programs\python\python37\include\pystate.h(212): note: see declaration of '_ts'
    src\wrapper.c(11537): error C2039: 'exc_value': is not a member of '_ts'
    c:\users\tomimaila\appdata\local\programs\python\python37\include\pystate.h(212): note: see declaration of '_ts'
    src\wrapper.c(11538): error C2039: 'exc_traceback': is not a member of '_ts'
    c:\users\tomimaila\appdata\local\programs\python\python37\include\pystate.h(212): note: see declaration of '_ts'
    src\wrapper.c(11539): error C2039: 'exc_type': is not a member of '_ts'
    c:\users\tomimaila\appdata\local\programs\python\python37\include\pystate.h(212): note: see declaration of '_ts'
    src\wrapper.c(11540): error C2039: 'exc_value': is not a member of '_ts'
    c:\users\tomimaila\appdata\local\programs\python\python37\include\pystate.h(212): note: see declaration of '_ts'
    src\wrapper.c(11541): error C2039: 'exc_traceback': is not a member of '_ts'
    c:\users\tomimaila\appdata\local\programs\python\python37\include\pystate.h(212): note: see declaration of '_ts'
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2

    ----------------------------------------
Command "c:\users\tomimaila\appdata\local\programs\python\python37\python3.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\TOMIMA~1\\AppData\\Local\\Temp\\pip-install-b42xjb9j\\PyOpenGL-accelerate\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\TOMIMA~1\AppData\Local\Temp\pip-record-pr2nznbv\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\TOMIMA~1\AppData\Local\Temp\pip-install-b42xjb9j\PyOpenGL-accelerate\

Discussion


Log in to post a comment.