about issue #51 pyglet.gl.ContextException: Could not create ...
文章推薦指數: 80 %
ContextException: Could not create GL context ... I ask these questions as I am thinking of using pyglet for a comercial project for a ... Groupspyglet-usersConversationsAboutaboutissue#51pyglet.gl.ContextException:CouldnotcreateGLcontext782viewsSkiptofirstunreadmessageJasonSpashettunread,Aug8,2015,8:15:55AM8/8/15ReplytoauthorSignintoreplytoauthorForwardSignintoforwardDeleteYoudonothavepermissiontodeletemessagesinthisgroupLinkReportmessageasabuseSignintoreportmessageasabuseShoworiginalmessageEitheremailaddressesareanonymousforthisgrouporyouneedtheviewmemberemailaddressespermissiontoviewtheoriginalmessagetopyglet-usersI'vebeengettingthisissueregualrlyonalllinuxinstallationswhileplayingwithpyglet.Iseeit'sfixednowintherepositorybutit'snotinpypiyet.Ihaveafewmiscellanousquestions:presumablyitwillgetapypiupdateforthisatsomepointTheissuehasbeenpresentsince2008,thefirstcommit,howcomeit'sonlysurfacednow?Isit theresultofglxorotherchanges?IaskthesequestionsasIamthinkingofusingpygletforacomercialprojectforaclient,andofcourseIamalittleaprehensiveincaseirunintotroublewithpyglet.However,pygletseemstobeexactlywhatIneed,unlessIwasteeffortgoingtheDIYroute.Isawsomerumorsofpygletsdemise,butperhapstheprojectjustneedsmorecontributors.Thanks,JasonRobunread,Aug8,2015,5:18:21PM8/8/15ReplytoauthorSignintoreplytoauthorForwardSignintoforwardDeleteYoudonothavepermissiontodeletemessagesinthisgroupLinkReportmessageasabuseSignintoreportmessageasabuseShoworiginalmessageEitheremailaddressesareanonymousforthisgrouporyouneedtheviewmemberemailaddressespermissiontoviewtheoriginalmessagetopyglet-usersHi,Iwillprobablycreateanew1.2.xbugfixversionwithsomeofthelatestfixesasitwillprobablytakesometimetostabilize1.3.Issue#51wascausedbyinincorrectinterpretationoftheGLXapi.ItprobablysurfacedduetochangesinGLX.Pygletwasincorrectlyusingsomevalueinsideanopaquestruct.ThecontentsofthisstructareforGLXinternalonly,sotheycanchangewithoutwarning.Probablythevaluereadbypygletdidchange,causingtheissues.ImustsaywhenIreadtheAPIdocsIwasalsoconfusedbythedescriptionandatfirstthoughtpygletwasright.Pygletdidhitaroughpatchsometimeago,becausesimplynobodyhadtimetomaintainit.RecentlyIstartedmaintainingitandreleasedthe1.2.xversions.For1.3IamfocussingonimprovingthequalityandtestcoverageandmakingiteasiertomaintainPy2andPy3compatibilityusingpythonfuture. ButcurrentlyIamstillmostlyonmyown,somorecontributorsaredefinitelywelcome.Don'thesitatetocreatepullrequests,Iwillevaluatethemandpullthemin.UntilnowIwasonlyabletosupportLinuxandWindows,butasofthisweekIalsohaveMachardwaretotestanddevelopon(formydayjobIhavetosupportLinux,Windows,AndroidandsincerecentlyOSX andiOS).IhopewecanmakepygletthebestPythonOpenGLframeworkoutthere;-)RobOpzaterdag8augustus201502:15:55UTC+2schreefJasonSpashett:JasonSpashettunread,Aug10,2015,4:46:30AM8/10/15ReplytoauthorSignintoreplytoauthorForwardSignintoforwardDeleteYoudonothavepermissiontodeletemessagesinthisgroupLinkReportmessageasabuseSignintoreportmessageasabuseShoworiginalmessageEitheremailaddressesareanonymousforthisgrouporyouneedtheviewmemberemailaddressespermissiontoviewtheoriginalmessagetopyglet-usersHelloRob,Thanksforyourreply.Alotofpeopleseemtolikepyglet,andIthinkitsomehowneedsmorevisibility.Perhapspublishinganew1.2releaseandannouncingthisaroundonredditorhackernewsmighthelpabittogetmorepeopleinterested.IwillhavealookatthebugtrackerandseewhatIcouldfix.Idon'tknowyetifIwillbeusingpygletfortheupcomingprojectthough.It'smenuingwithsome2dgraphicsforanapplianceandtheywantitasap(asusual).:-)ReplyallReplytoauthorForward0newmessages
延伸文章資訊
- 1about issue #51 pyglet.gl.ContextException: Could not create ...
ContextException: Could not create GL context ... I ask these questions as I am thinking of using...
- 2Creating an OpenGL context — pyglet v1.5.26
Note that you cannot create a context directly from a template (any Config you constructed yourse...
- 3pyrender错误修复_lyyiangang的博客
... line 230, in __init__ raise gl.ContextException('Could not create GL context') pyglet.gl.Cont...
- 4ImportError: Error occured while running `from pyglet.gl import ...
You need an older version of pyglet; Installing it via pip should do the trick: pip install pygle...
- 5pyglet.gl.ContextException: Unable to share contexts
So when trying to create the window, we have more than one OpenGL context and it throws an except...