nhoffman / bioy

Tools for NGS sequence analysis and bacterial classification
GNU General Public License v3.0
0 stars 0 forks source link

test in tests/test_denoise.py fail (install binary dependencies with dev/bootstrap.sh [muscle, usearch, ssearch]) #15

Open nhoffman opened 10 years ago

nhoffman commented 10 years ago

Multiple test fail, but here's an example:

$ ./testone -vv tests.test_denoise.TestDenoise.test01
test01 (tests.test_denoise.TestDenoise) ... DEBUG denoise 117 aligning cluster 1 len 4
ERROR

======================================================================
ERROR: test01 (tests.test_denoise.TestDenoise)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_denoise.py", line 33, in test01
    self.main([fa, '--clusters', uc, '--outfile', fa_out, '--limit', limit])
  File "tests/test_denoise.py", line 24, in main
    main(['denoise'] + [str(a) for a in arguments])
  File "bioy_pkg/scripts/main.py", line 36, in main
    return action(arguments)
  File "bioy_pkg/subcommands/denoise.py", line 150, in action
    for cluster, cons in pool.imap_unordered(align_and_consensus, enumerate(chunks, start = 1)):
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 626, in next
    raise value
OSError: [Errno 2] No such file or directory

----------------------------------------------------------------------
Ran 1 test in 0.185s

FAILED (errors=1)
nhoffman commented 10 years ago

Ah, this was on a system without usearch installed - I guess we just need a more informative error message, or make sure usearch is installed before running.

crosenth commented 9 years ago

Actually Muscle but thanks a lot for figuring this out as the Travis tests were also failing on this. The solution is to get all these binaries (muscle, usearch6, ssearch36) installed locally in the bootstrap.sh script.