I have been trying to install Obspy via the apt repository. Once installed if I run import obspy i get :
ImportError: <module ‘obspy.seg2.seg2’ from ‘/usr/lib/python2.7/dist-packages/obspy/seg2/seg2.py’> has no ‘writeSEG2’ attribute
if I run from obspy.core import read:
TypeError: not all arguments converted during string formatting
I am confused as to where the problem exists during the installation?
Hi,
I have been trying to install Obspy via the apt repository. Once
installed if I run import obspy i get :
ImportError: <module 'obspy.seg2.seg2' from
'/usr/lib/python2.7/dist-packages/obspy/seg2/seg2.py'> has no
'writeSEG2' attribute
if I run from obspy.core import read:
TypeError: not all arguments converted during string formatting
I am confused as to where the problem exists during the installation?
Thanks,
Nick
Dear Nick,
Try installation that way:
And check obspy's version, by typing in python shell:
The Debian/Ubuntu packages should really work, I would be pretty
surprised if the didn't. I will try to double check as soon as possible
(I think I have a precise virtual box somewhere..).
I tried on a clean precise build in a virtual box, it installed fine via apt. It is likely some conflict with remnant files from a version I uninstalled in the past.
Thanks for the help,
Nick
Good to hear. And that's exactly why we bother building deb packages
for all Debians/Ubuntus out there in the first place. Clean install,
clean uninstall, all in one line.