allind / EukDetect

MIT License
43 stars 16 forks source link

errors in test_eukdetect.py #45

Closed tiantianlili closed 11 months ago

tiantianlili commented 11 months ago

I have changed path in configfile_for_test.yml, but still got errors. it seems like some problems in subprocess.py?

(eukdetect)ubuntu@ubuntu:/media/ubuntu/data/tianli/biosoft/eukdetect/EukDetect$ python tests/test_eukdetect.py
EEEE.
======================================================================
ERROR: test_class (__main__._01_HelpText)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_eukdetect.py", line 18, in test_class
    code, stdout, stderr = run(command)
  File "tests/test_eukdetect.py", line 11, in run
    process = subprocess.run(shlex.split(command), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/home/ubuntu/anaconda3/envs/eukdetect/lib/python3.6/subprocess.py", line 423, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/home/ubuntu/anaconda3/envs/eukdetect/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/home/ubuntu/anaconda3/envs/eukdetect/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'eukdetect': 'eukdetect'

======================================================================
ERROR: test_class (__main__._02_RunRunall)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_eukdetect.py", line 25, in test_class
    code, stdout, stderr = run(command)
  File "tests/test_eukdetect.py", line 11, in run
    process = subprocess.run(shlex.split(command), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/home/ubuntu/anaconda3/envs/eukdetect/lib/python3.6/subprocess.py", line 423, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/home/ubuntu/anaconda3/envs/eukdetect/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/home/ubuntu/anaconda3/envs/eukdetect/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'eukdetect': 'eukdetect'

======================================================================
ERROR: test_class (__main__._03_RunAlnCmd)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_eukdetect.py", line 32, in test_class
    code, stdout, stderr = run(command)
  File "tests/test_eukdetect.py", line 11, in run
    process = subprocess.run(shlex.split(command), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/home/ubuntu/anaconda3/envs/eukdetect/lib/python3.6/subprocess.py", line 423, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/home/ubuntu/anaconda3/envs/eukdetect/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/home/ubuntu/anaconda3/envs/eukdetect/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'eukdetect': 'eukdetect'

======================================================================
ERROR: test_class (__main__._04_RunAln_and_filter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_eukdetect.py", line 40, in test_class
    alncode, alnstdout, alnstderr = run(command)
  File "tests/test_eukdetect.py", line 11, in run
    process = subprocess.run(shlex.split(command), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/home/ubuntu/anaconda3/envs/eukdetect/lib/python3.6/subprocess.py", line 423, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/home/ubuntu/anaconda3/envs/eukdetect/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/home/ubuntu/anaconda3/envs/eukdetect/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'eukdetect': 'eukdetect'

----------------------------------------------------------------------
Ran 5 tests in 0.017s

FAILED (errors=4)