-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
installing dask.dataframe using setuptools does not install dask.dataframe.tseries (the result is that resampling fails with an ImportError):
$ virtualenv test_dask_install
$ source test_dask_install/bin/activate
$ pip install dask[dataframe]
$ python -c 'import dask.dataframe.tseries.resample' # ImportError
$ pip download dask
$ tar xfz dask-0.8.1.tar.gz
$ cp -r dask-0.8.1/dask/dataframe/tseries test_dask_install/lib/python3.4/site-packages/dask/dataframe
$ python -c 'import dask.dataframe.tseries.resample' # no ImportErrorThe reason seems to be that setuptools does not automatically include subpackages.
As far as I know, there are two possible solutions for this:
- to include the
tseriespackage insetup(packages=[...]) - as the
tseriespackage only contains one module (resample), it could be moved into thedataframepackage (and thus would be in a similar position as thegroupbymodule, which gets imported at the first call of a groupby function to avoid circular imports)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels