Subject: Re: [nmr_sparky] problem with cormaspectrum command
From: Tom Goddard
Date: May 7, 2012

Previous: 822 Next: 824


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.