osmesa platform not working

Richard Graham <[email protected]> Tue, 26 Jun 2018 12:29:00 -0700
Newsgroups gmane.comp.python.opengl.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============8424776844272388202==
Content-Type: multipart/alternative;
 boundary="------------B213667822E8B94E7A5C70CD"
Content-Language: en-US

This is a multi-part message in MIME format.
--------------B213667822E8B94E7A5C70CD
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Hello=2C

I am trying to get a project =28pyoptools=29 to work which requires using=
=20
pyopengl with the osmesa platform and am running into an issue=2E

I can normally import OpenGL=2EGL fine=2C however after setting the=20
environment variable PYOPENGL=5FPLATFORM=3Dosmesa it fails to load =3A

=3E=3E=3E from OpenGL=2EGL import *  Traceback =28most recent call last=29=
=3A File =22=3Cstdin=3E=22=2C line 1=2C in =3Cmodule=3E=20
File =22/usr/lib/python3=2E6/site-packages/OpenGL/GL/=5F=5Finit=5F=5F=2Epy=
=22=2C line 4=2C=20
in =3Cmodule=3E from OpenGL=2EGL=2EVERSION=2EGL=5F1=5F1 import * File=20
=22/usr/lib/python3=2E6/site-packages/OpenGL/GL/VERSION/GL=5F1=5F1=2Epy=22=
=2C line 14=2C=20
in =3Cmodule=3E from OpenGL=2Eraw=2EGL=2EVERSION=2EGL=5F1=5F1 import * File=
=20
=22/usr/lib/python3=2E6/site-packages/OpenGL/raw/GL/VERSION/GL=5F1=5F1=2Epy=
=22=2C line=20
7=2C in =3Cmodule=3E from OpenGL=2Eraw=2EGL import =5Ferrors File=20
=22/usr/lib/python3=2E6/site-packages/OpenGL/raw/GL/=5Ferrors=2Epy=22=2C li=
ne 4=2C in=20
=3Cmodule=3E =5Ferror=5Fchecker =3D =5FErrorChecker=28 =5Fp=2C =5Fp=2EGL=2E=
glGetError =29 File=20
=22/usr/lib64/python3=2E6/ctypes/=5F=5Finit=5F=5F=2Epy=22=2C line 356=2C in=
 =5F=5Fgetattr=5F=5F func=20
=3D self=2E=5F=5Fgetitem=5F=5F=28name=29 File =22/usr/lib64/python3=2E6/cty=
pes/=5F=5Finit=5F=5F=2Epy=22=2C=20
line 361=2C in =5F=5Fgetitem=5F=5F func =3D self=2E=5FFuncPtr=28=28name=5Fo=
r=5Fordinal=2C self=29=29=20
AttributeError=3A /lib64/libOSMesa=2Eso=2E8=3A undefined symbol=3A glGetErr=
or

I have tried this on a fedora 27 system and a recent arch linux system=2E=
=20
It seem like there might have been a change with libOSMesa=2C or it is=20=

trying to load the wrong library=2E Checking the symbols in libOSMesa=2Eso=
=2E8=20
using =22nm -D=22=2C I don=27t see glGetError=2C or any other similar glGet=
*=20
symbols like what I can see in libGL=2Eso=2E

Any help much appreciated=2E

Thanks=2C

--

Richard





Private Confidentiality=3A

This email =28including all attachments=29 is intended solely for the named=
 addressee=2E=20
It is confidential and may contain privileged information=2E=20
If you are not the intended recipient=2C you should not disseminate=2C dist=
ribute or copy this communication=2E=20
If you have received this communication in error=2C please notify us immedi=
ately and delete the original message=2E=20
This email is also subject to copyright=2E No part of it may be reproduced=
=2C adapted or transmitted without the consent of the copyright owner=2E=20=



--------------B213667822E8B94E7A5C70CD
Content-Type: text/html;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

=3Chtml=3E
  =3Chead=3E

    =3Cmeta http-equiv=3D=22content-type=22 content=3D=22text/html=3B chars=
