Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running the test dataset using pytest ./ #9

Open
kartikchandran opened this issue Oct 9, 2023 · 0 comments
Open

Error running the test dataset using pytest ./ #9

kartikchandran opened this issue Oct 9, 2023 · 0 comments

Comments

@kartikchandran
Copy link

I downloaded the repo and ran the above, got an ImportError: please see below.
Kartik

`================================================ test session starts =================================================
platform darwin -- Python 3.8.18, pytest-7.4.2, pluggy-1.3.0
rootdir: /Users/kartik/Documents/GitHub/scab
plugins: anyio-4.0.0
collected 3 items / 1 error

======================================================= ERRORS =======================================================
___________________________________ ERROR collecting scab/tests/test_cellhashes.py ___________________________________
ImportError while importing test module '/Users/kartik/Documents/GitHub/scab/scab/tests/test_cellhashes.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../opt/miniconda3/envs/py38/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
scab/tests/test_cellhashes.py:8: in
from ..tools.cellhashes import _bw_silverman, positive_feature_cutoff, demultiplex
E ImportError: cannot import name 'positive_feature_cutoff' from 'scab.tools.cellhashes' (/Users/kartik/Documents/GitHub/scab/scab/tools/cellhashes.py)
================================================== warnings summary ==================================================
../../../opt/miniconda3/envs/py38/lib/python3.8/site-packages/abstar/core/abstar.py:39
/Users/kartik/opt/miniconda3/envs/py38/lib/python3.8/site-packages/abstar/core/abstar.py:39: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources

../../../opt/miniconda3/envs/py38/lib/python3.8/site-packages/pkg_resources/init.py:2871
/Users/kartik/opt/miniconda3/envs/py38/lib/python3.8/site-packages/pkg_resources/init.py:2871: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('mpl_toolkits').
Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================================== short test summary info ===============================================
ERROR scab/tests/test_cellhashes.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================ 2 warnings, 1 error in 2.52s ============================================`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant