[MSNoise] Scan_archive issue

hsy119 at mail.ustc.edu.cn hsy119 at mail.ustc.edu.cn
Sat Mar 18 02:01:24 UTC 2017


Ok, I'll try this version.
Thanks for your patience and kindness.

Shuye


> -----原始邮件-----
> 发件人: "Thomas Lecocq" <Thomas.Lecocq at seismology.be>
> 发送时间: 2017-03-18 06:34:31 (星期六)
> 收件人: msnoise at mailman-as.oma.be
> 抄送: 
> 主题: Re: [MSNoise] Scan_archive issue
> 
> Hello Shuye,
> 
> That won't work because scikits.samplerate doesn't work from pypi for 
> Python3, you will have to install it from source on github:
> 
> https://github.com/cournape/samplerate
> 
> the "master" version is OK for python3.
> 
> Thomas
> 
> 
> On 17/03/2017 13:33, hsy119 at mail.ustc.edu.cn wrote:
> > Hi, Thomas
> >
> > Very appreciate for your hard work on this package!
> >
> > Actually, I just tried to install  scikits.samplerate one more time, using  'pip install scikits.samplerate'.
> > It shows:
> > Requirement already satisfied (use --upgrade to upgrade): scikits.samplerate in /public/software/anaconda3/lib/python3.5/site-packages
> > Requirement already satisfied (use --upgrade to upgrade): numpy in /public/software/anaconda3/lib/python3.5/site-packages (from scikits.samplerate)
> >
> > But when I check 'msnoise bugreport -m',  it shows '[ ] scikits.samplerate: not found (install via None)'
> > That's really weird.
> > Any suggestions?
> >
> > Cheers!
> >
> > Shuye
> >
> >
> >> -----原始邮件-----
> >> 发件人: "Thomas Lecocq" <Thomas.Lecocq at oma.be>
> >> 发送时间: 2017-03-17 18:13:53 (星期五)
> >> 收件人: msnoise at mailman-as.oma.be
> >> 抄送:
> >> 主题: Re: [MSNoise] Scan_archive issue
> >>
> >> Shuye,
> >>
> >> Thanks for reporting this.
> >>
> >> Indeed this doens't work for you. But it's not an MSNoise issue, it's
> >> only because it's trickier to install samplerate on py3, still, it's doable.
> >>
> >> In the next version of MSNoise, we have added an third option for
> >> resampling, called "Lanczos", using the ObsPy built-in resampling
> >> method. We tested it against scikits.samplerate and the results are
> >> identical, except close to Nyquist (different decimation filters).
> >>
> >> Cheers,
> >>
> >> Thomas
> >>
> >>
> >>
> >> Le 17-03-17 à 10:16, hsy119 at mail.ustc.edu.cn a écrit :
> >>> Well,I use Python 3, and scikits.samplerate cannot be successfully installed on my server.
> >>> But anyway, I choose Decimate resampling method, so it's not very serious.
> >>>
> >>> Shuye
> >>>
> >>>> -----原始邮件-----
> >>>> 发件人: "Thomas Lecocq" <Thomas.Lecocq at oma.be>
> >>>> 发送时间: 2017-03-17 16:33:12 (星期五)
> >>>> 收件人: msnoise at mailman-as.oma.be
> >>>> 抄送:
> >>>> 主题: Re: [MSNoise] Scan_archive issue
> >>>>
> >>>>    > It seems some functions don't work well on Python 3.
> >>>>
> >>>> to my knowledge, just this one.
> >>>>
> >>>> Thomas
> >>>>
> >>>>
> >>>> Le 17-03-17 à 09:27, hsy119 at mail.ustc.edu.cn a écrit :
> >>>>> Hi, Thomas
> >>>>>
> >>>>> Thank you for answering
> >>>>> It seems some functions don't work well on Python 3.
> >>>>>
> >>>>> Have a nice day!
> >>>>>
> >>>>> Shuye
> >>>>>
> >>>>>
> >>>>>> -----原始邮件-----
> >>>>>> 发件人: "Thomas Lecocq" <Thomas.Lecocq at oma.be>
> >>>>>> 发送时间: 2017-03-17 15:40:08 (星期五)
> >>>>>> 收件人: msnoise at mailman-as.oma.be
> >>>>>> 抄送:
> >>>>>> 主题: Re: [MSNoise] Scan_archive issue
> >>>>>>
> >>>>>> Hi Shuye,
> >>>>>>
> >>>>>>
> >>>>>> this is a bug in MSNoise running on Python3. It has been reported
> >>>>>> (https://github.com/ROBelgium/MSNoise/issues/74) but I haven't corrected
> >>>>>> it yet.
> >>>>>>
> >>>>>> Meanwhile, indeed, the --init should work OK (although slower)...
> >>>>>>
> >>>>>> Thomas
> >>>>>>
> >>>>>>
> >>>>>> Le 17-03-17 à 07:50, caronvossen a écrit :
> >>>>>>> Hi Shuye,
> >>>>>>> Maybe if you omit "-t 2"? I never use that part, because it gave me a lot of errors at the beginning. However, I am not sure whether it is the same problem as you have right now, because for me it didn't work when I used the --init option either.
> >>>>>>> I hope this helps. Otherwise Thomas or someone else will probably have a better idea how to solve your problem :)
> >>>>>>> Good luck!
> >>>>>>> Best wishes,
> >>>>>>> Caron Vossen
> >>>>>>> Verzonden vanaf mijn Samsung Galaxy-smartphone.
> >>>>>>> -------- Oorspronkelijk bericht --------Van: hsy119 at mail.ustc.edu.cn Datum: 17-03-17  06:48  (GMT+01:00) Aan: msnoise at mailman-as.oma.be Onderwerp: [MSNoise] Scan_archive issue
> >>>>>>> Hi, Thomas and users
> >>>>>>>
> >>>>>>> I meet a bug when I try to do scan_archive.
> >>>>>>> First time,I used --init option, and data was added successfully.
> >>>>>>> But when I try not to use --init option, there's a bug.
> >>>>>>> Here's bug report:
> >>>>>>>
> >>>>>>> [hsy119 at yhjs3 msnoise_my]$ msnoise -t 2 scan_archive
> >>>>>>> 2017-03-17 13:22:42 [INFO] *** Starting: Scan Archive ***
> >>>>>>> 2017-03-17 13:22:42 [INFO] Will work on 2 threads
> >>>>>>> Traceback (most recent call last):
> >>>>>>>       File "/public/software/anaconda3/bin/msnoise", line 11, in <module>
> >>>>>>>         sys.exit(run())
> >>>>>>>       File "/public/software/anaconda3/lib/python3.5/site-packages/msnoise/scripts/msnoise.py", line 614, in run
> >>>>>>>         cli(obj={})
> >>>>>>>       File "/public/software/anaconda3/lib/python3.5/site-packages/click/core.py", line 716, in __call__
> >>>>>>>         return self.main(*args, **kwargs)
> >>>>>>>       File "/public/software/anaconda3/lib/python3.5/site-packages/click/core.py", line 696, in main
> >>>>>>>         rv = self.invoke(ctx)
> >>>>>>>       File "/public/software/anaconda3/lib/python3.5/site-packages/click/core.py", line 1060, in invoke
> >>>>>>>         return _process_result(sub_ctx.command.invoke(sub_ctx))
> >>>>>>>       File "/public/software/anaconda3/lib/python3.5/site-packages/click/core.py", line 889, in invoke
> >>>>>>>         return ctx.invoke(self.callback, **ctx.params)
> >>>>>>>       File "/public/software/anaconda3/lib/python3.5/site-packages/click/core.py", line 534, in invoke
> >>>>>>>         return callback(*args, **kwargs)
> >>>>>>>       File "/public/software/anaconda3/lib/python3.5/site-packages/click/decorators.py", line 17, in new_func
> >>>>>>>         return f(get_current_context(), *args, **kwargs)
> >>>>>>>       File "/public/software/anaconda3/lib/python3.5/site-packages/msnoise/scripts/msnoise.py", line 262, in scan_archive
> >>>>>>>         main(init, threads=ctx.obj['MSNOISE_threads'])
> >>>>>>>       File "/public/software/anaconda3/lib/python3.5/site-packages/msnoise/s01scan_archive.py", line 192, in main
> >>>>>>>         files = sorted(stdout.replace('\r', '').split('\n'))
> >>>>>>> TypeError: a bytes-like object is required, not 'str'
> >>>>>>>
> >>>>>>>
> >>>>>>> So now, every time I want to add some new data, I have to use '--init', not sure whether it would cause new problem
> >>>>>>> What shall I do?
> >>>>>>>
> >>>>>>> Best Regard
> >>>>>>> Shuye Huang
> >>>>>>> _______________________________________________
> >>>>>>> MSNoise mailing list
> >>>>>>> MSNoise at mailman-as.oma.be
> >>>>>>> http://mailman-as.oma.be/mailman/listinfo/msnoise
> >>>>>>> _______________________________________________
> >>>>>>> MSNoise mailing list
> >>>>>>> MSNoise at mailman-as.oma.be
> >>>>>>> http://mailman-as.oma.be/mailman/listinfo/msnoise
> >>>>>> _______________________________________________
> >>>>>> MSNoise mailing list
> >>>>>> MSNoise at mailman-as.oma.be
> >>>>>> http://mailman-as.oma.be/mailman/listinfo/msnoise
> >>>>> _______________________________________________
> >>>>> MSNoise mailing list
> >>>>> MSNoise at mailman-as.oma.be
> >>>>> http://mailman-as.oma.be/mailman/listinfo/msnoise
> >>>> _______________________________________________
> >>>> MSNoise mailing list
> >>>> MSNoise at mailman-as.oma.be
> >>>> http://mailman-as.oma.be/mailman/listinfo/msnoise
> >>> _______________________________________________
> >>> MSNoise mailing list
> >>> MSNoise at mailman-as.oma.be
> >>> http://mailman-as.oma.be/mailman/listinfo/msnoise
> >> _______________________________________________
> >> MSNoise mailing list
> >> MSNoise at mailman-as.oma.be
> >> http://mailman-as.oma.be/mailman/listinfo/msnoise
> > _______________________________________________
> > MSNoise mailing list
> > MSNoise at mailman-as.oma.be
> > http://mailman-as.oma.be/mailman/listinfo/msnoise
> 
> _______________________________________________
> MSNoise mailing list
> MSNoise at mailman-as.oma.be
> http://mailman-as.oma.be/mailman/listinfo/msnoise


More information about the MSNoise mailing list