Hi, I am trying to test my download of tangos in the ubuntu shell using pytest. I encountered 4 errors. I am on a windows computer but running linux through ubuntu. The pip list:
When I run pytest, this is the warning / error list:
================================== ERRORS ==================================
___________ ERROR collecting tests/test_parallel_tasks_async.py ____________
ImportError while importing test module '/home/amolle/tangos/tests/test_parallel_tasks_async.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../anaconda3/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_parallel_tasks_async.py:6: in <module>
from tangos.parallel_tasks import async_message, message, testing
E ImportError: cannot import name 'async_message' from 'tangos.parallel_tasks' (/home/amolle/anaconda3/lib/python3.12/site-packages/tangos/parallel_tasks/__init__.py)
______________ ERROR collecting tests/test_pynbody_server.py _______________
ImportError while importing test module '/home/amolle/tangos/tests/test_pynbody_server.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../anaconda3/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_pynbody_server.py:14: in <module>
from tangos.parallel_tasks.pynbody_server import shared_object_catalogue
E ImportError: cannot import name 'shared_object_catalogue' from 'tangos.parallel_tasks.pynbody_server' (/home/amolle/anaconda3/lib/python3.12/site-packages/tangos/parallel_tasks/pynbody_server/__init__.py)
____________ ERROR collecting tests/test_simulation_outputs.py _____________
tests/test_simulation_outputs.py:187: in <module>
class DummyHaloClass(pynbody.halo.number_array.HaloNumberCatalogue):
E AttributeError: module 'pynbody.halo' has no attribute 'number_array'
_____________ ERROR collecting tests/test_timestep_thinner.py ______________
ImportError while importing test module '/home/amolle/tangos/tests/test_timestep_thinner.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../anaconda3/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_timestep_thinner.py:6: in <module>
from tangos.tools import timestep_thinner
E ImportError: cannot import name 'timestep_thinner' from 'tangos.tools' (/home/amolle/anaconda3/lib/python3.12/site-packages/tangos/tools/__init__.py)
============================= warnings summary
=============================
../anaconda3/lib/python3.12/site-packages/webob/compat.py:5
/home/amolle/anaconda3/lib/python3.12/site-packages/webob/compat.py:5: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
from cgi import parse_header
../anaconda3/lib/python3.12/site-packages/pyramid/asset.py:2
/home/amolle/anaconda3/lib/python3.12/site-packages/pyramid/asset.py:2: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
../anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
/home/amolle/anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('paste')`.
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)
../anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
/home/amolle/anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.
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)
../anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
/home/amolle/anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('repoze')`.
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)
../anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
/home/amolle/anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('ruamel')`.
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)
../anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
../anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
../anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
../anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
../anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
/home/amolle/anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`.
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)
../anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
../anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
../anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
/home/amolle/anaconda3/lib/python3.12/site-packages/pkg_resources/__init__.py:2832: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zope')`.
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 tests/test_parallel_tasks_async.py
ERROR tests/test_pynbody_server.py
ERROR tests/test_simulation_outputs.py - AttributeError: module 'pynbody.halo' has no attribute 'number_array'
ERROR tests/test_timestep_thinner.py```
Hi, I am trying to test my download of tangos in the ubuntu shell using pytest. I encountered 4 errors. I am on a windows computer but running linux through ubuntu. The pip list:
When I run pytest, this is the warning / error list: