Bug 1906585 - python-chardet-4.0.0 is available
Summary: python-chardet-4.0.0 is available
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-chardet
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-10 20:09 UTC by Upstream Release Monitoring
Modified: 2021-02-05 19:49 UTC (History)
5 users (show)

Fixed In Version: python-chardet-4.0.0-1.fc34 python-chardet-4.0.0-1.eln109
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-05 19:43:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Upstream Release Monitoring 2020-12-10 20:09:41 UTC
Latest upstream release: 4.0.0
Current version/release in rawhide: 3.0.4-18.fc33
URL: https://pypi.python.org/pypi/chardet

Please consult the package updates policy before you issue an update to a stable branch: https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/


More information about the service that created this bug can be found at: https://fedoraproject.org/wiki/Upstream_release_monitoring


Please keep in mind that with any upstream change, there may also be packaging changes that need to be made. Specifically, please remember that it is your responsibility to review the new version to ensure that the licensing is still correct and that no non-free or legally problematic items have been added upstream.


Based on the information from anitya: https://release-monitoring.org/project/3798/

Comment 1 Upstream Release Monitoring 2020-12-10 20:09:47 UTC
An unexpected error occurred while creating the scratch build and has been automatically reported. Sorry!

Comment 2 Kevin Fenzi 2021-02-02 02:07:51 UTC
This is needed for python-diff-cover... see bug 1923076

Comment 3 Miro Hrončok 2021-02-02 09:13:03 UTC
OTOH two packages will get broken:

python-requests: (python3dist(chardet) < 4 with python3dist(chardet) >= 3.0.2)
python-aiohttp: (python3.9dist(chardet) < 4 with python3.9dist(chardet) >= 2)


I'd rather not break requests and aiohttp for diff-cover. Let's revert the diff-cover update if this is urgent. If not, we can check with upstreams wrt chardet 4 compatibility.

Comment 4 Miro Hrončok 2021-02-02 09:16:41 UTC
aiohttp should be fine: https://github.com/aio-libs/aiohttp/commit/b0ed732d0a637e43c72bb1a777d02776cde37376

Comment 5 Miro Hrončok 2021-02-02 09:17:14 UTC
requests as well: https://github.com/psf/requests/commit/516f84f490ccd352672847c6a3d23c67a13b3f98

Comment 6 Miro Hrončok 2021-02-02 09:23:12 UTC
Sie note:

https://src.fedoraproject.org/rpms/python-diff-cover/c/a7bc3f11dbe3e03c4a50591510d0dfc15953db11?branch=master

Please even if we update chardet, revert the --no-discard-stderr argument to help2man. It hides the failure:



+ /builddir/build/BUILDROOT/python-diff-cover-4.2.0-1.fc34.x86_64/usr/bin/diff-cover --help
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (chardet 3.0.4 (/usr/lib/python3.9/site-packages), Requirement.parse('chardet==4.0.0'), {'diff-cover'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILDROOT/python-diff-cover-4.2.0-1.fc34.x86_64/usr/bin/diff-cover", line 33, in <module>
    sys.exit(load_entry_point('diff-cover==4.2.0', 'console_scripts', 'diff-cover')())
  File "/builddir/build/BUILDROOT/python-diff-cover-4.2.0-1.fc34.x86_64/usr/bin/diff-cover", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib64/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/builddir/build/BUILDROOT/python-diff-cover-4.2.0-1.fc34.x86_64/usr/lib/python3.9/site-packages/diff_cover/diff_cover_tool.py", line 18, in <module>
    from diff_cover.report_generator import (
  File "/builddir/build/BUILDROOT/python-diff-cover-4.2.0-1.fc34.x86_64/usr/lib/python3.9/site-packages/diff_cover/report_generator.py", line 211, in <module>
    TEMPLATE_LOADER = PackageLoader(__package__)
  File "/usr/lib/python3.9/site-packages/jinja2/loaders.py", line 233, in __init__
    from pkg_resources import DefaultProvider
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3243, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 570, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 583, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'chardet==4.0.0' distribution was not found and is required by diff-cover



With --no-discard-stderr, you basically embed the error to the man page instead of seeing it. I've been bit by this previously as well, the error is hidden by default, but the flag does not show it, it converts it to the manpage content :/

Comment 7 Miro Hrončok 2021-02-04 10:01:50 UTC
(In reply to Miro Hrončok from comment #4)
> aiohttp should be fine:
> https://github.com/aio-libs/aiohttp/commit/
> b0ed732d0a637e43c72bb1a777d02776cde37376

https://src.fedoraproject.org/rpms/python-aiohttp/pull-request/1

Comment 8 Miro Hrončok 2021-02-04 10:04:47 UTC
(In reply to Miro Hrončok from comment #5)
> requests as well:
> https://github.com/psf/requests/commit/
> 516f84f490ccd352672847c6a3d23c67a13b3f98

Fixed in 2.25.1 in https://src.fedoraproject.org/rpms/python-requests/pull-request/13

Requires: (python3.9dist(chardet) < 5 with python3.9dist(chardet) >= 3.0.2)

Comment 10 Fedora Update System 2021-02-05 19:43:44 UTC
FEDORA-2021-3fb4d9c70c has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2021-02-05 19:49:45 UTC
FEDORA-2021-0089203dba has been pushed to the Fedora ELN stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.