et=3Dutf-8=22=3E
  =3C/head=3E
  =3Cbody text=3D=22=23000000=22 bgcolor=3D=22=23FFFFFF=22=3E
    =3Cp=3E=3Cspan class=3D=22pl-s=22=3EHello=2C=3C/span=3E=3C/p=3E
    =3Cp=3E=3Cspan class=3D=22pl-s=22=3EI am trying to get a project =28pyo=
ptools=29 to
        work which requires using pyopengl with the osmesa platform and
        am running into an issue=2E=3C/span=3E=3C/p=3E
    =3Cp=3E=3Cspan class=3D=22pl-s=22=3EI can normally import OpenGL=2EGL f=
ine=2C however
        after setting the environment variable =3C/span=3E=3Cspan
        class=3D=22pl-s=22=3E=3Cspan class=3D=22pl-s=22=3EPYOPENGL=5FPLATFO=
RM=3Dosmesa it
          fails to load =3A=3C/span=3E=3C/span=3E=3Cspan class=3D=22pl-s=22=
=3E=3C/span=3E=3Cbr=3E
      =3Cspan class=3D=22pl-s=22=3E=3C/span=3E=3C/p=3E
    =3Cpre=3E=3Cspan class=3D=22pl-s=22=3E=26gt=3B=26gt=3B=26gt=3B from Ope=
nGL=2EGL import *
Traceback =28most recent call last=29=3A
  File =22=26lt=3Bstdin=26gt=3B=22=2C line 1=2C in =26lt=3Bmodule=26gt=3B=

  File =22/usr/lib/python3=2E6/site-packages/OpenGL/GL/=5F=5Finit=5F=5F=2Ep=
y=22=2C line 4=2C in =26lt=3Bmodule=26gt=3B
    from OpenGL=2EGL=2EVERSION=2EGL=5F1=5F1 import *
  File =22/usr/lib/python3=2E6/site-packages/OpenGL/GL/VERSION/GL=5F1=5F1=
=2Epy=22=2C line 14=2C in =26lt=3Bmodule=26gt=3B
    from OpenGL=2Eraw=2EGL=2EVERSION=2EGL=5F1=5F1 import *
  File =22/usr/lib/python3=2E6/site-packages/OpenGL/raw/GL/VERSION/GL=5F1=
=5F1=2Epy=22=2C line 7=2C in =26lt=3Bmodule=26gt=3B
    from OpenGL=2Eraw=2EGL import =5Ferrors
  File =22/usr/lib/python3=2E6/site-packages/OpenGL/raw/GL/=5Ferrors=2Epy=
=22=2C line 4=2C in =26lt=3Bmodule=26gt=3B
    =5Ferror=5Fchecker =3D =5FErrorChecker=28 =5Fp=2C =5Fp=2EGL=2EglGetErro=
r =29
  File =22/usr/lib64/python3=2E6/ctypes/=5F=5Finit=5F=5F=2Epy=22=2C line 35=
6=2C in =5F=5Fgetattr=5F=5F
    func =3D self=2E=5F=5Fgetitem=5F=5F=28name=29
  File =22/usr/lib64/python3=2E6/ctypes/=5F=5Finit=5F=5F=2Epy=22=2C line 36=
1=2C in =5F=5Fgetitem=5F=5F
    func =3D self=2E=5FFuncPtr=28=28name=5For=5Fordinal=2C self=29=29
AttributeError=3A /lib64/libOSMesa=2Eso=2E8=3A undefined symbol=3A glGetErr=
or
=3C/span=3E
=3C/pre=3E
    I have tried this on a fedora 27 system and a recent arch linux
    system=2E It seem like there might have been a change with libOSMesa=2C=

    or it is trying to load the wrong library=2E Checking the symbols in
    libOSMesa=2Eso=2E8 using =22nm -D=22=2C I don=27t see glGetError=2C or=
 any other
    similar glGet* symbols like what I can see in libGL=2Eso=2E=3Cbr=3E
    =3Cpre=3E=3Cspan class=3D=22pl-s=22=3E=3C/span=3E=3C/pre=3E
    =3Cp=3E=3Cspan class=3D=22pl-s=22=3E=3C/span=3E=3C/p=3E
    =3Cp=3E=3Cspan class=3D=22pl-s=22=3EAny help much appreciated=2E=3C/spa=
