[Scipy-tickets] [SciPy] #1521: import scipy.interpolate causes consistent exit code 0

SciPy Trac scipy-tickets@scipy....
Fri Sep 16 15:58:25 CDT 2011


#1521: import scipy.interpolate causes consistent exit code 0
------------------------+---------------------------------------------------
 Reporter:  SteveDoyle  |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  Unscheduled
Component:  Other       |     Version:  0.8.0      
 Keywords:              |  
------------------------+---------------------------------------------------

Comment(by SteveDoyle):

 Ok...I actually have a workaround for this bug, but I wanted to pass on
 the "fix".  I grouped the scipy modules into ones that cause the error and
 ones that don't.

 What was interesting was when any (or all) modules from only group #3 (see
 below) was imported, an improper error code was returned.  When a module
 from group #2 and group #3 were both imported (in any order), the error
 code was correctly returned.
 {{{
 import sys

 # ok - group #1
 #import scipy

 # these are also ok - group #2
 #import scipy.constants
 #import scipy.fftpack
 #import scipy.integrate
 #import scipy.lib
 #import scipy.misc
 #import scipy.odr
 #import scipy.optimize
 #import scipy.special
 #import scipy.stsci
 #import scipy.weave

 # these cause the bug - group #3
 import scipy.stats
 #import scipy.cluster
 #import scipy.interpolate
 #import scipy.io
 #import scipy.linalg
 #import scipy.maxentropy
 #import scipy.signal
 #import scipy.sparse
 #import scipy.spatial
 #import scipy.stats
 sys.exit(2)
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1521#comment:2>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list