QuantumATK Forum
QuantumATK => General Questions and Answers => Topic started 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?
-
Could you try to reboot your computer and then run atk?
-
thanks your suggests and I tried but nothing change. Process setup is normal.
I don't realy know that error.
-
- Have you installed any other version of ATK
- Did they work ?
- What versions of ATK do you have installed?
- Have you set the environment variables PYTHONPATH and/or PYTHONHOME?
-
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
for i in range(5):
print i
", its interface looks like:
In [1]: for i in range(5):
...: print i
...:
If it normally gives the following screen printing,
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.
-
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.
-
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
???