The problem has been reported before - once:
http://www.mail-archive.com/python-list@python.org/msg18218.htmland it's quite clear it must be related to the keyboard layout. It's kind of a bug, I guess, in the readline library, but not an obvious one.
The fact that ATK 2010 works better than 2008 is probably because 2010 doesn't have readline yet. I don't know if they issue has been solved in readline, or we will see this pop up once we implement readline in 2010...
Now the user who posted the issue, Michele Simonato, couldn't solve it by switching to an English keyboard layout. In fact, his solution was to patch readline:
http://www.mail-archive.com/python-list@python.org/msg18348.htmlAt first glance it would appear that you don't have that luxury in ATK since it's already compiled. However, it's actually quite easy to patch individual libraries. My solution is slightly different from Michele's, and perhaps a bit aggressive, but simpler:
1) Download pyreadline 1.3 from
http://ipython.scipy.org/dist/old/pyreadline/2) Extract the tar file
3) Open the file
keysyms.py, found in the subdirectory
pyreadline, in an editor
4) Comment out line 119 (i.e. add a # at the beginning of the line) which contains the instruction to "raise ValueError".
5) Now copy this file to
C:\Program Files (x86)\QuantumWise\ATK 2008.10\lib\pyreadline and
C:\Program Files (x86)\QuantumWise\Virtual NanoLab 2008.10.0\atk\lib\pyreadline (without (x86) if using WinXP).
6) Make a backup copy of the file
keysyms.pyc in both of these directories.
7) Run your ATK script again.
Now, I cannot guarantee that this works, but it's definitely worth a try! I also cannot guarantee it doesn't mess up iPython and readline, but this is less of an issue unless you are planning to use ATK interactively.
If my solution results in a lot of strange text written to the screen (arising from line 118 in
keysyms.py) you can replace that line by a "pass" command (you cannot just remove it, or rather then you have to remove line 117 too). Or try Michele's solution (after line 116).
Let me know if it works, or if you need more help (more detailed instructions perhaps).
Good luck!