Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #10141 > unrolled thread

Help needed for Python3 package python3-bd2k which does not install due to syntax error

Started byAndreas Tille <andreas@an3as.eu>
First post2018-02-11 23:50 +0100
Last post2018-02-12 10:40 +0100
Articles 4 — 4 participants

Back to article view | Back to linux.debian.maint.python


Contents

  Help needed for Python3 package python3-bd2k which does not install  due to syntax error Andreas Tille <andreas@an3as.eu> - 2018-02-11 23:50 +0100
    Re: Help needed for Python3 package python3-bd2k which does not  install due to syntax error Andrey Rahmatullin <wrar@debian.org> - 2018-02-12 09:00 +0100
    Re: Help needed for Python3 package python3-bd2k which does not  install due to syntax error Piotr Ożarowski <piotr@debian.org> - 2018-02-12 10:20 +0100
      Re: Help needed for Python3 package python3-bd2k which does not  install due to syntax error Ghislain Vaillant <ghisvail@gmail.com> - 2018-02-12 10:40 +0100

#10141 — Help needed for Python3 package python3-bd2k which does not install due to syntax error

FromAndreas Tille <andreas@an3as.eu>
Date2018-02-11 23:50 +0100
SubjectHelp needed for Python3 package python3-bd2k which does not install due to syntax error
Message-ID<vi8Bz-8vD-7@gated-at.bofh.it>
Hi,

the Debian Med team is working on python-bd2k[1] which builds fine
and also runs build time tests.  Unfortunately when trying to install
python3-bd2k it fails with:

...
  File "/usr/lib/python3/dist-packages/bd2k/util/exceptions.py", line 38
    raise exc_type, exc_value, traceback
                  ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/bd2k/util/test/test_panic.py", line 47
    raise exc_type, exc_value, exc_traceback
                  ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/bd2k/util/threading.py", line 65
    raise type, value, traceback
              ^
SyntaxError: invalid syntax

...


I'm pretty sure that will ring a bell for some Python3 programmer and I
hope to be able to fix this quickly with your help to be able to easily
provide the Python3 version in addition to Python2.

Thanks a lot

       Andreas.

[1] https://anonscm.debian.org/git/debian-med/python-bd2k.git

-- 
http://fam-tille.de

[toc] | [next] | [standalone]


#10144 — Re: Help needed for Python3 package python3-bd2k which does not install due to syntax error

FromAndrey Rahmatullin <wrar@debian.org>
Date2018-02-12 09:00 +0100
SubjectRe: Help needed for Python3 package python3-bd2k which does not install due to syntax error
Message-ID<vihbP-5Ng-1@gated-at.bofh.it>
In reply to#10141

[Multipart message — attachments visible in raw view] — view raw

On Sun, Feb 11, 2018 at 11:47:37PM +0100, Andreas Tille wrote:
> I'm pretty sure that will ring a bell for some Python3 programmer and I
> hope to be able to fix this quickly with your help to be able to easily
> provide the Python3 version in addition to Python2.
The package code does not support python 3. You cannot "quickly fix"
something like that.

-- 
WBR, wRAR

[toc] | [prev] | [next] | [standalone]


#10146 — Re: Help needed for Python3 package python3-bd2k which does not install due to syntax error

FromPiotr Ożarowski <piotr@debian.org>
Date2018-02-12 10:20 +0100
SubjectRe: Help needed for Python3 package python3-bd2k which does not install due to syntax error
Message-ID<viirf-6PL-7@gated-at.bofh.it>
In reply to#10141
> python-bd2k[1] which builds fine

it doesn't if you remove the override to not run Python 3.X tests
-- 
GPG: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645

[toc] | [prev] | [next] | [standalone]


#10147 — Re: Help needed for Python3 package python3-bd2k which does not install due to syntax error

FromGhislain Vaillant <ghisvail@gmail.com>
Date2018-02-12 10:40 +0100
SubjectRe: Help needed for Python3 package python3-bd2k which does not install due to syntax error
Message-ID<viiKB-6WL-3@gated-at.bofh.it>
In reply to#10146
Le lundi 12 février 2018 à 10:10 +0100, Piotr Ożarowski a écrit :
> > python-bd2k[1] which builds fine
> 
> it doesn't if you remove the override to not run Python 3.X tests

Indeed, the Python build system will almost always let you "build" a
package, even if it is not Python 3 ready.

Your only solace here is to run a proper migration to Python 3 (which
could be just a matter of running 2to3) and use the test suite (which
hopefully covers enough of the code base) to validate it.

Ghis

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web