An error appears when importing "pySVM" in PTMAnalysis.py

12 views
Skip to first unread message

Alden

unread,
Jun 23, 2008, 8:12:47 AM6/23/08
to Inspect and MS-Alignment
Hello everyone,

When I used PTMAnalysis.py to analysis INspect deduced results, an
error message always appears in step 6:

"Traceback (most recent call last):
File "PTMAnalysis.py", line 444, in <module>
Main()
File "PTMAnalysis.py", line 433, in Main
Wrap.RunTrainPTMFeatures()
File "PTMAnalysis.py", line 310, in RunTrainPTMFeatures
Trainer.TrainModel()
File "/tp9300_1/people/lining/Inspect/TrainPTMFeatures.py", line
370, in TrainModel
self.Model2.Test(self.TrainingSet2)
File "/tp9300_1/people/lining/Inspect/Learning.py", line 1005, in
Test
RunPySVM.Predict(TempScaledFeaturesFileName, TempModelFileName,
TempOutputFileName)
File "/tp9300_1/people/lining/Inspect/RunPySVM.py", line 13, in
Predict
PySVM.LoadModel(ModelPath)
NameError: global name 'PySVM' is not defined"

Also there are some warning messages:

"Warning: PySVM not imported - SVM training not available"
"Warning: PySVM not present!"

It seem that the "PySVM.o" file didn't exist after compiling. The
system I used is Suse Linux with python 2.5.2. INspect I used
is the latest version(20080404).
So how to fix this problem?
Reply all
Reply to author
Forward
0 new messages