Author Topic: Error when run the ATK 10.8  (Read 6420 times)

0 Members and 1 Guest are viewing this topic.

Offline hung

  • Regular QuantumATK user
  • **
  • Posts: 17
  • Reputation: 0
    • View Profile
Error when run the ATK 10.8
« 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?

Offline zh

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 1141
  • Reputation: 24
    • View Profile
Re: Error when run the ATK 10.8
« Reply #1 on: September 27, 2010, 01:45 »
Could you try to reboot your computer and then run atk?

Offline hung

  • Regular QuantumATK user
  • **
  • Posts: 17
  • Reputation: 0
    • View Profile
Re: Error when run the ATK 10.8
« Reply #2 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.

Offline Nordland

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 812
  • Reputation: 18
    • View Profile
Re: Error when run the ATK 10.8
« Reply #3 on: September 27, 2010, 14:54 »
  • 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?

Offline zh

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 1141
  • Reputation: 24
    • View Profile
Re: Error when run the ATK 10.8
« Reply #4 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
The solution for such problem is also given on that webpage.

« Last Edit: October 1, 2010, 01:54 by zh »

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: Error when run the ATK 10.8
« Reply #5 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.

Offline hung

  • Regular QuantumATK user
  • **
  • Posts: 17
  • Reputation: 0
    • View Profile
Re: Error when run the ATK 10.8
« Reply #6 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
 ???