Hello!
I just went through tutorial, to step 8 of Chapter 6 (drag and drop biphenyl script icon from your file system browser into the Job Manager tool), and ooops... :o :'(
Running: C:\Program Files\QuantumWise\Virtual NanoLab 2008.10.0\atk\bin\atk.exe c:/users/1/appdata/local/temp/tmprhmejo.nl
VkKeyScan("d") = -1
Traceback (most recent call last):
File "<string>", line 1, in ?
File ".\ATK\CLI\__init__.py", line 30, in ?
File "lib\IPython\__init__.py", line 52, in ?
File "lib\IPython\genutils.py", line 117, in ?
File "lib\readline.py", line 9, in ?
File "lib\pyreadline\init_rl.py", line 3, in ?
File "lib\pyreadline\rlmain.py", line 62, in __init__
File "lib\pyreadline\rlmain.py", line 1137, in emacs_editing_mode
File "lib\pyreadline\rlmain.py", line 1130, in _bind_exit_key
File "lib\pyreadline\keysyms.py", line 111, in key_text_to_keyinfo
File "lib\pyreadline\keysyms.py", line 151, in keyname_to_keyinfo
File "lib\pyreadline\keysyms.py", line 119, in char_to_keyinfo
ValueError: bad key
Terminated Abnormally
What can I do?
I attach my script below. Exactly the same output I get with any other script - e.g. from samples folder.
There is no other Python-based software as far as I know.
PC works under Windows 7 (if this matters).
Running script from command line leads to splash and disappear of black screen with a few text.
Running script with ATK 2010 shell leads to:
+ -------------------------------------------------------------
| NanoLanguageScript execution started
+ -------------------------------------------------------------
Traceback (most recent call last):
File "c:\users\1\appdata\local\temp\2737964686931724.py", line 1, in <module>
from ATK.KohnSham import *
ImportError: No module named ATK.KohnSham
Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File ".\build\vnl\lib\threading.py", line 522, in __bootstrap_inner
File ".\build\vnl\lib\threading.py", line 477, in run
File ".\zipdir\NL\__init__.py", line 376, in monitorFunction
<type 'exceptions.TypeError'>: 'NoneType' object is not callable
NanoLanguageScript execution failure
+ -------------------------------------------------------------
| NanoLanguageScript execution finished
+ -------------------------------------------------------------
The scripts are not compatible between 2008 and 2010, unfortunately, so it's clear why it doesn't work to run it with 2010.02. (Although, the change needed are small, at least for the geometric configuration.)
The 2008.10 errors are weird, but I don't understand the splash screen thing. ATK will not raise a splash screen (VNL will).
So, if you run, in a terminal,
atk molecule_configuration_script.py
there should be no splash, and hopefully no error messages. Fingers crossed!
If not, and anyway, the version for the future is 2010.xx, so as long as that works, all is ok. So, to convert the script to 2010.xx:
1) Change from import ATK.KohnSham * to from NanoLanguage import * in the import statement on line 1
2) Remove the line from ATK.MPI import * (line 2)
3) Remove the whole if processIsMaster(): part (lines 4-8)
4) Remove line 11
5) Remove all lines after the geometry definition (the lines with MoleculeConfiguration) (lines 47 to the end)
For your convenience, I have attached the resulting file (while the above instructions are general for all users looking to convert their 2008 molecules to 2010). Now open VNL 2010.02 and drop the structure on the Scripter to set up the calculation.
By summer, 2010 will have (almost) the same functionality as 2008, but right now there's a slight difference, I admit.
These are unusual errors, I have never seen anything like this before.
Taking a peek at your email, I surmise that you are using a Russian keyboard. Google turns up a few hits on this, all related to foreign keyboards and readline.
So let's try a few things.
Before running, in the terminal, switch to US keyboard (in Window, not hardware!).
Also, try to run some minimal scripts, like
and then
from ATK.KohnSham import *
print "hello"