Hello,
I think this problem is Shift_JIS ("cp932").
I tried...
C:\PyOpenGL-Demo-3.0.1b1\PyOpenGL-Demo\GLUT>gears.py
 
glutCreateWindow("pyGears".encode("cp932"))
 
it works.
 
but this does not works.
C:\Python33\sample\pythoncgkit\chapter1>render.py -r3delight demo1.py
Exporting main.rib...
Traceback (most recent call last):
  File "C:\Python33\Scripts\render.py", line 361, in <module>
    render.run()
  File "C:\Python33\lib\site-packages\cgkit\tool.py", line 198, in run
    self.action()
  File "C:\Python33\Scripts\render.py", line 237, in action
    bakestvar = bakestvar
  File "C:\Python33\lib\site-packages\cgkit\cmds.py", line 981, in save
    exp.exportFile(os.path.basename(filename), **options)
  File "C:\Python33\lib\site-packages\cgkit\ribexport.py", line 172, in exportF
le
    explgt = self.adapt(obj, ILightSource)
  File "C:\Python33\lib\site-packages\cgkit\ribexport.py", line 672, in adapt
    return protocols.adapt(obj, interface)
  File "C:\Python33\lib\site-packages\cgkit\protocols.py", line 53, in adapt
    if interfaces.has_key(interface):
AttributeError: 'dict' object has no attribute 'has_key'
 
If I add  ".encode("cp932")",Where should I write in it at?
do viewer.py and render.py work?
 
Thank you.
Yuichirou Yokomakura

 
----- Original Message -----
From: makura <y_makura@yahoo.co.jp>
To: "cgkit-user@lists.sourceforge.net" <cgkit-user@lists.sourceforge.net>
Date: 2014/7/2, Wed 00:05
Subject: [cgkit-user] Window of viewer.py has closed.

Hello,
I used Python3.3.
I installed cgkit under Windows7 32bit.
 
Downloaded
cgkit-2.0.0.win32-py3.3.exe (1.7 MB).
python-3.3.5.msi Windows x86 MSI installer.
pygame-1.9.2a0-hg_56e0eadfc267.win32-py3.3.msi
https://bitbucket.org/pygame/pygame/downloads
pillow
PyOpenGL-3.1.0.win32-py3.3.exe
 
 
viewer.py demo1.py
OK.
 
but
The window is closed as soon as I pressed Alt key and others.
Navigation mode (Default: Maya) does not work.
following are error:
 
--------
C:\Python33\sample>viewer.py demo1.py
Traceback (most recent call last):
  File "C:\Python33\Scripts\viewer.py", line 699, in <module>
    viewer.run()
  File "C:\Python33\lib\site-packages\cgkit\tool.py", line 198, in run
    self.action()
  File "C:\Python33\Scripts\viewer.py", line 389, in action
    self.handleEvents(events)
  File "C:\Python33\Scripts\viewer.py", line 424, in handleEvents
    key = e.str
AttributeError: 'Event' object has no attribute 'str'
--------
 
>chcp 65001
>viewer.py demo1.py
same error.

Thank you.
Yuichirou Yokomakura

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
cgkit-user mailing list
cgkit-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cgkit-user