Skip to content

Windows CI builds failing #9734

Closed
Closed

Description

@jrbourbeau

Our Windows CI builds are failing (e.g. this build) with the following error:

py.test dask --runslow --cov=dask --cov-report=xml -n4 
ImportError while loading conftest 'D:\a\dask\dask\conftest.py'.
conftest.py:28: in <module>
    import pandas  # noqa: F401
C:\Miniconda3\envs\test-environment\lib\site-packages\pandas\__init__.py:51: in <module>
    from pandas.core.api import (
C:\Miniconda3\envs\test-environment\lib\site-packages\pandas\core\api.py:31: in <module>
    from pandas.core.groupby import Grouper, NamedAgg
C:\Miniconda3\envs\test-environment\lib\site-packages\pandas\core\groupby\__init__.py:1: in <module>
    from pandas.core.groupby.generic import DataFrameGroupBy, NamedAgg, SeriesGroupBy
C:\Miniconda3\envs\test-environment\lib\site-packages\pandas\core\groupby\generic.py:65: in <module>
    from pandas.core.frame import DataFrame
C:\Miniconda3\envs\test-environment\lib\site-packages\pandas\core\frame.py:119: in <module>
    from pandas.core import algorithms, common as com, generic, nanops, ops
C:\Miniconda3\envs\test-environment\lib\site-packages\pandas\core\generic.py:113: in <module>
    from pandas.io.formats import format as fmt
C:\Miniconda3\envs\test-environment\lib\site-packages\pandas\io\formats\format.py:77: in <module>
    from pandas.io.common import stringify_path
C:\Miniconda3\envs\test-environment\lib\site-packages\pandas\io\common.py:35: in <module>
    lzma = import_lzma()
C:\Miniconda3\envs\test-environment\lib\site-packages\pandas\compat\__init__.py:109: in import_lzma
    warnings.warn(msg)
E   UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.

Looks like a packaging issue where we're not able to import lzma.

cc @charlesbluca @jakirkham in case you have any ideas

xref #9733

Activity

  1. added
    tests
    on Dec 8, 2022
  2. jrbourbeau commented on Dec 8, 2022

    @jrbourbeau
    MemberAuthor

    ^ that traceback is what we get for the Python 3.8 and 3.9 builds. The Python 3.10 build, which uses a newer version of pandas, has a different traceback with more info:

    ________________ ERROR collecting dask/bag/tests/test_text.py _________________
    ImportError while importing test module 'D:\a\dask\dask\dask\bag\tests\test_text.py'.
    Hint: make sure your test modules/packages have valid Python names.
    Traceback:
    C:\Miniconda3\envs\test-environment\lib\importlib\__init__.py:126: in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
    dask\bag\tests\test_text.py:9: in <module>
        from dask.bytes import utils
    dask\bytes\utils.py:4: in <module>
        import lzma
    C:\Miniconda3\envs\test-environment\lib\lzma.py:27: in <module>
        from _lzma import *
    E   ImportError: DLL load failed while importing _lzma: The specified module could not be found.
    
  3. jakirkham commented on Dec 9, 2022

    @jakirkham
    Member

    It seems a recent xz package has problems ( conda-forge/xz-feedstock#31 ). Not sure if they caused this specific issue or not. In any event that package was marked broken recently

  4. h-vetinari commented on Dec 9, 2022

    @h-vetinari

    In any event that package was marked broken recently

    So recently, that not all caches have been updated yet - still gets pulled in by conda/mamba as of writing.

  5. jrbourbeau commented on Dec 9, 2022

    @jrbourbeau
    MemberAuthor

    Thanks for the heads up @jakirkham @h-vetinari! I'll wait a bit and rerun CI to see if that helps

  6. jakirkham commented on Dec 9, 2022

    @jakirkham
    Member

    Mirroring time should be more like 10mins. Would encourage raising a discussion item here with details about the command run (like conda search)

    Edit: Could even just add to this one ( conda/infrastructure#664 )

  7. jrbourbeau commented on Dec 9, 2022

    @jrbourbeau
    MemberAuthor

    Looks like Windows builds are passing now 🎉 Thanks @jakirkham!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions