Hi all,
Last year, the Obspy.clients.iris utility quit serving and several of my utilities were broken in the process.
Unfortunately, crunch time arrived today, and I need them for Monday.
I have looked in the documentation, followed the examples at
https://docs.obspy.org/packages/autogen/obspy.clients.iris.client.Client.distaz.html
and it appears to still be broken.
Worse,
I tried to update my Obspy from 1.0.1 to 1.0.2 and now the whole of Obspy has ceased to be functional.
I typed “conda update obspy”…
Now I can’t even import Obspy without receiving an error!
What has just happened?
megies
February 25, 2017, 1:23pm
2
This is a known problem, please see this ticket:
maintenance_1.0.x ← krischer:windows_ctypes_fix
opened 12:04PM - 10 Jan 17 UTC
ObsPy currently is completely broken on Windows when using Python 2.7.13 which w… as released 24 days ago. Mac and Linux seem to be not affected.
```
C:\Miniconda-x64\envs\test\python.exe: Could not load shared library "libmseed_Windows_64bit_py27.pyd".
LoadLibrary() argument 1 must be string, not unicode
```
Last good appveyor run (on Python 2.7.12), dating from 2016-12-18: https://ci.appveyor.com/project/obspy/obspy/build/1.0.3911-master#L25
First bad appveyor run (on Python 2.7.13), dating from 2016-12-19: https://ci.appveyor.com/project/obspy/obspy/build/1.0.3912-master#L25
Upstream bug report for Python: https://bugs.python.org/issue29082
Other projects experiencing the same issue: rg3/youtube-dl#11540
In principle we could just wait for Python 2.7.14 and tell Windows users to avoid 2.7.13 but it would be better to fix it on our end, I guess.
See my comment:
maintenance_1.0.x ← krischer:windows_ctypes_fix
@DianKusumawati as a quick and dirty short term solution for you, you could try … to manually apply the fix in 1fa7d828cc7b2b753afee4aa237ca844ac3635c1 in your installed obspy 1.0.2 version in your anaconda env.. (the path to the `libanmes.py` is shown in your traceback at the bottom)
You should be able to fix your obspy install by manually making that
tiny change in your newly installed obspy 1.0.2.
hope it helps,
T
Unfortunately, crunch time arrived today, and I need them for Monday.
I have looked in the documentation, followed the examples at
obspy.clients.iris.client.Client.distaz — ObsPy 1.4.2 documentation
and it appears to still be broken.
ObsPy also has local versions of some functionalities of the iris
client. They are documented here:
As this is a bit hard to discover they will also be documented on the
iris client module's main page after this PR
(Document local alternatives to the IRIS web services by krischer · Pull Request #1689 · obspy/obspy · GitHub ) has been merged.
Cheers!
Lion