Hi,
I was just wondering if it might be possible to raise an ImportError 
instead of terminating python;
look what I get:
[EMAIL PROTECTED]:~: python
Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import numpy
 >>> import sys
 >>> sys.path.append("PrCyg")
 >>> from Priithon import seb
RuntimeError: module compiled against version 1000000 of C-API but this 
version
of numpy is 1000002
Fatal Python error: numpy.core.multiarray failed to import... exiting.

This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.
[EMAIL PROTECTED]:~:

Assume that you are running an interactive session, analysing some 
important[;-)] data. Then you think: "Oh, I should try this one (maybe 
little old) module on this" ...  so you try to import ... and ... 
suddenly the entire python application crashes.
When your shell application runs without a terminal you don't even get 
to read the error message !

- Sebastian Haase

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to