Have you tried this out using the development branch of pyglet? There was 
some utf8 window caption stuff that went in there. However, that shouldn't 
matter if you set the window caption manually. 

If it doesn't work on the dev branch, would you mind sharing a code 
snippet? 



On Friday, July 29, 2016 at 11:59:19 AM UTC+9, Rafael Cosman wrote:
>
> I'm getting exactly the same issue with the same line. Did you end up 
> figuring this out?
>
> Best,
>
> Rafael
>
> On Wednesday, June 26, 2013 at 4:13:31 PM UTC-7, Adam wrote:
>>
>> On 25/06/13 20:58, Britt Anderson wrote: 
>> > I use the python library psychopy which uses pyglet. I have it working 
>> > on several machines running archlinux, but with this computer (using 
>> > an ATI video card), I get an error for python code that executes fine 
>> > on other machines with the same setup. Can anyone suggest how I might 
>> > track down the problem? Thank you. 
>> > 
>> > Traceback (most recent call last): 
>> >   File "demo.py", line 3, in <module> 
>> >     from pyglet.window import key 
>> >   File "/usr/lib/python2.7/site-packages/pyglet/window/__init__.py", 
>> > line 1684, in <module> 
>> >     gl._create_shadow_window() 
>> >   File "/usr/lib/python2.7/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.7/site-packages/pyglet/window/xlib/__init__.py", 
>> > line 474, in __init__ 
>> >     super(XlibWindow, self).__init__(*args, **kwargs) 
>> >   File "/usr/lib/python2.7/site-packages/pyglet/window/__init__.py", 
>> > line 686, in __init__ 
>> >     self._create() 
>> >   File 
>> > "/usr/lib/python2.7/site-packages/pyglet/window/xlib/__init__.py", 
>> > line 651, in _create 
>> >     self.set_caption(self._caption) 
>> >   File 
>> > "/usr/lib/python2.7/site-packages/pyglet/window/xlib/__init__.py", 
>> > line 822, in set_caption 
>> >     self._set_text_property('_NET_WM_NAME', caption) 
>> >   File 
>> > "/usr/lib/python2.7/site-packages/pyglet/window/xlib/__init__.py", 
>> > line 1065, in _set_text_property 
>> >     raise XlibException('Could not create UTF8 text property') 
>> > pyglet.window.xlib.XlibException: Could not create UTF8 text property 
>> > 
>> It looks like a problem with your window manager: 
>> http://standards.freedesktop.org/wm-spec/1.4/ar01s05.html 
>> maybe try a different one first? Or look for UTF8 locale stuff? 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to