You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] Development guide for pip-people incomplete? #7358
In the Development Guidelines it says that for pip-people to work on the dask code base one needs to do:
python -m pip install -e ".[complete]"
to be able to develop. In my experience, this did not work since all kinds of dependencies are missing (scipy, scikit-image, pytest, etc). Am I missing something, or is the documentation incomplete/incorrect?'
I would e.g. expect that I'd be able to run py.test dask --verbose --doctest-modules, but this is by no means the case.
Oh! That is very true. If you install with pip you'll be missing the testing dependencies at the very least. The tests should all run without optional dependencies like scipy or scikit-image. I'm wondering if this is best handled by adding more docs, or by having a pip install -e ".[test]". Docs is definitely quicker.
======================================================================================== ERRORS ========================================================================================
_________________________________________________________________________ ERROR collecting dask/array/stats.py _________________________________________________________________________
dask/array/stats.py:39: in <module>
import scipy.stats
E ModuleNotFoundError: No module named 'scipy'
The above exception was the direct cause of the following exception:
dask/array/stats.py:41: in <module>
raise ImportError("`dask.array.stats` requires `scipy` to be installed.") from e
E ImportError: `dask.array.stats` requires `scipy` to be installed.
=============================================================================== short test summary info ================================================================================
SKIPPED [2] dask/array/tests/test_cupy.py:13: could not import 'cupy': No module named 'cupy'
SKIPPED [2] dask/array/tests/test_image.py:6: could not import 'skimage': No module named 'skimage'
SKIPPED [2] dask/array/tests/test_linalg.py:4: could not import 'scipy': No module named 'scipy'
SKIPPED [2] dask/array/tests/test_linearoperator.py:3: could not import 'scipy': No module named 'scipy'
SKIPPED [2] dask/array/tests/test_sparse.py:12: could not import 'sparse': No module named 'sparse'
SKIPPED [2] dask/array/tests/test_stats.py:3: could not import 'scipy': No module named 'scipy'
SKIPPED [2] dask/array/tests/test_xarray.py:6: could not import 'xarray': No module named 'xarray'
SKIPPED [2] dask/bag/tests/test_avro.py:6: could not import 'fastavro': No module named 'fastavro'
SKIPPED [2] dask/bytes/tests/test_http.py:14: could not import 'requests': No module named 'requests'
SKIPPED [2] dask/bytes/tests/test_s3.py:13: could not import 's3fs': No module named 's3fs'
SKIPPED [2] dask/dataframe/io/tests/test_orc.py:12: could not import 'pyarrow.orc': No module named 'pyarrow'
SKIPPED [2] dask/dataframe/io/tests/test_sql.py:13: could not import 'sqlalchemy': No module named 'sqlalchemy'
SKIPPED [2] dask/tests/test_cache.py:9: could not import 'cachey': No module named 'cachey'
SKIPPED [2] dask/tests/test_dot.py:11: could not import 'graphviz': No module named 'graphviz'
The Development Guidelines still don't seem to be accurate. I have run python -m pip install -e ".[complete,test]" in a fresh virtual environment. Subsequently, py.test dask --verbose --doctest-modules results in:
dask/dataframe/io/orc/arrow.py:1: in <module>
import pyarrow as pa
E ModuleNotFoundError: No module named 'pyarrow'
Activity
jsignell commentedon Mar 10, 2021
Oh! That is very true. If you install with pip you'll be missing the testing dependencies at the very least. The tests should all run without optional dependencies like
scipyorscikit-image. I'm wondering if this is best handled by adding more docs, or by having apip install -e ".[test]". Docs is definitely quicker.In the meantime you should be able to do:
rubenvdg commentedon Mar 10, 2021
Thanks for the prompt reply. If I do
pip install -e ".[test]"I get:i.e., there's no "test" specified in
extras_requireinsetup.py.jsignell commentedon Mar 10, 2021
oh yeah sorry that was unclear. I meant should there be a
.[test]? We can easily add it in the setup.py.rubenvdg commentedon Mar 10, 2021
Ah I misunderstood. Yeah that could help. However, still if I do (in a fresh pyenv):
I catch:
or am I missing something somewhere?
jsignell commentedon Mar 10, 2021
You are right! The regular tests run fine:
pytest -nautobut the doctests are missing a skip. Thanks for bringing this up! I'll add it to #7345It's something like:
GenevieveBuckley commentedon Mar 22, 2021
If #7360 was merged, can this issue be closed now @jsignell? Just flagging it for you.
jrbourbeau commentedon Mar 22, 2021
Ah yes, thanks for following up here @GenevieveBuckley!
KoenSR commentedon Oct 13, 2021
The Development Guidelines still don't seem to be accurate. I have run
python -m pip install -e ".[complete,test]"in a fresh virtual environment. Subsequently,py.test dask --verbose --doctest-modulesresults in:Should the documentation be updated?
GenevieveBuckley commentedon Oct 13, 2021
Good catch, thanks for reporting it @KoenSR
jrbourbeau commentedon Oct 14, 2021
Closed via #8256