Subject: Re: problem with cormaspectrum command
From: liufanghe
Date: May 8, 2012

Previous: 825 Next: 827


The new version did fix that problem, and I can run the extensions from the menu.

New questions pop up during the running

Exception in Tkinter callback
Traceback (most recent call last):
File C:sparky-win32sparkypythonlib-tkTkinter.py, line 1345, in __call__return self.func(*args)
File C:sparky-win32sparkypythonsparkycormaspectrum.py, line 84, in create_spectrum_cb
self.session, corma_path, self)
File C:sparky-win32sparkypythonsparkytkutil.py, line 1142, in stoppable_call
result = apply(func, args)
File C:sparky-win32sparkypythonsparkycorma.py, line 20, in intensities
t[corma_path] = corma_intensities(session, corma_path, stoppable)
File C:sparky-win32sparkypythonsparkycorma.py, line 31, in __init__
self.intensity_table = read_intensities(corma_path, stoppable)
File C:sparky-win32sparkypythonsparkycorma.py, line 110, in read_intensities
intensity_spec = parse_corma_line(line)
File C:sparky-win32sparkypythonsparkycorma.py, line 134, in parse_corma_line
n1 = string.atoi(line[4:7])
File C:sparky-win32sparkypython2.5libstring.py, line 401, in atoi
return _int(s, base)
ValueError: invalid literal for int() with base 10: SOL

or when I load a very simple corma format file, it stopped like this

Exception in Tkinter callback
Traceback (most recent call last):
File C:sparky-win32sparkypythonlib-tkTkinter.py, line 1345, in __call__
return self.func(*args)
File C:sparky-win32sparkypythonsparkycormaspectrum.py, line 105, in create_spectrum_cb
sfreq, swidth, gaussians)
File C:sparky-win32sparkypythonsparkycormaspectrum.py, line 209, in run_peaks2ucsf
proc = subprocess.subprocess(p2u_path, save_path)
File C:sparky-win32sparkypythonsparkysubprocess.py, line 20, in __init__
pid = os.fork()
AttributeError: module object has no attribute fork



--- In nmr_sparky@yahoogroups.com , Tom Goddard goddard@... wrote:

Current Sparky versions (3.114 and 3.115) use Python 2.5 which is
included with Sparky. Get the current version of Sparky and your
problem will be solved. You will not need to edit any files.

Tom


The problem is I can not load Python extensions directly.

My system is windows2008 server, and with sparky copied in the folder
C:Program Filessciencesparky. And I have python27 in my c drive
instead of python21. I modified the sparky.bat

set SPARKY_INSTALL=c:Progra~1sciencesparky
set PYTHON=c:Python27python.exe

the changing of the spark_install line make the sparky running,
but if I change the PYTHON line, sparky automatically crashed.
DO I need to install python21?