Open mmore500 opened 1 month ago
As a related issue, the tests fail if not run from the root directory. For example, if run from inside tests/
============================= test session starts ==============================
platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0
rootdir: /home/mmore500/2024-08-05/aPhyloGeo
configfile: pyproject.toml
collected 10 items / 1 error
==================================== ERRORS ====================================
___________________ ERROR collecting tests/test_climatic.py ____________________
test_climatic.py:13: in <module>
df = pd.read_csv("./datasets/example/geo.csv")
../../env/lib64/python3.12/site-packages/pandas/io/parsers/readers.py:1026: in read_csv
return _read(filepath_or_buffer, kwds)
../../env/lib64/python3.12/site-packages/pandas/io/parsers/readers.py:620: in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
../../env/lib64/python3.12/site-packages/pandas/io/parsers/readers.py:1620: in __init__
self._engine = self._make_engine(f, self.engine)
../../env/lib64/python3.12/site-packages/pandas/io/parsers/readers.py:1880: in _make_engine
self.handles = get_handle(
../../env/lib64/python3.12/site-packages/pandas/io/common.py:873: in get_handle
handle = open(
E FileNotFoundError: [Errno 2] No such file or directory: './datasets/example/geo.csv'
=============================== warnings summary ===============================
../../env/lib64/python3.12/site-packages/ete3/webplugin/webapp.py:44
/home/mmore500/2024-08-05/env/lib64/python3.12/site-packages/ete3/webplugin/webapp.py:44: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
import cgi
../../env/lib64/python3.12/site-packages/Bio/Application/__init__.py:39
/home/mmore500/2024-08-05/env/lib64/python3.12/site-packages/Bio/Application/__init__.py:39: BiopythonDeprecationWarning: The Bio.Application modules and modules relying on it have been deprecated.
Due to the on going maintenance burden of keeping command line application
wrappers up to date, we have decided to deprecate and eventually remove these
modules.
We instead now recommend building your command line and invoking it directly
with the subprocess module.
warnings.warn(
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR test_climatic.py - FileNotFoundError: [Errno 2] No such file or directo...
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
========================= 2 warnings, 1 error in 1.11s =========================
This issue is part of JOSS review https://github.com/openjournals/joss-reviews/issues/6579
Describe the bug A clear and concise description of what the bug is.
Three tests fail when run on my local machine. Two appear to be due to floating point rounding issues. They are probably fixable by using more robust floating point comparisons. A third appears to be some other issue. The third failure is reproducible on google cloud shell https://shell.cloud.google.com.
To Reproduce
Expected behavior A clear and concise description of what you expected to happen. Desktop (please complete the following information):