FS#52941 - [translate-toolkit] Add dependency python-diff-match-patch

Attached to Project: Arch Linux
Opened by Rafael Fontenelle (josephg) - Monday, 13 February 2017, 06:07 GMT
Last edited by Eli Schwartz (eschwartz) - Sunday, 10 September 2017, 19:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description: Its commands fail if diff-match-patch==20121119 is not installed. Please notice diff-match-patch is included as depedency in source code in requirements/required.txt

Additional info:
* package version(s)
translate-toolkit 2.0.0-1

Steps to reproduce:

* run a command provided by this package (po2sub, poconflicts, pofilter, etc.)

e.g.:
$ po2sub --help
Traceback (most recent call last):
File "/usr/bin/po2sub", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3036, in <module>
@_call_aside
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3020, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3049, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 654, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 968, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 854, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'diff-match-patch==20121119' distribution was not found and is required by translate-toolkit
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Sunday, 10 September 2017, 19:05 GMT
Reason for closing:  Fixed
Additional comments about closing:  moved to community, fixed in translate-toolkit 2.2.5-1
Comment by Jaroslav Lichtblau (Dragonlord) - Thursday, 13 July 2017, 08:09 GMT
python-diff-match-patch now available in [community] repository https://www.archlinux.org/packages/community/any/python-diff-match-patch/
installing the package fixes the error
@lfleischer feel free to grab it for the translate-toolkit package
Comment by Jaroslav Lichtblau (Dragonlord) - Sunday, 10 September 2017, 18:54 GMT
Implemented in translate-toolkit-2.2.5-1
Comment by Eli Schwartz (eschwartz) - Sunday, 10 September 2017, 19:03 GMT
Why do we still have a package in extra after the move? It seems extra2community deleted it from extra in svn but failed to purge the package from [extra].

Loading...