Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #10057
| Path | csiph.com!goblin1!goblin.stu.neva.ru!news.mixmin.net!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Piotr Ożarowski <piotr@debian.org> |
| Newsgroups | linux.debian.maint.python, linux.debian.bugs.dist |
| Subject | Re: Please help with test suite error and installation problem of python-aws-xray-sdk (Was: If there is no response in debian-python then debian-science might be the right team) |
| Date | Mon, 15 Jan 2018 14:00:01 +0100 |
| Message-ID | <v8cwN-1G5-5@gated-at.bofh.it> (permalink) |
| References | <v7a41-1Y3-1@gated-at.bofh.it> <v88tb-7qP-5@gated-at.bofh.it> <v8alk-eV-7@gated-at.bofh.it> <v8bAJ-11k-7@gated-at.bofh.it> |
| X-Original-To | debian-python@lists.debian.org, Debian Science List <debian-science@lists.debian.org>, 777089@bugs.debian.org |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Mon Jan 15 12:53:04 2018 |
| Old-Return-Path | <piotr@ozarowski.pl> |
| X-Amavis-Spam-Status | No, score=-6.731 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -6.1 |
| Mail-Followup-To | debian-python@lists.debian.org, Debian Science List <debian-science@lists.debian.org>, 777089@bugs.debian.org |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| X-Operating-System | Debian GNU/Linux (4.14.0-0.bpo.2-amd64) |
| User-Agent | NeoMutt/20171208 |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/15452 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/20180115125227.e63vjwbitdyes26l@sar0.p1otr.com |
| Approved | robomod@news.nic.it |
| Lines | 68 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Mon, 15 Jan 2018 13:52:27 +0100 |
| X-Original-Message-ID | <20180115125227.e63vjwbitdyes26l@sar0.p1otr.com> |
| X-Original-References | <20180112160153.swvluhcudyw43ll6@an3as.eu> <20180115083753.pen4mpryoar6cji5@an3as.eu> <DB23C409-7C63-4C19-B75E-8B2EFF393983@onerussian.com> <20180115115929.gnffbsmgmr2b2dcr@an3as.eu> |
| Xref | csiph.com linux.debian.maint.python:10057 linux.debian.bugs.dist:875428 |
Cross-posted to 2 groups.
Show key headers only | View raw
[Andreas Tille, 2018-01-15]
> 1) test suite
>
> I: pybuild base:184: cd /build/python-aws-xray-sdk-0.95/.pybuild/pythonX.Y_2.7/build; python2.7 -m pytest tests
> ============================= test session starts ==============================
> platform linux2 -- Python 2.7.14+, pytest-3.2.1, py-1.4.34, pluggy-0.4.0
> rootdir: /build/python-aws-xray-sdk-0.95, inifile:
> collected 57 items / 4 errors
>
> ==================================== ERRORS ====================================
> ERROR collecting .pybuild/pythonX.Y_2.7/build/tests/test_async_local_storage.py.
> /usr/lib/python2.7/dist-packages/_pytest/python.py:395: in _importtestmodule
> mod = self.fspath.pyimport(ensuresyspath=importmode)
> /usr/lib/python2.7/dist-packages/py/_path/local.py:662: in pyimport
> __import__(modname)
> E File "/build/python-aws-xray-sdk-0.95/.pybuild/pythonX.Y_2.7/build/tests/test_async_local_storage.py", line 10
> E async def _test():
> E ^
> E SyntaxError: invalid syntax
async (and all aio* libs in other tests) is not available in Python 2.7
so simply disable them. You can do this in debian/rules:
export PYBUILD_TEST_ARGS_python2=--ignore tests/test_async_local_storage.py --ignore tests/test_async_recorder.py --ignore tests/ext/aiobotocore/ --ignore tests/ext/aiohttp/
> 2) installation of the resulting package:
>
> E:Sub-process /usr/bin/dpkg returned an error code (1)
> Traceback (most recent call last):
> File "/usr/share/wajig/debfile-deps.py", line 56, in <module>
> main(sys.argv[1])
> File "/usr/share/wajig/debfile-deps.py", line 48, in main
> cache.commit(apt.progress.text.AcquireProgress())
> File "/usr/lib/python3/dist-packages/apt/cache.py", line 529, in commit
> raise SystemError("installArchives() failed")
> SystemError: installArchives() failed
> python-aws-xray-sdk (0.95-1) wird eingerichtet ...
> File "/usr/lib/python2.7/dist-packages/aws_xray_sdk/core/async_context.py", line 14
> def __init__(self, *args, loop=None, use_task_factory=True, **kwargs):
> ^
> SyntaxError: invalid syntax
>
> File "/usr/lib/python2.7/dist-packages/aws_xray_sdk/core/async_recorder.py", line 20
> async def wrapper(wrapped, instance, args, kwargs):
> ^
> SyntaxError: invalid syntax
>
> File "/usr/lib/python2.7/dist-packages/aws_xray_sdk/ext/aiobotocore/patch.py", line 30
> async def _xray_traced_aiobotocore(wrapped, instance, args, kwargs):
> ^
> SyntaxError: invalid syntax
>
> File "/usr/lib/python2.7/dist-packages/aws_xray_sdk/ext/aiohttp/middleware.py", line 11
> async def middleware(app, handler):
> ^
> SyntaxError: invalid syntax
similar issue here, async stuff will not work in 2.7, you can tell
dh_python2 to remove these files by adding
debian/python-aws-xray-sdk.pyremove file containing:
aws_xray_sdk/core/async_*
aws_xray_sdk/ext/aiobotocore/
aws_xray_sdk/ext/aiohttp/
--
GPG: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Packaging python-aws-xray-sdk to fullfil a dependency for python-moto Andreas Tille <andreas@an3as.eu> - 2018-01-12 17:10 +0100
If there is no response in debian-python then debian-science might be the right team (Was: Packaging python-aws-xray-sdk to fullfil a dependency for python-moto) Andreas Tille <andreas@an3as.eu> - 2018-01-15 09:40 +0100
Re: If there is no response in debian-python then debian-science might be the right team (Was: Packaging python-aws-xray-sdk to fullfil a dependency for python-moto) Yaroslav Halchenko <yoh@onerussian.com> - 2018-01-15 11:50 +0100
Please help with test suite error and installation problem of python-aws-xray-sdk (Was: If there is no response in debian-python then debian-science might be the right team) Andreas Tille <andreas@an3as.eu> - 2018-01-15 13:00 +0100
Re: Please help with test suite error and installation problem of python-aws-xray-sdk (Was: If there is no response in debian-python then debian-science might be the right team) Simon McVittie <smcv@debian.org> - 2018-01-15 13:30 +0100
Re: Please help with test suite error and installation problem of python-aws-xray-sdk (Was: If there is no response in debian-python then debian-science might be the right team) Andreas Tille <andreas@an3as.eu> - 2018-01-15 13:50 +0100
Re: Please help with test suite error and installation problem of python-aws-xray-sdk (Was: If there is no response in debian-python then debian-science might be the right team) Tristan Seligmann <mithrandi@mithrandi.net> - 2018-01-15 13:30 +0100
Re: Please help with test suite error and installation problem of python-aws-xray-sdk (Was: If there is no response in debian-python then debian-science might be the right team) Piotr Ożarowski <piotr@debian.org> - 2018-01-15 14:00 +0100
Re: Please help with test suite error and installation problem of python-aws-xray-sdk (Was: If there is no response in debian-python then debian-science might be the right team) Andreas Tille <andreas@an3as.eu> - 2018-01-15 16:10 +0100
Re: Please help with test suite error and installation problem of python-aws-xray-sdk (Was: If there is no response in debian-python then debian-science might be the right team) Piotr Ożarowski <piotr@debian.org> - 2018-01-15 16:20 +0100
Next python-mote pre-condition test issue: python-jsondiff trows ModuleNotFoundError: No module named 'nose_random' Andreas Tille <andreas@an3as.eu> - 2018-01-16 21:50 +0100
Re: Next python-mote pre-condition test issue: python-jsondiff trows ModuleNotFoundError: No module named 'nose_random' Tristan Seligmann <mithrandi@mithrandi.net> - 2018-01-17 08:20 +0100
Re: Next python-mote pre-condition test issue: python-jsondiff trows ModuleNotFoundError: No module named 'nose_random' Andreas Tille <andreas@an3as.eu> - 2018-01-17 11:20 +0100
Bug#777089: Preconditions for python-moto finished - help needed to build package itself Andreas Tille <andreas@fam-tille.de> - 2018-02-02 09:30 +0100
Bug#777089: Preconditions for python-moto finished - help needed to build package itself Olivier Sallou <olivier.sallou@irisa.fr> - 2018-02-02 10:20 +0100
Re: Next python-mote pre-condition - issue with pybuild: python-backports.tempfile conflicting python-backports.weakref Andreas Tille <andreas@an3as.eu> - 2018-01-22 15:10 +0100
Re: Next python-mote pre-condition - issue with pybuild: python-backports.tempfile conflicting python-backports.weakref Piotr Ożarowski <piotr@debian.org> - 2018-01-22 15:30 +0100
Re: Next python-mote pre-condition - issue with pybuild: python-backports.tempfile conflicting python-backports.weakref Olivier Sallou <olivier.sallou@irisa.fr> - 2018-01-23 17:20 +0100
Re: Next python-mote pre-condition - issue with pybuild: python-backports.tempfile conflicting python-backports.weakref Olivier Sallou <olivier.sallou@irisa.fr> - 2018-01-26 16:20 +0100
Re: Next python-mote pre-condition - issue with pybuild: python-backports.tempfile conflicting python-backports.weakref Sandro Tosi <morph@debian.org> - 2018-01-26 17:10 +0100
csiph-web