[Python-modules-team] Bug#942235:

Emmanuel Arias emmanuelarias30 at gmail.com
Mon Nov 18 21:08:34 GMT 2019


Hi,

Running autopkgtest I have this error:

autopkgtest [17:27:31]: test command1: set -e ; for py in
$(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo
"Testing with $py:" ; http_proxy= $py -m pytest -v --pyargs dask ;
done
autopkgtest [17:27:31]: test command1: [-----------------------
Testing with python3.8:
============================= test session starts ==============================
platform linux -- Python 3.8.0, pytest-4.6.6, py-1.8.0, pluggy-0.13.0
-- /usr/bin/python3.8
cachedir: .pytest_cache
rootdir: /tmp/autopkgtest.ZwzvJ1/autopkgtest_tmp
collecting ... collected 2144 items / 39 errors / 8 skipped / 2097 selected

==================================== ERRORS ====================================
_______________ ERROR collecting array/tests/test_array_core.py ________________
ImportError while importing test module
'/usr/lib/python3/dist-packages/dask/array/tests/test_array_core.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3/dist-packages/pandas/__init__.py:30: in <module>
    from pandas._libs import hashtable as _hashtable, lib as _lib,
tslib as _tslib
/usr/lib/python3/dist-packages/pandas/_libs/__init__.py:3: in <module>
    from .tslibs import (
/usr/lib/python3/dist-packages/pandas/_libs/tslibs/__init__.py:3: in <module>
    from .conversion import localize_pydatetime, normalize_date
E   ModuleNotFoundError: No module named 'pandas._libs.tslibs.conversion'

During handling of the above exception, another exception occurred:
/usr/lib/python3/dist-packages/dask/dataframe/__init__.py:2: in <module>
    from .core import (
/usr/lib/python3/dist-packages/dask/dataframe/core.py:10: in <module>
    import pandas as pd
/usr/lib/python3/dist-packages/pandas/__init__.py:34: in <module>
    raise ImportError(
E   ImportError: C extension: No module named
'pandas._libs.tslibs.conversion' not built. If you want to import
pandas from the source directory, you may need to run 'python setup.py
build_ext --inplace --force' to build the C extensions first.

During handling of the above exception, another exception occurred:
/usr/lib/python3/dist-packages/dask/array/tests/test_array_core.py:21:
in <module>
    import dask.dataframe
/usr/lib/python3/dist-packages/dask/dataframe/__init__.py:55: in <module>
    raise ImportError(str(e) + "\n\n" + msg)
E   ImportError: C extension: No module named
'pandas._libs.tslibs.conversion' not built. If you want to import
pandas from the source directory, you may need to run 'python setup.py
build_ext --inplace --force' to build the C extensions first.
E
E   Dask dataframe requirements are not installed.
E
E   Please either conda or pip install as follows:
E
E     conda install dask                     # either conda install
E     pip install dask[dataframe] --upgrade  # or pip install
__________________ ERROR collecting array/tests/test_image.py __________________
/usr/lib/python3/dist-packages/skimage/__init__.py:162: in <module>
    from ._shared import geometry
E   ImportError: cannot import name 'geometry' from 'skimage._shared'
(/usr/lib/python3/dist-packages/skimage/_shared/__init__.py)

During handling of the above exception, another exception occurred:
/usr/lib/python3/dist-packages/dask/array/tests/test_image.py:6: in <module>
    pytest.importorskip("skimage")
/usr/lib/python3/dist-packages/skimage/__init__.py:165: in <module>
    _raise_build_error(e)
/usr/lib/python3/dist-packages/skimage/__init__.py:138: in _raise_build_error
    local_dir = osp.split(__file__)[0]
E   NameError: name 'osp' is not defined
___________________ ERROR collecting bag/tests/test_avro.py ____________________
ImportError while importing test module
'/usr/lib/python3/dist-packages/dask/bag/tests/test_avro.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3/dist-packages/dask/bag/__init__.py:2: in <module>
    from .core import (
/usr/lib/python3/dist-packages/dask/bag/core.py:67: in <module>
    from ..bytes import open_files
/usr/lib/python3/dist-packages/dask/bytes/__init__.py:9: in <module>
    raise ImportError(
E   ImportError: fsspec is required to use any file-system
functionality. Please install using
E   conda install -c conda-forge 'fsspec>=0.3.3'
E   or
E   pip install 'fsspec>=0.3.3'


I will work on fsspec now and try to solve the pandas issues

Cheers,
Arias Emmanuel
@eamanu
http://eamanu.com



More information about the Python-modules-team mailing list