n=3E=3C/p=3E
    =3Cp=3E=3Cspan class=3D=22pl-s=22=3EThanks=2C=3C/span=3E=3C/p=3E
    =3Cp=3E=3Cspan class=3D=22pl-s=22=3E--=3C/span=3E=3C/p=3E
    =3Cp=3E=3Cspan class=3D=22pl-s=22=3ERichard=3C/span=3E=3C/p=3E
    =3Cp=3E=3Cspan class=3D=22pl-s=22=3E=3Cbr=3E
      =3C/span=3E=3C/p=3E
 =20=
=3CBR /=3E
=3CBR /=3E
=3CHR /=3E
=3CBR /=3E
Private=26nbsp=3BConfidentiality=3A=3CBR /=3E
=3CBR /=3E
This=26nbsp=3Bemail=26nbsp=3B=28including=26nbsp=3Ball=26nbsp=3Battachments=
=29=26nbsp=3Bis=26nbsp=3Bintended=26nbsp=3Bsolely=26nbsp=3Bfor=26nbsp=3Bthe=
=26nbsp=3Bnamed=26nbsp=3Baddressee=2E=26nbsp=3B=3CBR /=3E
It=26nbsp=3Bis=26nbsp=3Bconfidential=26nbsp=3Band=26nbsp=3Bmay=26nbsp=3Bcon=
tain=26nbsp=3Bprivileged=26nbsp=3Binformation=2E=26nbsp=3B=3CBR /=3E
If=26nbsp=3Byou=26nbsp=3Bare=26nbsp=3Bnot=26nbsp=3Bthe=26nbsp=3Bintended=26=
nbsp=3Brecipient=2C=26nbsp=3Byou=26nbsp=3Bshould=26nbsp=3Bnot=26nbsp=3Bdiss=
eminate=2C=26nbsp=3Bdistribute=26nbsp=3Bor=26nbsp=3Bcopy=26nbsp=3Bthis=26nb=
sp=3Bcommunication=2E=26nbsp=3B=3CBR /=3E
If=26nbsp=3Byou=26nbsp=3Bhave=26nbsp=3Breceived=26nbsp=3Bthis=26nbsp=3Bcomm=
unication=26nbsp=3Bin=26nbsp=3Berror=2C=26nbsp=3Bplease=26nbsp=3Bnotify=26n=
bsp=3Bus=26nbsp=3Bimmediately=26nbsp=3Band=26nbsp=3Bdelete=26nbsp=3Bthe=26n=
bsp=3Boriginal=26nbsp=3Bmessage=2E=26nbsp=3B=3CBR /=3E
This=26nbsp=3Bemail=26nbsp=3Bis=26nbsp=3Balso=26nbsp=3Bsubject=26nbsp=3Bto=
=26nbsp=3Bcopyright=2E=26nbsp=3BNo=26nbsp=3Bpart=26nbsp=3Bof=26nbsp=3Bit=26=
nbsp=3Bmay=26nbsp=3Bbe=26nbsp=3Breproduced=2C=26nbsp=3Badapted=26nbsp=3Bor=
=26nbsp=3Btransmitted=26nbsp=3Bwithout=26nbsp=3Bthe=26nbsp=3Bconsent=26nbsp=
=3Bof=26nbsp=3Bthe=26nbsp=3Bcopyright=26nbsp=3Bowner=2E=26nbsp=3B=3CBR /=3E=

=3CBR /=3E
=3C/body=3E
=3C/html=3E


--------------B213667822E8B94E7A5C70CD--



--===============8424776844272388202==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--===============8424776844272388202==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-users

--===============8424776844272388202==--