Mseed data failed to write with path

Hello

I tried to write mseed data in a file by calling obspy.core.stream.Stream.write(filename, format=”MSEED”), if I setup the filename without any path, then it works fine and I get the mseed file in the current directory, but if I setup the filename with a path, then get error message of “IOError: [Errno 2] No such file or directory:”.# Is there a way to sort it out, so I can save the file in any directory?# Thanks,# Xiao

Hi Xiao,

I tried to write mseed data in a file by calling
obspy.core.stream.Stream.write(filename, format=”MSEED”), if I setup
the filename without any path, then it works fine and I get the mseed
file in the current directory, but if I setup the filename with a
path, then get error message of “IOError: [Errno 2] No such file or
directory:”.

could you please open a new ticket at http://obspy.org/newticket and
(1) provide the full call including the used (and not working) path +
filename combination
(2) state the used operation system, and
(3) provide the full error traceback.

Is there a way to sort it out, so I can save the file in any
directory?

it actually works for me - so I need the info above to solve your issue :wink:

Cheers,
Robert