saga-project/saga-python-bindings — Issue #2: Exceptions differ from C++ level exceptions
Author: oweidner
Created: 2012-01-30 13:01:09+00:00
State: open

I would have expected the same exception stack for the following two invocations (this is on kraken with CSA-1.6)

merzky@kraken-pwd2(XT5):/nics/a/proj/saga> saga-file get_size gsiftp://localhost/etc/passwd
SAGA exception caught:
SAGA(Timeout):
SAGA(Timeout): globus_gridftp_file: Could not open file [gsiftp://localhost/etc/passwd]. Connection refused for localhost: globus_xio: Unable to connect to localhost:2811
globus_xio: System error in connect: Connection refused
globus_xio: A system call failed: Connection refused
SAGA(NoSuccess): No adaptor succeeded in executing constructor for file_cpi

Python:

merzky@kraken-pwd2(XT5):/nics/a/proj/saga> python
Python 2.7.1 (r271:86832, May 18 2011, 07:16:13)
[GCC 4.1.2 20070115 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import saga
>>> uu = saga.url("gsiftp://localhost/etc/passwd")
>>> ff = saga.filesystem.file (uu)
Traceback (most recent call last):
File "", line 1, in
RuntimeError: SAGA(NoSuccess): default_file: Cannot handle remote file: gsiftp://localhost/etc/passwd