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

Previous: 823 Next: 825


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?



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

The cormaspectrum.py file is not a command-line program. It is part of
Sparky code that implements the menu entry Extensions / Spectrum /CORMA
spectrum described in the manual


http://www.cgl.ucsf.edu/home/sparky/manual/extensions.html#CormaSpectrum

It reads the output file produced by CORMA, so you will have to install
and run that program to use it. (If you want to know, the import
sparky line will import file sparky/python/sparky/__init__.py__ when it
is run using the Sparky menu entry.)

Tom



Dear all,

This is the first time I use this command, but I faced some problem.

After I press enter with the command line I got information like below.

C:Program Filessciencesparkypythonsparkycormaspectrum.py
rx_d300_20C.int.1

Traceback (most recent call last):
File C:Program Filessciencesparkypythonsparkycormaspectrum.py,
line 7,
in module
import corma
File C:Program Filessciencesparkypythonsparkycorma.py, line 7,
in module
import atoms
File C:Program Filessciencesparkypythonsparkyatoms.py, line
23, in module
import sputil
File C:Program Filessciencesparkypythonsparkysputil.py, line
13, in module
import sparky
ImportError: No module named sparky

Looks like the problem is from the file sputil.py, which want import
sparky on its 13rd line. But I did not see sparky.py in this
pythonsparky folder.

Could anybody tell me where I should point this file to. It is the
sparky.bat in the bin folder?

Thanks a lot.