FS#61109 - [translate-toolkit] errors running scripts from translate-toolkit

Attached to Project: Community Packages
Opened by jozef riha (jose1711) - Monday, 17 December 2018, 10:54 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Saturday, 02 November 2019, 19:24 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Lukas Fleischer (lfleischer)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

$ ts2po
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 581, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 898, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 789, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (diff-match-patch 20181111 (/usr/lib/python3.7/site-packages), Requirement.parse('diff-match-patch==20121119'), {'translate-toolkit'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/ts2po", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3126, in <module>
@_call_aside
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3110, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3139, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 596, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 784, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'diff-match-patch==20121119' distribution was not found and is required by translate-toolkit


Additional info:
* translate-toolkit 2.3.1-1
* python-diff-match-patch 20181111-1

Steps to reproduce:
1. run ts2po (or any other script from translate-toolkit)
2. receive an error
This task depends upon

Closed by  Jaroslav Lichtblau (Dragonlord)
Saturday, 02 November 2019, 19:24 GMT
Reason for closing:  Upstream
Additional comments about closing:  Upstream fixed it.
Comment by jozef riha (jose1711) - Wednesday, 16 January 2019, 19:38 GMT
workaround: downgrading to python-diff-match-patch-20121119-4-any.pkg.tar.xz
Comment by Rikard Falkeborn (Herk) - Monday, 22 April 2019, 08:31 GMT
Upstream bug report: https://github.com/translate/translate/issues/3843

Seems it's fixed but not yet released.
Comment by Rafael Fontenelle (josephg) - Thursday, 31 October 2019, 11:23 GMT
The above upstream bug report was resolved and the fix is available in translate-toolkit 2.4.0, already on Arch. Close this bug?

Loading...