Dear Msnoise-users,
I am getting the error below when I was trying to compute the cross-correlation. I
installed the package using easy_install scikits.samplerateafter downloading package
libsamplerate via macports. I am running MSnoise on Os Mountain lion on Mac.
python 03.compute_cc.py
Traceback (most recent call last):
File "03.compute_cc.py", line 6, in <module>
from scikits.samplerate import resample
File
"/Library/Python/2.7/site-packages/scikits.samplerate-0.3.3-py2.7-macosx-10.8-intel.egg/scikits/samplerate/__init__.py",
line 6, in <module>
from _samplerate import resample, available_convertors, src_version_str, \
File "numpy.pxd", line 43, in scikits.samplerate._samplerate
(/private/tmp/easy_install-2i6LTa/scikits.samplerate-0.3.3/scikits/samplerate/_samplerate.c:3807)
ValueError: numpy.dtype does not appear to be the correct type object
Thanks a lot for your help,
Carolin
From thomas.lecocq(a)seismology.be Wed Oct 16 06:35:36
2013
Return-Path: <thomas.lecocq(a)seismology.be>
X-Original-To: msnoise(a)mailman-as.oma.be
Delivered-To: msnoise(a)mailman-as.oma.be
Received: from smtp1.oma.be (smtp1.oma.be [193.190.144.13])
by mailman-as.oma.be (Postfix) with ESMTP id D4103201C3
for <msnoise(a)mailman-as.oma.be>be>; Wed, 16 Oct 2013 06:35:36 +0000 (UTC)
Received: from [192.168.141.41] (tlecocq-pc.oma.be [192.168.141.41])
by smtp1.oma.be (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id
r9G6Z1iX018548
for <msnoise(a)mailman-as.oma.be>be>; Wed, 16 Oct 2013 06:35:01 GMT
Message-ID: <525E3393.2060802(a)seismology.be>
Date: Wed, 16 Oct 2013 08:34:59 +0200
From: Thomas Lecocq <thomas.lecocq(a)seismology.be>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
rv:24.0) Gecko/20100101 Thunderbird/24.0.1
MIME-Version: 1.0
To: msnoise(a)mailman-as.oma.be
References: <1381866561.91845.YahooMailNeo(a)web172804.mail.ir2.yahoo.com>
In-Reply-To: <1381866561.91845.YahooMailNeo(a)web172804.mail.ir2.yahoo.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Subject: Re: [MSNoise] scikits.samplerate
X-BeenThere: msnoise(a)mailman-as.oma.be
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: Python Package for Monitoring Seismic Velocity Changes using
Ambient Seismic Noise <msnoise(a)mailman-as.oma.be>
List-Id: Python Package for Monitoring Seismic Velocity Changes using Ambient
Seismic Noise <msnoise.mailman-as.oma.be>
List-Unsubscribe: <http://mailman-as.oma.be/mailman/options/msnoise>,
<mailto:msnoise-request@mailman-as.oma.be?subject=unsubscribe>
List-Archive: <http://mailman-as.oma.be/pipermail/msnoise/>
List-Post: <mailto:msnoise@mailman-as.oma.be>
List-Help: <mailto:msnoise-request@mailman-as.oma.be?subject=help>
List-Subscribe: <http://mailman-as.oma.be/mailman/listinfo/msnoise>,
<mailto:msnoise-request@mailman-as.oma.be?subject=subscribe>
X-List-Received-Date: Wed, 16 Oct 2013 06:35:37 -0000
Hi Carolin,
This is probably an issue related to versions of numpy and/or scipy.
Can you post the output of :
$ python -c "import numpy; print numpy.__version__"
$ python -c "import scipy; print scipy.__version__"
And maybe try to update numpy and scipy :
$ easy_install -U numpy scipy
Note, this might break other routines that depend on numpy (I usually
don't care so much).
Best regards
Thomas
Le 15/10/2013 21:49, Carolin Boese a écrit :
Dear Msnoise-users,
I am getting the error below when I was trying to compute the cross-correlation. I
installed the package using easy_install scikits.samplerateafter downloading package
libsamplerate via macports. I am running MSnoise on Os Mountain lion on Mac.
python 03.compute_cc.py
Traceback (most recent call last):
File "03.compute_cc.py", line 6, in <module>
from scikits.samplerate import resample
File
"/Library/Python/2.7/site-packages/scikits.samplerate-0.3.3-py2.7-macosx-10.8-intel.egg/scikits/samplerate/__init__.py",
line 6, in <module>
from _samplerate import resample, available_convertors, src_version_str, \
File "numpy.pxd", line 43, in scikits.samplerate._samplerate
(/private/tmp/easy_install-2i6LTa/scikits.samplerate-0.3.3/scikits/samplerate/_samplerate.c:3807)
ValueError: numpy.dtype does not appear to be the correct type object
Thanks a lot for your help,
Carolin
_______________________________________________
MSNoise mailing list
MSNoise(a)mailman-as.oma.be
http://mailman-as.oma.be/mailman/listinfo/msnoise