Bug 1630992
Summary: | python-msgpack-0.5.6-5.fc30 breaks borgbackup | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Kevin Fenzi <kevin> |
Component: | python-msgpack | Assignee: | Miro Hrončok <mhroncok> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | andrew, cfergeau, cl_111, code, dalley, damien, denis, dirk, fschwarz, gyvesme, jorti, ktdreyer, mail, mails.bugzilla.redhat.com, metherid, mhroncok, mrckndt, nobody+366555, pj.pandit, redhat-bugzilla, wietse.muizelaar |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | borgbackup-1.1.7-2.fc30 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-09-27 17:28:54 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Kevin Fenzi
2018-09-19 16:24:11 UTC
I guess borgbackup needs to have it's dependency changed, see: https://github.com/borgbackup/borg/issues/3889 This is a problem with current stable Fedora (28), too. [dalley@localhost Backup Drive]$ sudo dnf info python3-msgpack Last metadata expiration check: 0:59:50 ago on Sun 23 Sep 2018 05:17:30 PM EDT. Installed Packages Name : python3-msgpack Version : 0.5.6 Release : 5.fc28 Arch : x86_64 Size : 296 k Source : python-msgpack-0.5.6-5.fc28.src.rpm Same traceback when using borgbackup as in the post. Quick fix is to patch borgbackup setup.py to require msgpack instead of msgpack-python. I'm sorry about the breakage. I've added backwards facing provide but I haven't tough about entrypoints. Being able to provide both metadata for msgpack-python and msgpack would be nice but very hackish. I'll gladly send patches for what I've broken (at least when it's not breakage on purpose :D), working on a downstream PR, will send upstream. F30: https://src.fedoraproject.org/rpms/borgbackup/pull-request/1 F29: https://src.fedoraproject.org/rpms/borgbackup/pull-request/2 F28: https://src.fedoraproject.org/rpms/borgbackup/pull-request/3 In the right columns of those PRs, there are simple-koji-ci scratch builds. Once they build, could you please check if it works? Upstream is ware https://github.com/borgbackup/borg/pull/3891 > i will change to "msgpack" name, but it'll have to wait until 1.2.0. *aware I can confirm the rawhide one works fine here. The builds are running. https://koji.fedoraproject.org/koji/taskinfo?taskID=29846765 https://koji.fedoraproject.org/koji/taskinfo?taskID=29846775 https://koji.fedoraproject.org/koji/taskinfo?taskID=29846783 I'll bodhi them in ~8-9 hours (I'm off to bed). borgbackup-1.1.7-2.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-e7aa6d923f borgbackup-1.1.7-2.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-390e4ad530 sorry i'm late to the party, i have pushed updates of borgbackup for f28 and f29 *** Bug 1632147 has been marked as a duplicate of this bug. *** *** Bug 1632885 has been marked as a duplicate of this bug. *** borgbackup-1.1.7-2.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-390e4ad530 borgbackup-1.1.7-2.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-e7aa6d923f *** Bug 1633465 has been marked as a duplicate of this bug. *** Similar problem has been detected: Given borgbackup version 1.1.7-1.fc28 is installed from F28 updates repo And python3-msgpack version 0.5.6-4.fc28 is installed from F28 updates repo When I run "borg --help" from the command-line Then I receive the expected borg help output. When python3-msgpack is updated to version 0.5.6-5.fc28 from F28 updates repo And I run "borg --help" from the command-line Then I receive a "pkg_resources.DistributionNotFound: The 'msgpack-python!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,!=0.5.4,!=0.5.5,<=0.5.6,>=0.4.6' distribution was not found and is required by borgbackup" error. reporter: libreport-2.9.5 cmdline: /usr/bin/python3 /usr/bin/borg --help crash_function: resolve exception_type: pkg_resources.DistributionNotFound executable: /usr/bin/borg interpreter: python3-3.6.6-1.fc28.x86_64 kernel: 4.18.9-200.fc28.x86_64 package: borgbackup-1.1.7-1.fc28 reason: __init__.py:774:resolve:pkg_resources.DistributionNotFound: The 'msgpack-python!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,!=0.5.4,!=0.5.5,<=0.5.6,>=0.4.6' distribution was not found and is required by borgbackup runlevel: N 5 type: Python3 uid: 1000 Hang on. The fix is on it's way to the updates repo in borgbackup-1.1.7-2.fc28. (In reply to C L from comment #17) > Given borgbackup version 1.1.7-1.fc28 is installed from F28 updates repo > And python3-msgpack version 0.5.6-4.fc28 is installed from F28 updates repo > When I run "borg --help" from the command-line > Then I receive the expected borg help output. > > When python3-msgpack is updated to version 0.5.6-5.fc28 from F28 updates repo > And I run "borg --help" from the command-line > Then I receive a "pkg_resources.DistributionNotFound: The > 'msgpack-python!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,!=0.5.4,!=0.5.5,<=0.5.6,>=0.4. > 6' distribution was not found and is required by borgbackup" error. Same for me. As a workaround, I downgraded `python3-msgpack` with `dnf downgrade`. This implicitly downgrades `borgbackup` though, which loses a few bug fixes between that package and the newest. Use `dnf update borkgbackup --enablerpo=updates-testing` instead to get the fixed new version. borgbackup-1.1.7-2.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report. borgbackup-1.1.7-2.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report. Hello, The issue still exist on fedora 30. cat /etc/redhat-release Fedora release 30 (Thirty) dnf info borgbackup Dernière vérification de l’expiration des métadonnées effectuée il y a 1:11:18 le mer. 01 mai 2019 18:58:44 CEST. Paquets installés Nom : borgbackup Version : 1.1.7 Publication : 2.fc30 Architecture : x86_64 Taille : 4.1 M Source : borgbackup-1.1.7-2.fc30.src.rpm Dépôt : @System Depuis le dé : fedora Résumé : A deduplicating backup program with compression and authenticated encryption URL : https://borgbackup.readthedocs.org Licence : BSD Description : BorgBackup (short: Borg) is a deduplicating backup program. Optionally, it : supports compression and authenticated encryption. dnf info python3-msgpack Dernière vérification de l’expiration des métadonnées effectuée il y a 1:10:42 le mer. 01 mai 2019 18:58:44 CEST. Paquets installés Nom : python3-msgpack Version : 0.6.1 Publication : 2.fc30 Architecture : x86_64 Taille : 283 k Source : python-msgpack-0.6.1-2.fc30.src.rpm Dépôt : @System Depuis le dé : fedora Résumé : A Python MessagePack (de)serializer URL : https://msgpack.org/ Licence : ASL 2.0 Description : MessagePack is a binary-based efficient data interchange format that is : focused on high performance. It is like JSON, but very fast and small. : This is a Python 3.7 (de)serializer for MessagePack. borg -v Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master ws.require(__requires__) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 791, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (msgpack 0.6.1 (/usr/lib64/python3.7/site-packages), Requirement.parse('msgpack!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,!=0.5.4,!=0.5.5,<=0.5.6,>=0.4.6'), {'borgbackup'}) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/borg", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3191, in <module> @_call_aside File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3175, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3204, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 585, in _build_master return cls._build_from_requirements(__requires__) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'msgpack!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,!=0.5.4,!=0.5.5,<=0.5.6,>=0.4.6' distribution was not found and is required by borgbackup borgbackup was updated in F29 but maybe not in F30. I suggest opening a separate borgbackup bugzilla. |