Skip to content

Running Conductor locally is not possible because of requirements #183

@Yu-jinKim

Description

@Yu-jinKim

Running Conductor locally is pretty important for development purposes and is why there is a requirements.txt file in the repo.
Additionally, the packages in resources/home/dnanexus/packages could probably use a refresher.

Using Python3.12.3, I keep getting this error: ModuleNotFoundError: No module named 'pkg_resources'
Proposed fix is a new requirements file:

argcomplete==3.6.3
attrs==25.4.0
awscrt==0.31.1
certifi==2026.1.4
charset-normalizer==3.4.4
coverage==7.13.4
crc32c==2.8
dictdiffer==0.9.0
dxpy==0.404.0
flatten-json==0.1.14
idna==3.11
iniconfig==2.3.0
Jinja2==3.1.6
MarkupSafe==3.0.3
numpy==2.4.2
packaging==26.0
pandas==3.0.0
pluggy==1.6.0
psutil==7.2.2
Pygments==2.19.2
pytest==9.0.2
pytest-cov==7.0.0
pytest-html==4.2.0
pytest-metadata==3.1.1
pytest-mock==3.15.1
pytest-subtests==0.15.0
python-dateutil==2.9.0.post0
requests==2.32.5
setuptools==82.0.0
six==1.17.0
urllib3==2.1.0
websocket-client==1.7.0

Unittests seem to handle the changes fine:

$ pytest resources/home/dnanexus/run_workflows/tests/
=========================================================== test session starts ============================================================
platform linux -- Python 3.12.3, pytest-9.0.2, pluggy-1.6.0
rootdir: /home/kimy/NHS/repos/eggd_conductor
plugins: metadata-3.1.1, html-4.2.0, mock-3.15.1, cov-7.0.0
collected 158 items                                                                                                                        

resources/home/dnanexus/run_workflows/tests/test_assay_handler.py ..........................                                         [ 16%]
resources/home/dnanexus/run_workflows/tests/test_demultiplexing.py .....                                                             [ 19%]
resources/home/dnanexus/run_workflows/tests/test_dx_utils.py ...........                                                             [ 26%]
resources/home/dnanexus/run_workflows/tests/test_manage_dict.py .................................................................... [ 69%]
..........................                                                                                                           [ 86%]
resources/home/dnanexus/run_workflows/tests/test_utils.py ......................                                                     [100%]

============================================================= warnings summary =============================================================
../../venvs/conductor/lib/python3.12/site-packages/dxpy/compat.py:22
  /home/kimy/NHS/venvs/conductor/lib/python3.12/site-packages/dxpy/compat.py:22: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead.
    sys_encoding = locale.getdefaultlocale()[1] or "UTF-8"

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
====================================================== 158 passed, 1 warning in 4.62s ======================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions