Hi, I am new to obspy and need some help getting started. I'm running it on windows at the moment and cant seem to load any data. I use the syntax
from obspy.core import read
st = load("/Users/David/Desktop/UEASK_252.mseed")
print st
but I keep getting the following error
Traceback (most recent call last):
File "C:\Users\David\Desktop\obs2.py", line 6, in <module>
st = read("/Users/David/Desktop/UEASK_252.mseed")
File "C:\Python27\lib\site-packages\obspy\core\stream.py", line 196, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "C:\Python27\lib\site-packages\obspy\core\util\decorator.py", line 138, in wrapped_func
result = func(filename, *args, **kwargs)
File "C:\Python27\lib\site-packages\obspy\core\stream.py", line 274, in _read
raise TypeError(msg + ', '.join([_i.name for _i in ENTRY_POINTS]))
TypeError: Format is not supported. Supported Formats: SLIST, TSPAIR
There is a problem with your installation.
Please go to the Installation Instructions page, download the Microsoft
installer and run the installation again.
You can also execute "Run test suite" (from the start menu folder
"ObsPy") after that to make sure all modules are installed OK.
the module obspy.mseed is missing - seems like only obspy.core is
installed as only the two ASCII formats shipping with obspy.core are
offered. Also I guess the "load()" is just a typo and he means "read()"
So try using the ObsPy Windows Installer
(Home · obspy/obspy Wiki · GitHub) as Tobias pointed out and
report back if its still not working.
Cheers,
Robert
Tobi:
I am just wondering: he imports read and then calls load().
load() is actually not defined on my system, so how can he get
this message?
confused Martin
There is a problem with your installation. Please go to the
Installation Instructions page, download the Microsoft installer
and run the installation again. You can also execute "Run test
suite" (from the start menu folder "ObsPy") after that to make
sure all modules are installed OK.
best, Tobias
Hi, I am new to obspy and need some help getting started. I'm
running it on windows at the moment and cant seem to load any
data. I use the syntax
from obspy.core import read st =
load("/Users/David/Desktop/UEASK_252.mseed") print st
but I keep getting the following error
Traceback (most recent call last): File
"C:\Users\David\Desktop\obs2.py", line 6, in<module> st =
read("/Users/David/Desktop/UEASK_252.mseed") File
"C:\Python27\lib\site-packages\obspy\core\stream.py", line
196, in read st.extend(_read(file, format, headonly,
**kwargs).traces) File
"C:\Python27\lib\site-packages\obspy\core\util\decorator.py",
line 138, in wrapped_func result = func(filename, *args,
**kwargs) File
"C:\Python27\lib\site-packages\obspy\core\stream.py", line
274, in _read raise TypeError(msg + ', '.join([_i.name for _i
in ENTRY_POINTS])) TypeError: Format is not supported.
Supported Formats: SLIST, TSPAIR
Anyone able to help?? Thanks D
_______________________________________________ obspy-users
mailing list obspy-users@lists.sevor.de ObsPy Forum
_______________________________________________ obspy-users mailing
list obspy-users@lists.sevor.de ObsPy Forum
- --
Dr. Robert Barsch
Ludwig-Maximilians-Universität München
Department of Earth and Environmental Sciences, Geophysics
Theresienstr. 41/IV
D-80333 Munich
Germany
I did not notice the load() in the code quote which of course makes no
sense. However the error message clearly states a call to read() so this
is just a mistake in posting the actually executed code.
The message clearly indicates that none of the waveform I/O plugins are
installed properly, so the installation is broken or never worked
properly in the first place. As I wrote, please reinstall with the
*current* Windows installer (the installer was broken a couple of weeks
ago) available on the website. I tried it just yesterday and it worked fine.
looking at your error message I can see that obspy.core is installed
as system python package in "C:\Python27\lib\site-packages\" - but the
installer instead should install it into a virtual environment which
is located in your home directory, e.g. "C:\Users\David". So this is
very odd - so here some questions to tackle this issue:
(1) Which Windows OS: Vista, 7, 32/64 bit ?
(2) Did you try to install ObsPy not using the installer beforehand?
If yes what did you do exactly?
(3) Which ObsPy modules are listed in "C:\Python27\lib\site-packages\"
(4) Does "C:\Users\David\obspy" exist - and if yes what is the content
of that.
Sorry for all the questions - but as I don't have access on your
machine - its very hard to debug such problems
Cheers,
Robert
Hi again, reinstalled with the .exe from website (which was what I
had done originally) but still have the same problem. Any other
ideas?
from obspy.core import read st =
load("/Users/David/Desktop/UEASK_252.mseed") print st
but I keep getting the following error
Traceback (most recent call last): File
"C:\Users\David\Desktop\obs2.py", line 6, in<module> st =
read("/Users/David/Desktop/UEASK_252.mseed") File
"C:\Python27\lib\site-packages\obspy\core\stream.py", line
196, in read st.extend(_read(file, format, headonly,
**kwargs).traces) File
"C:\Python27\lib\site-packages\obspy\core\util\decorator.py",
(2) I originally used the .exe from the website for install, but had an error saying 'No module named core' when I tried to load data. I then downloaded the core module. Then uninstalled obspy and deleted "C:\Python27\lib\site-packages\core" and ran the .exe again. Which has me back where I started with the 'No module named core' error.
(3) "C:\Python27\lib\site-packages\" contains...
C:\Python27\Lib\site-packages>dir
Volume in drive C has no label.
Volume Serial Number is 7ECA-6003
ok a test run on my win7 64 box installing it a second time failed too
- - I'll was always testing on clean Vista and WinXP machines - but
there seems to be a bug in the installer which I have to figure out
yet - I'll contact you if its fixed.
Sorry for that and thanks for reporting.
Robert
- --
Dr. Robert Barsch
Ludwig-Maximilians-Universität München
Department of Earth and Environmental Sciences, Geophysics
Theresienstr. 41/IV
D-80333 Munich
Germany
I updated the installer - some minor bugs mostly related to updated
versions of some dependencies. Also the uninstall routine didn't work
correctly. I just tested the new installer on WinXP (32bit), Vista
(32bit) and 7 (64bit) and it worked like a charm - so hopefully for
you too
So please uninstall all ObsPy related packages in order to have a
"clean" system. Additionally check for the following folders/files and
delete them if they exists:
Remove also the ObsPy folder in the start menu. Finally delete any
reference to ObsPy within the file
C:\Python27\Lib\site-packages\easy-install.pth using a text editor -
just delete any line containing obspy.
After that download the updated version of obspy-setup.exe from the
homepage and install again. Once it is installed you should have a
ObsPy entry in the start menu - select IPython and try to run the
examples.
Hope it works + cheers,
Robert
PS: I know the "cleanup procedure" sounds pretty nasty - but mixing
ObsPy packages in system and a virtual environment is a really bad
idea - I primary want to eliminate possible error sources. Once
everything is set up the "right" way you only have to rerun the
installer to update packages and dependencies. So you don't have to
download + install each packages manually. The installer will also
skip existing/up-to-date packages.
- --
Dr. Robert Barsch
Ludwig-Maximilians-Universität München
Department of Earth and Environmental Sciences, Geophysics
Theresienstr. 41/IV
D-80333 Munich
Germany