Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Issue 473 in pyglet: AttributeError: 'NoneType' object has no attribute 'startswith'
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
codesite-nore...@google.com  
View profile  
 More options Mar 16 2010, 7:49 am
From: codesite-nore...@google.com
Date: Tue, 16 Mar 2010 11:49:18 +0000
Local: Tues, Mar 16 2010 7:49 am
Subject: Issue 473 in pyglet: AttributeError: 'NoneType' object has no attribute 'startswith'
Status: New
Owner: ----

New issue 473 by stodge: AttributeError: 'NoneType' object has no  
attribute 'startswith'
http://code.google.com/p/pyglet/issues/detail?id=473

What steps will reproduce the problem?
1. Tried to run any of the graphical examples:
2. Example applications crash

Paste in the traceback or error message:

./multiple_windows.py
Traceback (most recent call last):
   File "./multiple_windows.py", line 40, in <module>
     from pyglet.gl import *
   File "/usr/lib/python2.6/site-packages/pyglet/gl/__init__.py", line 510,
in <module>
     import pyglet.window
   File "/usr/lib/python2.6/site-packages/pyglet/window/__init__.py", line
1684, in <module>
     gl._create_shadow_window()
   File "/usr/lib/python2.6/site-packages/pyglet/gl/__init__.py", line 494,
in _create_shadow_window
     _shadow_window = Window(width=1, height=1, visible=False)
   File "/usr/lib/python2.6/site-packages/pyglet/window/xlib/__init__.py",
line 474, in __init__
     super(XlibWindow, self).__init__(*args, **kwargs)
   File "/usr/lib/python2.6/site-packages/pyglet/window/__init__.py", line
686, in __init__
     self._create()
   File "/usr/lib/python2.6/site-packages/pyglet/window/xlib/__init__.py",
line 683, in _create
     self.switch_to()
   File "/usr/lib/python2.6/site-packages/pyglet/window/xlib/__init__.py",
line 781, in switch_to
     self._context.set_current()
   File "/usr/lib/python2.6/site-packages/pyglet/gl/__init__.py", line 347,
in set_current
     setattr(self, attr, check(self._info))
   File "/usr/lib/python2.6/site-packages/pyglet/gl/__init__.py", line 314,
in <lambda>
     lambda info: info.get_renderer().startswith('ATI Radeon X')),
AttributeError: 'NoneType' object has no attribute 'startswith'

pyglet 1.1 with Python 2.5: Paste in the output of `python -m pyglet.info`
Other: Paste in the output of tools/gl_info.py (included in source distro):

See attachment for output of pyglet.info.

Any additional info (platform/language/hardware) that may be relevant?

Fedora 12 running on a Dell M4300 laptop.

gl_info.py crashes.

Attachments:
        pyglet_info.txt  6.0 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
codesite-nore...@google.com  
View profile  
 More options Mar 17 2010, 12:06 pm
From: codesite-nore...@google.com
Date: Wed, 17 Mar 2010 16:06:34 +0000
Local: Wed, Mar 17 2010 12:06 pm
Subject: Re: Issue 473 in pyglet: AttributeError: 'NoneType' object has no attribute 'startswith'
Updates:
        Status: Accepted
        Labels: OpSys-Linux Type-Defect

Comment #1 on issue 473 by chardster: AttributeError: 'NoneType' object has  
no attribute 'startswith'
http://code.google.com/p/pyglet/issues/detail?id=473

This generally happens because the Context.set_current is called before the  
real
(platform specific) context has been initialised. Poking through the code I  
can only
presume that we end up with an instance of BaseXlibContext instead of any  
of its
subclasses.

stodge: Could you confirm the types of w1.context and w2.context from the
multiple_windows.py example for your setup? Take a copy of the file and  
add 'print
type(w1.context), type(w2.context)' before 'pyglet.app.run()'

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
codesite-nore...@google.com  
View profile  
 More options Mar 17 2010, 12:12 pm
