FS#60269 - [borg] msgpack
Attached to Project:
Community Packages
Opened by Mantas Mikulėnas (grawity) - Monday, 01 October 2018, 17:43 GMT
Last edited by Eli Schwartz (eschwartz) - Wednesday, 03 October 2018, 03:27 GMT
Opened by Mantas Mikulėnas (grawity) - Monday, 01 October 2018, 17:43 GMT
Last edited by Eli Schwartz (eschwartz) - Wednesday, 03 October 2018, 03:27 GMT
|
Details
Yep, it's that time of year again.
``` $ borg 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 3112, in <module> @_call_aside File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3096, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3125, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 578, in _build_master ws.require(__requires__) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 895, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 781, in resolve raise DistributionNotFound(req, requirers) 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 ``` local/borg 1.1.7-1 local/python-msgpack 0.5.6-2 |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Wednesday, 03 October 2018, 03:27 GMT
Reason for closing: Fixed
Additional comments about closing: borg 1.1.7-2
Wednesday, 03 October 2018, 03:27 GMT
Reason for closing: Fixed
Additional comments about closing: borg 1.1.7-2
---
Description:
borg fails with the message:
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
Additional info:
* package version(s):
> pacman -Q borg python-msgpack
borg 1.1.7-1
python-msgpack 0.5.6-2
Steps to reproduce:
Install borg via pacman on vanilla x86_64 or ARM machine, run borg and above error will appear.
I was able to manually fix the issue by editing the file /usr/lib/python3.7/site-packages/borgbackup-1.1.7-py3.7.egg-info/requires.txt and changing the first line from:
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
to:
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
As the python package installed from python-msgpack is just named "msgpack" in python. Borg runs fine after making this change.
I temporarily fixed it with:
>> pip install msgpack-python==0.5.6 --user
I know it's a PITA to argue with the upstream maintainers and they will not fix this for now, see https://github.com/borgbackup/borg/pull/3891.
It therefore should not be removed with the new release of borgbackup...