Skip to content

chardet 6 triggers RequestsDependencyWarning on stderr #7219

@ThomasWaldmann

Description

@ThomasWaldmann

chardet 6.0.0 was just released, but requests only supports < 6.

This just broke our CI with:

/opt/hostedtoolcache/Python/3.12.12/x64/lib/python3.12/site-packages/requests/__init__.py:113:

RequestsDependencyWarning: urllib3 (2.6.3) or chardet (6.0.0dev0)/charset_normalizer (3.4.4) doesn't match a supported version!\n"

I also reported that strange "dev0" to the chardet project, that shouldn't be there when just doing "pip install chardet".

CI log: https://github.com/borgbackup/borg/actions/runs/22275930673/job/64439274108?pr=9397

Reproduction Steps

Not sure, we do not directly use requests, it is just pulled in by some stuff we use.

And something installs the latest chardet and requests stumbles over it, spilling out unexpected output on stderr.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions