[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Help] Test failures in q2-feature-classifier



Hi,

thanks to Nilesh and ftpmaster finally the needed dependencies for
q2-feature-classifier are available.  Unfortunately when I tried to
build the package there where some test failures in autopkgtest:

...
============================ test session starts ==============================
platform linux -- Python 3.9.1+, pytest-6.0.2, py-1.10.0, pluggy-0.13.0
rootdir: /build/q2-feature-classifier-2020.11.1
plugins: cov-2.10.1
collected 0 items / 5 errors

==================================== ERRORS ====================================
_ ERROR collecting .pybuild/cpython3_3.9/build/q2_feature_classifier/tests/test_classifier.py _
ImportError while importing test module '/build/q2-feature-classifier-2020.11.1/.pybuild/cpython3_3.9/build/q2_feature_classifier/tests/test_classifier.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
q2_feature_classifier/tests/test_classifier.py:14: in <module>
    from qiime2.plugins import feature_classifier
E   ImportError: cannot import name 'feature_classifier' from 'qiime2.plugins' (/usr/lib/python3/dist-packages/qiime2/plugins.py)
_ ERROR collecting .pybuild/cpython3_3.9/build/q2_feature_classifier/tests/test_consensus_assignment.py _
ImportError while importing test module '/build/q2-feature-classifier-2020.11.1/.pybuild/cpython3_3.9/build/q2_feature_classifier/tests/test_consensus_assignment.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
q2_feature_classifier/tests/test_consensus_assignment.py:12: in <module>
    from qiime2.plugins import feature_classifier
E   ImportError: cannot import name 'feature_classifier' from 'qiime2.plugins' (/usr/lib/python3/dist-packages/qiime2/plugins.py)
_ ERROR collecting .pybuild/cpython3_3.9/build/q2_feature_classifier/tests/test_custom.py _
ImportError while importing test module '/build/q2-feature-classifier-2020.11.1/.pybuild/cpython3_3.9/build/q2_feature_classifier/tests/test_custom.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
q2_feature_classifier/tests/test_custom.py:12: in <module>
    from qiime2.plugins import feature_classifier
E   ImportError: cannot import name 'feature_classifier' from 'qiime2.plugins' (/usr/lib/python3/dist-packages/qiime2/plugins.py)
_ ERROR collecting .pybuild/cpython3_3.9/build/q2_feature_classifier/tests/test_cutter.py _
...

My guess is that this is some simple (PYTHON)PATH issue but I'm busy
with real life this weekend and it would be great to have another
RC bug off the table.

Kind regards

      Andreas.

-- 
http://fam-tille.de


Reply to: