You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS ubuntu: 18.04
Python version: 3.6
Obspy versions: 1.1.1
Obspy installed using pip
This is on run on Google Colab. We are trying to teach Obspy through Colab so students do not have to deal with Anaconda and local files/python installations.
I just tried this and what happens is that the pkg_util entry points are not found. Internally ObsPy uses these as a type of plug-in structure to discover and load all available file formats at startup time. Thus in your case it does not have the QuakeML plugin and consequently cannot read the files from the web service.
Thankfully there is an easy solution - after !pip install obspy just restart the runtime (Runtime -> Restart runtime ...) and then it worked - at least when I just tried it. I'm not sure about the inner working of colab and how often an environment is reset but this is a quick, altough also dirty way to get the whole thing to work.
Hey @krischer,
Have you find a workaround for this till now which doesn't involve restarting your Kernel, since this trick fails when you have to save a Kaggle kernel.
OS ubuntu: 18.04
Python version: 3.6
Obspy versions: 1.1.1
Obspy installed using pip
This is on run on Google Colab. We are trying to teach Obspy through Colab so students do not have to deal with Anaconda and local files/python installations.
Reproduction code:
The connection to IRIS looks good from the debug:
Error is thrown when trying to read events from
io.BytesIO
object:The text was updated successfully, but these errors were encountered: