pytest crashes on a new development install
Just getting started with the library, apologies if I missed a step
I installed a development version of dnadna
by cloning the repository and then running
conda env create
conda activate dnadna
pip install -e .
This works and dnadna --help
executes and prints a help message.
But running pytest
fails:
(dnadna) romain@enclume:~/inria/dnadna$ pytest -v
ImportError while loading conftest '/home/romain/inria/dnadna/tests/conftest.py'.
tests/conftest.py:8: in <module>
from dnadna.utils.testing import cached_simulation, cached_preprocessor # noqa: F401
dnadna/utils/testing.py:14: in <module>
from ..data_preprocessing import DataPreprocessor
dnadna/data_preprocessing.py:18: in <module>
from .simulator import Simulator
dnadna/simulator.py:33: in <module>
class Simulator(ConfigMixIn, Pluggable, metaclass=abc.ABCMeta):
dnadna/simulator.py:63: in Simulator
config_default = Config.from_default('dataset')
dnadna/utils/decorators.py:292: in wrap_hashdict_func
return cached_func(*args, **kwargs)
dnadna/utils/decorators.py:280: in unwrap_hashdict_func
return func(*args, **kwargs)
dnadna/utils/config.py:960: in from_default
return cls.from_file(pth.join(DEFAULTS_DIR, filename),
dnadna/utils/config.py:903: in from_file
return cls(config, validate=validate, schema=schema,
dnadna/utils/config.py:846: in __init__
self.validate(schema=schema, **validator_kwargs)
dnadna/utils/config.py:1117: in validate
validator = self._schema_validator_for(schema, validator_kwargs)
dnadna/utils/config.py:1293: in _schema_validator_for
return ConfigValidator(schema, **validator_kwargs)
dnadna/utils/jsonschema.py:136: in __init__
kwargs.setdefault('resolver', self.get_resolver_for(schema))
dnadna/utils/jsonschema.py:464: in get_resolver_for
return RefResolver(base_url, schema, handlers=handlers)
../../mambaforge/envs/dnadna/lib/python3.8/site-packages/jsonschema_pyref/__init__.py:92: in __init__
super().__init__(base_uri, referrer, store=store,
../../mambaforge/envs/dnadna/lib/python3.8/site-packages/jsonschema/validators.py:748: in __init__
for schema in store.values()
E AttributeError: 'tuple' object has no attribute 'values'
(dnadna) romain@enclume:~/inria/dnadna$
Any hints? Thanks!