[Debian-l10n-devel] Bug#866551: translate-toolkit: ftbfs when multiple python 3 versions are supported
Scott Kitterman
debian at kitterman.com
Fri Jun 30 06:29:02 UTC 2017
On Fri, 30 Jun 2017 14:28:11 +1200 Michael Hudson-Doyle
<michael.hudson at ubuntu.com> wrote:
> Source: translate-toolkit
> Version: 2.0.0-1
> Severity: important
> User: debian-python at lists.debian.org
> Usertags: python3.6
>
> Dear Maintainer,
>
> The build fails in very strange ways when multiple Python 3 versions are
> supported, e.g. if 3.5 is default and 3.6 is supported you get this when
> running the Python 3.6 tests:
>
> __________________________ test_open_office_to_xliff
___________________________
>
> @pytest.mark.skipif('TTKIT_SKIP_COMMANDS' in os.environ,
> reason='Skip testing command line tools')
> def test_open_office_to_xliff():
> > assert call(['oo2xliff', 'en-US.sdf', '-l', 'fr', 'fr']) == 0
> E assert 1 == 0
> E + where 1 = call(['oo2xliff', 'en-US.sdf', '-l', 'fr', 'fr'])
>
> test_xliff_conformance.py:67: AssertionError
> ----------------------------- Captured stderr call
-----------------------------
> Failed to import the site module
> Traceback (most recent call last):
> File "/usr/lib/python3.6/site.py", line 79, in <module>
> import os
> File "/usr/lib/python3.6/os.py", line 652, in <module>
> from _collections_abc import MutableMapping
> File "/usr/lib/python3.6/_collections_abc.py", line 64
> async def _ag(): yield
> ^
> SyntaxError: 'yield' inside async function
>
> What's happening here is that the oo2xliff binary has been built to use the
> default Python 3 (3.5) but the way that test_xliff_conformance.py sets up
the
> environment means that oo2xliff tries to import site.py from _Python 3.6_.
And
> this doesn't work.
>
> I poked a little at trying to fix this but didn't really get anywhere.
Perhaps
> the simple fix is just to support the default version of Python 3.
We now have multiple python3 versions supported in Debian, so bumping to
serious.
Scott K
More information about the Debian-l10n-devel
mailing list