Git Product home page Git Product logo

conduit's People

Contributors

davidhurst avatar dependabot[bot] avatar github-actions[bot] avatar m4gpi avatar mylesbartlett avatar olliethomas avatar sarar-1 avatar tmke8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

conduit's Issues

tests fail without ethicml installed

Steps to Reproduce

git clone [email protected]:wearepal/conduit.git && cd conduit
python -m venv env
source ./env/bin/activate
pip install --upgrade pip
pip install poetry
poetry install
python -m pytest tests/data_test.py

Expected Behaviour

  • Tests run without optional dependency

Actual Behaviour

  • Tests fail due to missing (optional) dependency
╰─(env) ⠠⠵ python -m pytest tests/data_test.py                                 
================================================ test session starts =================================================
platform linux -- Python 3.8.0, pytest-7.1.2, pluggy-1.0.0
rootdir: /shared/Projects/ecoacoustics/conduit
plugins: hydra-core-1.2.0
collected 0 items / 1 error                                                                                          

======================================================= ERRORS =======================================================
________________________________________ ERROR collecting tests/data_test.py _________________________________________
ImportError while importing test module '/shared/Projects/ecoacoustics/conduit/tests/data_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/home/magpie/.pyenv/versions/3.8.0/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/data_test.py:39: in <module>
    from conduit.fair.data.datasets.dummy import DummyDataset
conduit/fair/data/__init__.py:1: in <module>
    from .datamodules import *
conduit/fair/data/datamodules/__init__.py:2: in <module>
    from .tabular import *
conduit/fair/data/datamodules/tabular/__init__.py:1: in <module>
    from .admissions import *
conduit/fair/data/datamodules/tabular/admissions.py:5: in <module>
    import ethicml as em
E   ModuleNotFoundError: No module named 'ethicml'
============================================== short test summary info ===============================================
ERROR tests/data_test.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================== 1 error in 2.19s ==================================================

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.