----- Original Message -----
From: Matthias Baas <firstname.lastname@example.org>
To: makura <email@example.com>; cgkit user discussions <firstname.lastname@example.org>
Date: 2014/7/3, Thu 06:10
Subject: Re: [cgkit-user] Window of viewer.py has closed.
On 02.07.14 18:48, makura wrote:
> C:\Python33\sample\pythoncgkit\chapter1>render.py -r3delight demo1.py
> 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?
I think the problem rather is that in Python 3, the dict object doesn't
have a has_key() method anymore. That should be written as:
if interface in interfaces:
Could you try changing that line and see if it then works again?
Let me know if that fixes it.