macports gets checksum error when trying to install py-obspy-devel

Hello,

I am running a Mac OS 10.10.5 (Yosemite)

When I run the following, I get a checksum error:

sudo port install py-obspy-devel

I have already tried:
sudo port self update
sudo port clean —dist py-obspy-devel

but it does not help

Thanks,

Mark Goldman
U.S. Geological Survey
345 Middlefield Rd, MS 977
Menlo Park, CA 94025
goldman@usgs.gov
650-329-5496

Hi Mark,

if there is no specific reason why you need it in an existing Python
environment of your system, the easiest and cleanest installation in
almost all cases is to set up a fresh, independent Python environment
with Anaconda, see
https://github.com/obspy/obspy/wiki/Installation-via-Anaconda.

cheers,
Tobias

Thanks Tobias

I installed anaconda, then typed, in the ~/anaconda/bin directory:

conda create -n myenv python=3.4
source ./activate myenv
conda install -n myenv -c obspy obspy

then I try to run the following python script:

import signal
import sys
from obspy import read, Trace, Stream, UTCDateTime
from obspy.core import AttribDict
from obspy.segy.segy import SEGYTraceHeader, SEGYBinaryFileHeader
from obspy.segy.core import readSEGY
import numpy as np

fin=readSEGY('/Users/goldman/dimond15.11.segy’)

and all I get are a bunch of inscrutable errors:

(myenv)sh-3.2$ python t.py
Traceback (most recent call last):
  File "t.py", line 3, in <module>
    from obspy import read, Trace, Stream, UTCDateTime
  File "/Users/goldman/anaconda/envs/myenv/lib/python3.4/site-packages/obspy-0.10.2-py3.4-macosx-10.5-x86_64.egg/obspy/__init__.py", line 47, in <module>
    read.__doc__ % make_format_plugin_table("waveform", "read", numspaces=4)
  File "/Users/goldman/anaconda/envs/myenv/lib/python3.4/site-packages/obspy-0.10.2-py3.4-macosx-10.5-x86_64.egg/obspy/core/util/base.py", line 476, in make_format_plugin_table
    "obspy.plugin.%s.%s" % (group, name), method)
  File "/Users/goldman/anaconda/envs/myenv/lib/python3.4/site-packages/setuptools-19.1.1-py3.4.egg/pkg_resources/__init__.py", line 568, in load_entry_point
  File "/Users/goldman/anaconda/envs/myenv/lib/python3.4/site-packages/setuptools-19.1.1-py3.4.egg/pkg_resources/__init__.py", line 2720, in load_entry_point
  File "/Users/goldman/anaconda/envs/myenv/lib/python3.4/site-packages/setuptools-19.1.1-py3.4.egg/pkg_resources/__init__.py", line 2379, in load
  File "/Users/goldman/anaconda/envs/myenv/lib/python3.4/site-packages/setuptools-19.1.1-py3.4.egg/pkg_resources/__init__.py", line 2396, in require
  File "/Users/goldman/anaconda/envs/myenv/lib/python3.4/site-packages/setuptools-19.1.1-py3.4.egg/pkg_resources/__init__.py", line 849, in resolve
pkg_resources.DistributionNotFound: The 'nose>=0.11.1' distribution was not found and is required by matplotlib

any suggestions? Is OBSPY compatible with anaconda on a Mac Yosemite OS 10.10?

Mark

Hi Tobias

If I try to run obspy outside of Anaconda, using python 3.4.4, and running the t.py python script:

import signal
import sys
from obspy import read, Trace, Stream, UTCDateTime
from obspy.core import AttribDict
from obspy.segy.segy import SEGYTraceHeader, SEGYBinaryFileHeader
from obspy.segy.core import readSEGY
import numpy as np
import sys

I get the error message:

[goldman] python t.py

Traceback (most recent call last):
  File "t.py", line 11, in <module>
    fin=readSEGY('/Users/goldman/dimond15.11.segy')
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/obspy/segy/core.py", line 245, in readSEGY
    second=second)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/obspy/core/utcdatetime.py", line 330, in __init__
    dt = datetime.datetime(*args, **kwargs)
TypeError: Required argument 'month' (pos 2) not found

which make me think there is a bug in OBSPY’s readSEGY function

Mark