Error occurred while running `from pyglet.gl import *` HINT: make sure you have OpenGL install. On Ubuntu, you can run 'apt-get install ...
Skiptocontent
{{message}}
openai
/
gym
Public
Notifications
Fork
8k
Star
28.6k
Code
Issues
13
Pullrequests
9
Actions
Projects
0
Wiki
Security
Insights
More
Code
Issues
Pullrequests
Actions
Projects
Wiki
Security
Insights
Newissue
Haveaquestionaboutthisproject?SignupforafreeGitHubaccounttoopenanissueandcontactitsmaintainersandthecommunity.
Pickausername
EmailAddress
Password
SignupforGitHub
Byclicking“SignupforGitHub”,youagreetoourtermsofserviceand
privacystatement.We’lloccasionallysendyouaccountrelatedemails.
AlreadyonGitHub?
Signin
toyouraccount
Jumptobottom
GymonMacOSXBigSur
#2101
Closed
marcelovidigalopenedthisissue
Nov18,2020
·25comments
Closed
GymonMacOSXBigSur
#2101
marcelovidigalopenedthisissue
Nov18,2020
·25comments
Comments
Copylink
marcelovidigal
commented
Nov18,2020
AfterupdatingOSallmyscriptsstoppedworking,mostoftheerrorsrelatedtopyglet,andpathstosomelibraries,someerrorsthatIcameacross:
Erroroccurredwhilerunning`frompyglet.glimport*`
HINT:makesureyouhaveOpenGLinstall.OnUbuntu,youcanrun'apt-getinstallpython-opengl'.
Ifyou'rerunningonaserver,youmayneedavirtualframebuffer;somethinglikethisshouldwork:
'xvfb-run-s"-screen01400x900x24"python'
ImportError:Can'tfindframework/System/Library/Frameworks/OpenGL.framework.
Iresearched,andtried,variouspossiblesolutionsontheinternet,butnothingsolved,doesanyonehaveanideaofhowtofixthisproblem,Iappreciateanyhelp,I'musingpython3.8,butItriedon3.7too,andIwasunsuccessful.
Thetextwasupdatedsuccessfully,buttheseerrorswereencountered:
👍
8
nbro,samisnotinsane,lebigot,realliyifei,Dastin346,JanKaifer,NickLucche,andlubarolireactedwiththumbsupemoji
Allreactions
👍
8reactions
Copylink
WayenVan
commented
Nov19,2020
Ihavethesameproblem,isthatmeanstheOpenGldidn'tbeinstalledproperly?
Allreactions
Sorry,somethingwentwrong.
Copylink
WayenVan
commented
Nov19,2020
Well,therearesomesolutions.Ihavenottriedthemyet,goodluck!
Allreactions
Sorry,somethingwentwrong.
Copylink
DarioBernardo
commented
Nov19,2020
Ihadthesameproblem,andinstallingpyglet==1.5.11(assuggestedinthediscussionlinkedby@WayenVan)solvedtheissue.
👍
52
EmmanuelADAM,leyanpan,tchlux,jparmstrong,janghyuk-choi,masirt,ThomasJaegerTJ,RENyunfan,MarkusOdenthal,ksboy,and42morereactedwiththumbsupemoji
🎉
7
shkarlsson,RENyunfan,leon-richard,DerekGrant,mlmabie,schmiJo,andxin-aireactedwithhoorayemoji
Allreactions
👍
52reactions
🎉
7reactions
Sorry,somethingwentwrong.
Copylink
kochsebastian
commented
Nov21,2020
@DarioBernardoHowcanyouinstallpyglet==1.5.11whenthenewestversionofgym(0.17.3)requirespygletbetween1.4and1.5atleastaccordingtomyerrormessage:
gym0.17.3requirespyglet<=1.5.0,>=1.4.0,butyou'llhavepyglet1.5.11whichisincompatible
Allreactions
Sorry,somethingwentwrong.
Copylink
DarioBernardo
commented
Nov23,2020
Igetthesameerror,howeverpygletgetinstalled(Iget"Successfullyinstalledpyglet-1.5.11"messageaftertheerror).Infactwhenitrytorunmycodeagainitactuallyworks.Try,Ithinkshouldworkforyouaswellifthepygletgetactuallyinstalledasithappensforme.
👍
48
kochsebastian,dushyantRathore,lix4,Feiyu-Yao,arnabbiswas66,Doris1039,leyanpan,vishwanath79,echo0409,h-sgy,and38morereactedwiththumbsupemoji
🎉
9
lix4,Feiyu-Yao,echo0409,Tomaubier,inwaves,PaulErny,Xpitfire,plucaci,andvictor-psiorireactedwithhoorayemoji
😕
2
lix4andplucacireactedwithconfusedemoji
❤️
3
lix4,dengdengyee,andplucacireactedwithheartemoji
🚀
3
lix4,schmiJo,andplucacireactedwithrocketemoji
👀
2
lix4andemnabarredreactedwitheyesemoji
Allreactions
👍
48reactions
🎉
9reactions
😕
2reactions
❤️
3reactions
🚀
3reactions
👀
2reactions
Sorry,somethingwentwrong.
Copylink
kochsebastian
commented
Nov23,2020
@DarioBernardoYesyouare100%correct.Itdidgetinstalledandnowgymrunswithoutanerror
Allreactions
Sorry,somethingwentwrong.
Copylink
lix4
commented
Nov28,2020
@DarioBernardoYouaremylifesaver.
😄
1
JalexDoooreactedwithlaughemoji
Allreactions
😄
1reaction
Sorry,somethingwentwrong.
Copylink
emnabarred
commented
Dec17,2020
@DarioBernardoIdidthesamebutwhenIrunmycodeitstilldoesn'twork😅
Allreactions
Sorry,somethingwentwrong.
Copylink
K-tang-mkv
commented
Dec18,2020
@DarioBernardoThanksforyourhelp.IgotthesameerrorfrompygletandItrythemethodpipinstallpyglet==1.5.11thentheissuewasaddressed!
👍
8
Tomaubier,antoniopioricciardi,sukanyasaha007,Smith-Pit,alion2,camilodoa,Naviden,andYY-GXreactedwiththumbsupemoji
🎉
2
antoniopioricciardiandYY-GXreactedwithhoorayemoji
Allreactions
👍
8reactions
🎉
2reactions
Sorry,somethingwentwrong.
Copylink
takumijoel
commented
Dec24,2020
@emnabarredMinedidn'tworkatfirstaswell.Butitworkedafterclosingeverythingandreopening.
Allreactions
Sorry,somethingwentwrong.
Copylink
anticdimi
commented
Dec26,2020
•
edited
Itriedinstallingpyglet==1.5.11andthatfixedtheImportError,butnowIgetthefollowingerror:AttributeError:dlsym(0x104f43d80,class_getMethodImplementation_stret):symbolnotfound.Doesanyoneknowwhat'sthisabout,and/orhowtofixit?
Btw,I'mrunningthecodeonMacbookProM1.
👍
1
rtindrureactedwiththumbsupemoji
Allreactions
👍
1reaction
Sorry,somethingwentwrong.
anticdimi
mentionedthisissue
Dec26,2020
AppleSiliconM1-AttributeError:dlsym(0x100da7d80,class_getMethodImplementation_stret):symbolnotfound.
pyglet/pyglet#334
Closed
Copylink
emnabarred
commented
Dec28,2020
@emnabarredMinedidn'tworkatfirstaswell.Butitworkedafterclosingeverythingandreopening.
Unfortunately,itdidn'tworkforme.I'montheM1chipifthathasanythingtodowiththis..
Allreactions
Sorry,somethingwentwrong.
Copylink
anticdimi
commented
Dec28,2020
@emnabarredThispyglet/pyglet#335shouldbethefix,atleastitdidthejobforme:)
👍
1
dmitrydudkinreactedwiththumbsupemoji
Allreactions
👍
1reaction
Sorry,somethingwentwrong.
Copylink
emnabarred
commented
Dec29,2020
@antic11dThankyouverymuch,thisfixedmyissue!
Allreactions
Sorry,somethingwentwrong.
Copylink
leon-richard
commented
Jan1,2021
Ihadthesameproblem,andinstallingpyglet==1.5.11(assuggestedinthediscussionlinkedby@WayenVan)solvedtheissue.
Thanksyouforsavingmylife!
Allreactions
Sorry,somethingwentwrong.
Copylink
holoodst
commented
Jan11,2021
@DarioBernardoHowcanyouinstallpyglet==1.5.11whenthenewestversionofgym(0.17.3)requirespygletbetween1.4and1.5atleastaccordingtomyerrormessage:
gym0.17.3requirespyglet<=1.5.0,>=1.4.0,butyou'llhavepyglet1.5.11whichisincompatible
sure,butitisworkamzing
Allreactions
Sorry,somethingwentwrong.
Copylink
cmsax
commented
Feb5,2021
Ijusttriedpyglet==1.5.11,notworked.butpyglet==1.5.12worked.withgym==0.18.0
Allreactions
Sorry,somethingwentwrong.
Copylink
DerekGrant
commented
Feb16,2021
Ihadthesameproblem,andinstallingpyglet==1.5.11(assuggestedinthediscussionlinkedby@WayenVan)solvedtheissue.
Solvedmyproblem,thx!
Allreactions
Sorry,somethingwentwrong.
Copylink
PluteW
commented
Mar16,2021
Thanks!Installingpyglet==1.5.11workedforme!
Allreactions
Sorry,somethingwentwrong.
Copylink
OleksiyAnokhin
commented
Mar16,2021
•
edited
pyglet==1.5.11doesnotworkonWindowsforme
WhatdidIalsotry?
!pipinstallgym
!pipinstall-fhttps://github.com/Kojoley/atari-py/releasesatari_py
!pipinstallgym[atari]
!pipinstallgit+https://github.com/Kojoley/atari-py.git
ImportError:
Erroroccurredwhilerunningfrompyglet.glimport*
HINT:makesureyouhaveOpenGLinstall.OnUbuntu,youcanrun'apt-getinstallpython-opengl'.
Ifyou'rerunningonaserver,youmayneedavirtualframebuffer;somethinglikethisshouldwork:
'xvfb-run-s"-screen01400x900x24"python'
Allreactions
Sorry,somethingwentwrong.
Copylink
XiaoyanQian
commented
Mar27,2021
Ihadthesameproblem,andinstallingpyglet==1.5.11(assuggestedinthediscussionlinkedby@WayenVan)solvedtheissue.
Thankyousomuch.thishelpstofixmyissue
Allreactions
Sorry,somethingwentwrong.
Copylink
JalexDooo
commented
Apr23,2021
Thx!!
Allreactions
Sorry,somethingwentwrong.
Copylink
rajvijay68
commented
May8,2021
Installingpyglet==1.5.11didnotworkforme,
ThisiswithMacOSBigsure11.3.1andgym=='0.18.0'
Allreactions
Sorry,somethingwentwrong.
monoclecat
mentionedthisissue
May12,2021
IssuerunningonmacOS.
openai/spinningup#307
Closed
bayareacoder
mentionedthisissue
May12,2021
runningcodeonMacOS/JupyterNotebookfiles/GymOpenGLonMacOS
PacktPublishing/Tensorflow-2-Reinforcement-Learning-Cookbook#13
Closed
praveen-palanisamy
mentionedthisissue
May19,2021
OpenGLwithPygleterroronMacOSX
PacktPublishing/Tensorflow-2-Reinforcement-Learning-Cookbook#19
Closed
Copylink
JanKaifer
commented
Jun26,2021
Afterinstallingpyglet==15.11.1Iget:
zsh:segmentationfaultpythongym_demo.py
Allreactions
Sorry,somethingwentwrong.
koojongin
addedacommit
tokoojongin/nes-py
thatreferenced
thisissue
Jul27,2021
fix:fixedconflictonmacosbigsur
…
17ce6cc
whenusemacos,versionbigsur
nes-pymoduleisonlyrunningonpyglet>=1.5.1
openai/gym#2101
koojongin
mentionedthisissue
Jul27,2021
fix:fixedconflictonmacosbigsur
Kautenja/nes-py#77
Closed
7tasks
Copylink
Collaborator
jkterry1
commented
Jul30,2021
Thisshouldallbefixed,butifitisnotpleasecreatenewissuesforindividualporblems
Allreactions
Sorry,somethingwentwrong.
jkterry1
closedthisascompleted
Jul30,2021
openai
lockedasresolvedandlimitedconversationtocollaborators
Jul30,2021
Signupforfree
tosubscribetothisconversationonGitHub.
Alreadyhaveanaccount?
Signin.
Assignees
Nooneassigned
Labels
Noneyet
Projects
Noneyet
Milestone
Nomilestone
Development
Nobranchesorpullrequests
20participants
Youcan’tperformthatactionatthistime.
Yousignedinwithanothertaborwindow.Reloadtorefreshyoursession.
Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.