QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: hung on September 26, 2010, 22:25

Title: Error when run the ATK 10.8
Post by: hung on September 26, 2010, 22:25
hello...
When I run any scrips with ATK on Windowsvista (free trial version 10.8 ). it show that:<ERROR: 'dict' object has no attribute 'len'>. I don't know how to repare?
Title: Re: Error when run the ATK 10.8
Post by: zh on September 27, 2010, 01:45
Could you try to reboot your computer and then run atk?
Title: Re: Error when run the ATK 10.8
Post by: hung on September 27, 2010, 14:27
thanks your suggests and I tried but nothing change. Process setup is normal.
I don't realy know that error.
Title: Re: Error when run the ATK 10.8
Post by: Nordland on September 27, 2010, 14:54
Title: Re: Error when run the ATK 10.8
Post by: zh on September 28, 2010, 03:36
Do a simple test to check whether this is related to the python included in ATK:
i) enter the command mode of ATK 10.8:  Start--->Run--->type command "cmd" ---> go to the installed path of atk, e.g.: C:\Program Files\QuantumWise\atk-10.8.b1\atkpython\bin---> run "atkpython.exe". In this step, the python included ATK will be launched actually.
ii) type the following two lines
Quote
  for i in range(5):
       print i
", its interface looks like:
Quote
In [1]: for i in range(5):
   ...:     print i
   ...:
If it normally gives the following screen printing,
Quote
0
1
2
3
4
this means that your configuration of ATK is OK. Otherwise, if the error message of "<ERROR: 'dict' object has no attribute 'len'>" still appears, it means that the problem is related to the python, as discussed in the the following webpage:
http://groups.google.com/group/pylons-discuss/browse_thread/thread/312e3ead5967468a (http://groups.google.com/group/pylons-discuss/browse_thread/thread/312e3ead5967468a)
The solution for such problem is also given on that webpage.

Title: Re: Error when run the ATK 10.8
Post by: Anders Blom on September 28, 2010, 05:15
A possibility is that you have an existing installation of Python/iPython that is conflicting with ATK. Check your home directory (c:\users\username and/or your "My Documents" folder) for a folder called _ipython. Unless you have particular reason to keep it, delete it (in both places), and try to run "atkpython" again.
Title: Re: Error when run the ATK 10.8
Post by: hung on September 30, 2010, 18:28
I typed:
 for i in range(5):
       print i
it interface looks like:
<ERROR: 'dict' object has no attribute 'len'>
0
1
2
3
4
 ???