From: codesite-nore...@google.com
Date: Wed, 17 Mar 2010 16:12:41 +0000
Local: Wed, Mar 17 2010 12:12 pm
Subject: Re: Issue 473 in pyglet: AttributeError: 'NoneType' object has no attribute 'startswith'

Comment #2 on issue 473 by stodge: AttributeError: 'NoneType' object has no  
attribute 'startswith'
http://code.google.com/p/pyglet/issues/detail?id=473

Tried that but it doesn't help. The crash occurs "inside" the import:

from pyglet.gl import *

So my print statements are never reached.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
codesite-nore...@google.com  
View profile  
 More options Mar 18 2010, 10:19 am
From: codesite-nore...@google.com
Date: Thu, 18 Mar 2010 14:19:26 +0000
Local: Thurs, Mar 18 2010 10:19 am
Subject: Re: Issue 473 in pyglet: AttributeError: 'NoneType' object has no attribute 'startswith'

Comment #3 on issue 473 by stodge: AttributeError: 'NoneType' object has no  
attribute 'startswith'
http://code.google.com/p/pyglet/issues/detail?id=473

Anything else I can report/find for you? Cheers

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
codesite-nore...@google.com  
View profile  
 More options Mar 26 2010, 3:55 am
From: codesite-nore...@google.com
Date: Fri, 26 Mar 2010 07:55:24 +0000
Local: Fri, Mar 26 2010 3:55 am
Subject: Re: Issue 473 in pyglet: AttributeError: 'NoneType' object has no attribute 'startswith'

Comment #4 on issue 473 by lexa.knyazev: AttributeError: 'NoneType' object  
has no attribute 'startswith'
http://code.google.com/p/pyglet/issues/detail?id=473

I got the same on Fedora 12 with NVIDIA card and nouveau driver (for now it  
lacks 3D
support).
Try proprietary driver.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
codesite-nore...@google.com  
View profile  
 More options Mar 26 2010, 7:39 am
From: codesite-nore...@google.com
Date: Fri, 26 Mar 2010 11:39:39 +0000
Local: Fri, Mar 26 2010 7:39 am
Subject: Re: Issue 473 in pyglet: AttributeError: 'NoneType' object has no attribute 'startswith'

Comment #5 on issue 473 by stodge: AttributeError: 'NoneType' object has no  
attribute 'startswith'
http://code.google.com/p/pyglet/issues/detail?id=473

Sorry - forgot to mention that this was the proprietary NVIDIA driver.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
codesite-nore...@google.com  
View profile  
 More options Mar 26 2010, 8:17 am
From: codesite-nore...@google.com
Date: Fri, 26 Mar 2010 12:17:13 +0000
Local: Fri, Mar 26 2010 8:17 am
Subject: Re: Issue 473 in pyglet: AttributeError: 'NoneType' object has no attribute 'startswith'

Comment #6 on issue 473 by lexa.knyazev: AttributeError: 'NoneType' object  
has no attribute 'startswith'
http://code.google.com/p/pyglet/issues/detail?id=473

what is output of:

$ glxinfo | egrep "vendor|OpenGL"

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
codesite-nore...@google.com  
View profile  
 More options Mar 26 2010, 8:21 am
From: codesite-nore...@google.com
Date: Fri, 26 Mar 2010 12:21:00 +0000
Subject: Re: Issue 473 in pyglet: AttributeError: 'NoneType' object has no attribute 'startswith'

Comment #7 on issue 473 by stodge: AttributeError: 'NoneType' object has no  
attribute 'startswith'
http://code.google.com/p/pyglet/issues/detail?id=473

Ah:

glxinfo | egrep "vendor|OpenGL"
Error: glXCreateContext failed

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
codesite-nore...@google.com  
View profile  
 More options May 22 2010, 3:59 pm
From: codesite-nore...@google.com
Date: Sat, 22 May 2010 19:59:36 +0000
Local: Sat, May 22 2010 3:59 pm
Subject: Re: Issue 473 in pyglet: AttributeError: 'NoneType' object has no attribute 'startswith'

