Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - MNTC1

Pages: [1]
1
General Questions and Answers / Re: ValueError: bad key
« on: March 29, 2010, 12:50 »
Yes, your solution works!

I went through algorithm, got normal script execution with "a lot of strange text", replaced line 118 and now all works OK.

Thank you!

But I copied keysms.py to only one location. Second folder: "C:\Program Files (x86)\QuantumWise\ATK 2008.10" is absent in my installation.

2
General Questions and Answers / Re: ValueError: bad key
« on: March 27, 2010, 11:58 »
No, username is just a number "1"

2010 use the folder C:\Users\1 without troubles. Commands like  "nlpython script.py" in this folder are executed correctly.


3
General Questions and Answers / Re: ValueError: bad key
« on: March 25, 2010, 17:41 »
Both scripts lead to trhe same result - please look at attached screenshot.
Keyboard was shifted to English.

Some thoughts:

On my PC atk\bin folder of 2008 version is read-only and I can copy script to there only with administrator rights.. But this is the same for 2010 bin folder, which works.

I have set up licenses for 2008 and 2010 programs in different way - one by pointingto license file, another by setting system values manually (I don't remember exactly for what one). May this relate to problem?

4
General Questions and Answers / Re: ValueError: bad key
« on: March 24, 2010, 11:38 »
Attached is result of running in terminal. I had incorrectly called it "splash screen", so do not be confused with it.

Modified scripts work correctly with 2010 Scripter and Job Manager.

Will I loose a lot of functionality with unworking 2008?


5
General Questions and Answers / Re: ValueError: bad key
« on: March 24, 2010, 07:23 »
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:

Code
+ -------------------------------------------------------------
| 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
+ -------------------------------------------------------------

6
General Questions and Answers / ValueError: bad key
« on: March 23, 2010, 15:21 »
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 :'(

Code
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?

Pages: [1]