[MSNoise] Scan_archive issue

caronvossen caronvossen at gmail.com
Fri Mar 17 06:50:21 UTC 2017


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


More information about the MSNoise mailing list