Comment #8 on issue 473 by opbstudios: AttributeError: 'NoneType' object  
has no attribute 'startswith'
http://code.google.com/p/pyglet/issues/detail?id=473

i am also having this issue, python 2.6.5, svn trunk of pyglet, nvidia  
proprietary
driver.

here's my crash
Python 2.6.5 (r265:79063, Mar 18 2010, 23:38:15)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import pyglet
>>> window = pyglet.window.Window()

Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "pyglet/__init__.py", line 313, in __getattr__
     __import__(import_name)
   File "pyglet/window/__init__.py", line 1810, in <module>
     gl._create_shadow_window()
   File "pyglet/gl/__init__.py", line 208, in _create_shadow_window
     _shadow_window = Window(width=1, height=1, visible=False)
   File "pyglet/window/xlib/__init__.py", line 158, in __init__
     super(XlibWindow, self).__init__(*args, **kwargs)
   File "pyglet/window/__init__.py", line 558, in __init__
     self._create()
   File "pyglet/window/xlib/__init__.py", line 248, in _create
     self.context.attach(self.canvas)
   File "pyglet/gl/xlib.py", line 267, in attach
     self.set_current()
   File "pyglet/gl/xlib.py", line 272, in set_current
     super(XlibContext10, self).set_current()
   File "pyglet/gl/base.py", line 308, in set_current
     setattr(self, attr, check(self._info))
   File "pyglet/gl/base.py", line 256, in <lambda>
     lambda info: (info.get_renderer().startswith('ATI Radeon X')
AttributeError: 'NoneType' object has no attribute 'startswith'

hope that helps

--
You received this message because you are subscribed to the Google Groups "pyglet-issues" group.
To post to this group, send email to pyglet-issues@googlegroups.com.
To unsubscribe from this group, send email to pyglet-issues+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyglet-issues?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
codesite-nore...@google.com  
View profile  
 More options May 22 2010, 4:03 pm
From: codesite-nore...@google.com
Date: Sat, 22 May 2010 20:03:38 +0000
Local: Sat, May 22 2010 4:03 pm
Subject: Re: Issue 473 in pyglet: AttributeError: 'NoneType' object has no attribute 'startswith'

Comment #9 on issue 473 by opbstudios: AttributeError: 'NoneType' object  
has no attribute 'startswith'
http://code.google.com/p/pyglet/issues/detail?id=473

re-entering this attach my pyglet.info dump

i am also having this issue, python 2.6.5, svn trunk of pyglet, nvidia  
proprietary
driver.

here's my crash
Python 2.6.5 (r265:79063, Mar 18 2010, 23:38:15)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import pyglet
>>> window = pyglet.window.Window()

Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "pyglet/__init__.py", line 313, in __getattr__
     __import__(import_name)
   File "pyglet/window/__init__.py", line 1810, in <module>
     gl._create_shadow_window()
   File "pyglet/gl/__init__.py", line 208, in _create_shadow_window
     _shadow_window = Window(width=1, height=1, visible=False)
   File "pyglet/window/xlib/__init__.py", line 158, in __init__
     super(XlibWindow, self).__init__(*args, **kwargs)
   File "pyglet/window/__init__.py", line 558, in __init__
     self._create()
   File "pyglet/window/xlib/__init__.py", line 248, in _create
     self.context.attach(self.canvas)
   File "pyglet/gl/xlib.py", line 267, in attach
     self.set_current()
   File "pyglet/gl/xlib.py", line 272, in set_current
     super(XlibContext10, self).set_current()
   File "pyglet/gl/base.py", line 308, in set_current
     setattr(self, attr, check(self._info))
   File "pyglet/gl/base.py", line 256, in <lambda>
     lambda info: (info.get_renderer().startswith('ATI Radeon X')
AttributeError: 'NoneType' object has no attribute 'startswith'

hope that helps

Attachments:
        pyglet.inf  2.4 KB

--
You received this message because you are subscribed to the Google Groups "pyglet-issues" group.
To post to this group, send email to pyglet-issues@googlegroups.com.
To unsubscribe from this group, send email to pyglet-issues+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyglet-issues?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »