Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contributing: distributed not installed with [dev] extras_require #463

Closed
wants to merge 1 commit into from

Conversation

n8henrie
Copy link
Contributor

@n8henrie n8henrie commented Feb 19, 2019

Hello,

I just followed the contributing guide, which recommends a sensible python -m pip install -e ".[dev]", but unfortunately my first step was to ensure that existing tests pass before making any changes, and pytest tests/ raised an ImportError that I assume is related to dask.distributed.

ImportError while loading conftest '/home/n8henrie/git/dask-ml/tests/conftest.py'.
tests/conftest.py:7: in <module>
    from distributed.utils_test import cluster
E   ModuleNotFoundError: No module named 'distributed'

I was able to work around by also installing .[complete] (though in retrospect it looks like I could have just installed distributed alone, I thought there could be a handful of missing dependencies that I'd have to discover one by one, so I went with complete to make sure it was taken care of in a single install).

It seems like the recommended setup in the contributing guide should lead to a point where one can at least run the tests -- I recommend either a change to the contributing guide to additionally recommend a manual installation of this dependency (in a quick glance I didn't see how to add a PR to the page), or possibly by adding distributed to the dev dependencies, or by including the complete dependencies to the dev dependencies.

Happy to make this (super minor) change into a PR if one of these is thought to be a best course of action.

@TomAugspurger
Copy link
Member

TomAugspurger commented Feb 19, 2019 via email

@jrbourbeau
Copy link
Member

Perhaps we could update dask[array]>=0.18.2 in the setup.py install_requires to dask[complete]>=0.18.2? It looks like we make use of distributed in dask_ml/model_selection/_incremental.py

@n8henrie
Copy link
Contributor Author

n8henrie commented Feb 19, 2019

I think either sounds reasonable. For reference: the current dask setup.py.

@jrbourbeau
Copy link
Member

Based on #466 (comment), we're going to keep distributed an optional dependency for now. So adding it to the dev dependencies should work here!

@TomAugspurger
Copy link
Member

Sorry for they run-around here, but I think that
#46 is adding distributed as a required dependency, so we shouldn't need to add it to the optional dev dependencies any more.

@n8henrie
Copy link
Contributor Author

@TomAugspurger Are you sure that's the right PR? I don't see any changes to the setup.py in the diff at https://github.com/dask/dask-ml/pull/46/files -- only changes are to CI files.

@stsievert
Copy link
Member

I think @TomAugspurger meant #466.

@n8henrie
Copy link
Contributor Author

Gotcha, thanks!

@n8henrie n8henrie closed this Feb 27, 2019
@n8henrie n8henrie deleted the issue_463 branch February 27, 2019 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants