Path: csiph.com!news.freedyn.net!open-news-network.org!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Andreas Tille 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 13:50:02 +0100 Message-ID: References: X-Original-To: Debian Science List , debian-python@lists.debian.org, 777089@bugs.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Mon Jan 15 12:49:11 2018 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5.01 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, GOOGLESEARCH=2, LDO_WHITELIST=-5, T_RP_MATCHES_RCVD=-0.01] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) X-Mailing-List: archive/latest/15451 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20180115124854.74chmjqk67ajggz2@an3as.eu Approved: robomod@news.nic.it Lines: 46 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 15 Jan 2018 13:48:54 +0100 X-Original-Message-ID: <20180115124854.74chmjqk67ajggz2@an3as.eu> X-Original-References: <20180112160153.swvluhcudyw43ll6@an3as.eu> <20180115083753.pen4mpryoar6cji5@an3as.eu> <20180115115929.gnffbsmgmr2b2dcr@an3as.eu> <20180115122102.GB26857@perpetual.pseudorandom.co.uk> Xref: csiph.com linux.debian.maint.python:10056 linux.debian.bugs.dist:875425 Hi Simon & Tristan (racing condition with same answer), On Mon, Jan 15, 2018 at 12:21:02PM +0000, Simon McVittie wrote: > On Mon, 15 Jan 2018 at 12:59:29 +0100, Andreas Tille wrote: > > 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 > > Looks like it needs python3 >= 3.5. https://www.google.com/search?q=async%20def > > > 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 > > That's Python 3 syntax too. https://www.python.org/dev/peps/pep-3102/ Setup.py of the package says: ... 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ... In the end we actually need this also for Python 2.7 since python-pandas is also 2.7 and Python 3 (and several reverse depends of python-pandas need 2.7 as well). Seems I need to open an issue on Github. Further question: It seems my packaging is broken since the test is only run on Python 2.7 (and is breaking there as you know). What am I missing to run the Python 3 tests? Kind regards Andreas. -- http://fam-tille.de