Package: tox
Version: 2.3.1-4
Severity: normal

Dear Maintainer,

I am the maintainer of Tahoe-LAFS in debian and also an occasional
contributor to the project. The project recently switched to tox for
running unit tests. Tahoe-LAFS needs Python2.7 to run. On a fresh git
checkout of the project, if I run tox, I get this error (which is coming
From tahoe setup script that checks if python2 is indeed being used).

~/src/tahoe-lafs$ tox
GLOB sdist-make: /home/rkrishnan/src/tahoe-lafs/setup.py
ERROR: invocation failed (exit code 1), logfile:
/home/rkrishnan/src/tahoe-lafs/.tox/log/tox-0.log
ERROR: actionid: tox
msg: packaging
cmdargs: ['/usr/bin/python3',
local('/home/rkrishnan/src/tahoe-lafs/setup.py'), 'sdist',
'--formats=zip', '--dist-dir',
local('/home/rkrishnan/src/tahoe-lafs/.tox/dist')]
env: None

  File "setup.py", line 3
    import sys; assert sys.version_info < (3,), ur"Tahoe-LAFS does not
    run under Python 3. Please use Python 2.7.x."
                                                                                
                                   ^
SyntaxError: invalid syntax

ERROR: FAIL could not package project - v =
InvocationError('/usr/bin/python3
/home/rkrishnan/src/tahoe-lafs/setup.py sdist --formats=zip --dist-dir
/home/rkrishnan/src/tahoe-lafs/.tox/dist (see
/home/rkrishnan/src/tahoe-lafs/.tox/log/tox-0.log)', 1)
~/src/tahoe-lafs$

I am totally new to tox. I am assuming that tox itself being a python3
program shouldn't affect running it *on* a python2 project. I would
request some help understanding what is going on.

Thanks
Ramakrishnan


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_IN.UTF-8, LC_CTYPE=en_IN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages tox depends on:
ii  libjs-sphinxdoc        1.3.6-2
ii  python3                3.4.3-7
ii  python3-pkg-resources  18.8-1
ii  python3-pluggy         0.3.1-1
ii  python3-py             1.4.31-1
ii  python3-setuptools     18.8-1
ii  python3-virtualenv     1.11.6+ds-1
pn  python3:any            <none>
ii  virtualenv             1.11.6+ds-1

tox recommends no packages.

tox suggests no packages.

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to