Hi all,
I'm installing the Msnoise 1.4 version in Ubuntu system with the Quick Start process without errors, and now I have this problem when I launch the installer.
Thank you for the help !
Juan
juan@amuria:~/anaconda/lib/python2.7/site-packages/msnoise$ msnoise install
Launching the installer
Traceback (most recent call last):
File "/home/juan/anaconda/bin/msnoise", line 9, in <module>
load_entry_point('msnoise==1.4.1', 'console_scripts', 'msnoise')()
File "/home/juan/anaconda/lib/python2.7/site-packages/msnoise/scripts/msnoise.py", line 614, in run
cli(obj={})
File "/home/juan/anaconda/lib/python2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/home/juan/anaconda/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/juan/anaconda/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/juan/anaconda/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/juan/anaconda/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/juan/anaconda/lib/python2.7/site-packages/msnoise/scripts/msnoise.py", line 203, in install
from ..s000installer import main
File "/home/juan/anaconda/lib/python2.7/site-packages/msnoise/s000installer.py", line 36, in <module>
from .api import create_database_inifile
File "/home/juan/anaconda/lib/python2.7/site-packages/msnoise/api.py", line 21, in <module>
from obspy.signal.invsim import cosine_taper
ImportError: cannot import name cosine_taper
Juan Rueda
Instituto Geográfico Nacional
Dear Thomas Lecoq and everyone,
Greetings from Grenoble, France
I have just installed Msnoise 1.4.1, and I am having trouble to use the admin interface. Would you have an idea of the reason ?
=== Example ===
=============
(msnoise) C:\Users\lebremat> msnoise admin
c:\programdata\anaconda3\envs\msnoise\lib\site-packages\flask\exthook.py:71: ExtDeprecationWarning: Importing flask.ext.admin is deprecated, use flask_admin instead.
.format(x=modname), ExtDeprecationWarning
c:\programdata\anaconda3\envs\msnoise\lib\site-packages\flask\exthook.py:71: ExtDeprecationWarning: Importing flask.ext.admin.contrib is deprecated, use flask_admin.contrib instead.
.format(x=modname), ExtDeprecationWarning
c:\programdata\anaconda3\envs\msnoise\lib\site-packages\flask\exthook.py:71: ExtDeprecationWarning: Importing flask.ext.admin.contrib.sqla is deprecated, use flask_admin.contrib.sqla instead.
.format(x=modname), ExtDeprecationWarning
c:\programdata\anaconda3\envs\msnoise\lib\site-packages\flask\exthook.py:71: ExtDeprecationWarning: Importing flask.ext.admin.actions is deprecated, use flask_admin.actions instead.
.format(x=modname), ExtDeprecationWarning
c:\programdata\anaconda3\envs\msnoise\lib\site-packages\flask\exthook.py:71: ExtDeprecationWarning: Importing flask.ext.admin.babel is deprecated, use flask_admin.babel instead.
.format(x=modname), ExtDeprecationWarning
2017-02-10 18:17:21 [INFO] * Restarting with stat
c:\programdata\anaconda3\envs\msnoise\python.exe: can't open file 'C:\ProgramData\Anaconda3\envs\msnoise\Scripts\msnoise': [Errno 2] No such file or directory
When trying to acces http://localhost:5000/ or http://127.0.0.1:5000/ there is a white page
(same when writing : msnoise admin -p 5000)
=== My config ===
==============
I have installed msnoise 1.4 on windows 7, with a python 2.7 dedicated environment under anaconda that I called 'msnoise'
Installation process :
conda create --name msnoise python=2.7 obspy flask-admin markdown folium pymysql cython
Microsoft Visual C++ Compiler for Python
GnuWin, with the PATH to the bins.
Scikits.samplerates
EasyPhP
pip install msnoise
Sqlite database
Thank you for the help !
Mathieu
Anyone running msnoise with mysql on Ubuntu? I have a working monitoring
setup using sqllite, but want to take advantage of multi threading, so want
to move over mysql. Whenever I try and select mysql in msnoise install it
spits out;
auth_packet = self._read_packet()
File "/usr/local/lib/python3.5/dist-packages/pymysql/connections.py",
line 981, in _read_packet
packet.check_error()
File "/usr/local/lib/python3.5/dist-packages/pymysql/connections.py",
line 393, in check_error
err.raise_mysql_exception(self._data)
File "/usr/local/lib/python3.5/dist-packages/pymysql/err.py", line 107,
in raise_mysql_exception
raise errorclass(errno, errval)
sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (1045,
"Access denied for user 'ashton'@'localhost' (using password: YES)")
I've tried with sudo/root, etc. Suggestions?
-ashton
--
Ashton F. Flinders, Ph.D
U.S. Geological Survey
345 Middlefield Road
Menlo Park, CA 94025
(650) 329-5050
Dear Users,
Today i had this problem after run the staking:
2017-01-18 18:09:54 [DEBUG] Processing AB_AKN:AB_BIGH-ZZ-1
2017-01-18 18:09:55 [DEBUG] Found 954 updated days
2017-01-18 18:09:55 [DEBUG] New Data for AB_AKN:AB_BIGH-ZZ-1
Traceback (most recent call last):
File "/home/carmelo/anaconda/bin/msnoise", line 11, in <module>
sys.exit(run())
File "/home/carmelo/anaconda/lib/python2.7/site-packages/msnoise/scripts/msnoise.py", line 614, in run
cli(obj={})
File "/home/carmelo/anaconda/lib/python2.7/site-packages/click/core.py", line 610, in __call__
return self.main(*args, **kwargs)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/click/core.py", line 590, in main
rv = self.invoke(ctx)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/click/core.py", line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/carmelo/anaconda/lib/python2.7/site-packages/click/core.py", line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/click/core.py", line 416, in invoke
return callback(*args, **kwargs)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/msnoise/scripts/msnoise.py", line 301, in stack
main('ref', interval)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/msnoise/s04stack.py", line 209, in main
db, sta1, sta2, filterid, components, datelist, format=format)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/msnoise/api.py", line 1020, in get_results
corr = stack(session, stack_data)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/msnoise/api.py", line 978, in stack
coh = 1. / data.shape[0] * np.abs(phasestack)
ZeroDivisionError: float division by zero
carmelo@COPS-023437:~/msnoise/Project30$
Someone had this type of problem and already know a way to fix?
probably python is using integer division and because in it the quotient is rounded down... it generate the error?
probably the solution is simpler..
looking forward to know about you guys!
very very thanks!
-----------
Mr Carmelo Sammarco MSc BSc FGS
PhD Student in Geology and Petroleum Geology
The University of Aberdeen is a charity registered in Scotland, No SC013683.
Tha Oilthigh Obar Dheathain na charthannas clàraichte ann an Alba, Àir. SC013683.
Dear users,
long time from my last mail..
I have this small issue ( I hope) when I run the CCs:
2017-01-17 13:04:50 [INFO] *** Starting: Compute CC ***
2017-01-17 13:04:50 [INFO] Will compute ZZ
2017-01-17 13:04:51 [INFO] New CC Job: 2010-01-02 (1 pairs with 2 stations)
Process Process-1:
Traceback (most recent call last):
File "/home/carmelo/anaconda/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/home/carmelo/anaconda/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/msnoise/s03compute_cc.py", line 430, in main
basetime, tramef_Z = preprocess(db, stations, comps, goal_day, params, tramef_Z)
File "/home/carmelo/anaconda/lib/python2.7/site-packages/msnoise/s03compute_cc.py", line 355, in preprocess
return basetime, tramef_Z
UnboundLocalError: local variable 'basetime' referenced before assignment
Before modify the code to find a solution by myself I would like know if someone already had the same issue and if yes what can be the easy solution.
cheers and thanks,
-----------
Mr Carmelo Sammarco MSc BSc FGS
PhD Student in Geology and Petroleum Geology
The University of Aberdeen is a charity registered in Scotland, No SC013683.
Tha Oilthigh Obar Dheathain na charthannas clàraichte ann an Alba, Àir. SC013683.
Dear Thomas, Thanks for your replay. There are just a few errors like that. It is rare, I checked those sac data with error, picked them out , and rerun, It seems all right. However, There are many gaps, pulse calibration and earthquake signals in those sac data. Bellow is the link to the access of those data mentioned before. OneDrive share links: https://1drv.ms/f/s!ArWfPHWmchfDlWAgc2ho7BDgMbvP
Best wishes!
Wang Liwei.
Thomas and msnoise users,
Have you ever across the multiprocessing CC error when you calculate the CC functions? When I just use the ZZ components, Sometimes this error happen, Sometimes it's not. I checked the SAC file and modified the Calibration factor to 1.0, but it's still happens, So it should not the problem of the data and SAC header. I appreciate in advance for any help.
ERROR MESSAGE:2016-12-21 15:36:22 [DEBUG] GD.DFH.Z Slicing Stream to 2014-01-15T00:00:00.000000Z:2014-01-15T23:59:59.990000Z2016-12-21 15:36:22 [DEBUG] GD.DFH.Z Highpass at 0.02 Hz2016-12-21 15:36:22 [DEBUG] GD.DFH.Z Lowpass at 8.00 Hz2016-12-21 15:36:22 [DEBUG] GD.DFH.Z Downsample to 20.0 Hz2016-12-21 15:36:24 [DEBUG] GD.DOY.Z Reading 2 Files2016-12-21 15:36:24 [DEBUG] Checking sample alignment2016-12-21 15:36:24 [DEBUG] Checking GapsProcess Process-1:Traceback (most recent call last): File "/home/rex/anaconda2/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/home/rex/anaconda2/lib/python2.7/multiprocessing/process.py", line 114, in run self._target(*self._args, **self._kwargs) File "/home/rex/anaconda2/lib/python2.7/site-packages/msnoise/s03compute_cc.py", line 430, in main basetime, tramef_Z = preprocess(db, stations, comps, goal_day, params, tramef_Z) File "/home/rex/anaconda2/lib/python2.7/site-packages/msnoise/s03compute_cc.py", line 224, in preprocess stream[gap[0]] = stream[gap[0]].__add__(stream[gap[1]], method=0, fill_value="interpolate") File "/home/rex/anaconda2/lib/python2.7/site-packages/obspy/core/trace.py", line 676, in __add__ raise TypeError("Calibration factor differs")TypeError: Calibration factor differsend of compute the cc!
Dear all..
I am trying to start with msnoise (this time for real). I am following the workflow on the website with the test dataset. when i run "msnoise -c plot distance" from the folder with the test data, i got an error:
File "/home/blaz/msnoise/test_run/distance.py", line 18, in <module>
from scipy.stats.stats import nanmean
ImportError: cannot import name 'nanmean'
I changed the line
from scipy.stats.stats import nanmean
to
from scipy import stats
and now it works.
Any comment on that? Will this brake something for me in future runs or was scipy updated and changed?
Thanks,
Blaz
Hi all!
AGU is like... tomorrow! So, for those of you present in San Francisco
this week, we can meet & discuss usages and future of MSNoise. I'll be
presenting a poster on Thursday (on another subject), but because all
our daily schedules are quite packed, I've booked half The Rogue Ales
Public House (see details below) on Wednesday evening (14 December) from
8pm onwards (they close at midnight). For those who have attended a
VolcanoSeismo beer event at AGU in the recent years, it's where I
organized it ! To gather more cool poeple, Lion Krischer will also send
this invite to the ObsPy mailing list, so expect lots of PyGeeks there too!!
The Rogue is part of a chain of bars/restaurants present in Oregon &
California. They serve their own brewed beers and lots of others. They
also serve excellent food!
(http://www.rogue.com/wp-content/uploads/2013/09/SFmenu-update-1-16.pdf).
We booked the place for ~30 people but we can be more. Still, we'd like
to know roughly the crowd we should expect :) so please fill in the
doodle below to tell us you're coming. And spread the word !
http://doodle.com/poll/m2by4wzcur2srdgz
Cheers,
Thomas
--
Info about The Rogue:
http://www.rogue.com/roguemeetinghalls/https://www.facebook.com/RogueSanFrancisco
Menu: http://www.rogue.com/wp-content/uploads/2013/09/SFmenu-update-1-16.pdf
Hi all,
I was wondering if anyone had already implemented something like this. I'd
like to be able to select which CC pairs I calculated, instead of all
combinations. My reasoning is, I want to use this for monitoring changes
associated with a potential magma reservoir, and only want to look at ray
paths that cross the caldera.
Thanks!
-ashton
--
Ashton F. Flinders, Ph.D
U.S. Geological Survey
345 Middlefield Road
Menlo Park, CA 94025
(650) 329-5050