Reading stationxml inventory "Sender" error


I ran a read_inventory on a station XML file downloaded from Geofon website.
Unfortunately I get the following error :

list_obj = readFormat(filename, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/station/", line 103, in read_StationXML
sender = _tag2obj(root, _ns("Sender"), str)
AttributeError: 'NoneType' object has no attribute 'text'

Any idea on how to bypass this issue?



Hi Christian,

can you upload the file somewhere or send a link to it?



Here it is.


EVN_inventory.xml (45.2 KB)

Hi Christian,

the file you are trying to read is *not* what is called the “stationXML: format. I think the file you are trying to read is called “inventory XML” (or something like that) and used with SeisComP. There might be some way to convert the file within the SeisComP system.

Why you do not just use GFZ’s FDSN station service to get a valid stationXML file? This file you downloaded should be the upstream source for their FDSN service, but you get the conversion a no extra costs or effort.

Good luck!

ObsPy will soon be able to also read those files:

Hi Lion and Peter,

My mistake, I just made a proper request for the station.xml and now it works fine. Good to know that there will be a module for reading inventory xml.