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


Groups > linux.debian.maint.python > #12162

Bug#936802: kmer: Python2 removal in sid/bullseye

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Andreas Tille <andreas@an3as.eu>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.python
Subject Bug#936802: kmer: Python2 removal in sid/bullseye
Date Thu, 19 Dec 2019 20:40:02 +0100
Message-ID <zf9Oq-KY-21@gated-at.bofh.it> (permalink)
References <zf7CW-7Tq-7@gated-at.bofh.it> <zf8Sm-aI-13@gated-at.bofh.it> <zf7CW-7Tq-9@gated-at.bofh.it> <zf8Sm-aI-13@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Thu Dec 19 19:39:13 2019
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -3.95
Reply-To Andreas Tille <andreas@an3as.eu>, 936802@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
X-Debian-Pr-Message followup 936802
X-Debian-Pr-Package src:kmer
X-Debian-Pr-Keywords help bullseye sid
X-Debian-Pr-Source kmer
X-Spam-Bayes score:0.0000 Tokens: new, 37; hammy, 150; neutral, 40; spammy, 0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--H*u:1.10.1, 0.000-+--H*UA:1.10.1, 0.000-+--H*u:2018-07-13, 0.000-+--H*UA:2018-07-13
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.10.1 (2018-07-13)
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1574603
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 53
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc 936802@bugs.debian.org, Debian Python <debian-python@lists.debian.org>
X-Original-Date Thu, 19 Dec 2019 20:38:07 +0100
X-Original-Message-ID <20191219193807.GU13090@an3as.eu>
X-Original-References <20191219170954.GS13090@an3as.eu> <alpine.DEB.2.21.1912191332510.1506@bear.techie.net> <E1i3bEd-0003VZ-5M@paradis.debian.org> <alpine.DEB.2.21.1912191332510.1506@bear.techie.net>
Xref csiph.com linux.debian.bugs.dist:987856 linux.debian.maint.python:12162

Cross-posted to 2 groups.

Show key headers only | View raw


Hi Scott,

thanks a lot for your hint.

On Thu, Dec 19, 2019 at 01:34:08PM -0500, Scott Talbert wrote:
> 
> The 'file' class doesn't exist anymore in Python 3.  You'll have to rewrite
> myfile to not use it.

OK, I simply went with

...
@@ -608,6 +608,11 @@ Last-Update: Thu, 19 Dec 2019 10:43:09 +0100
  
  # from __future__ import generators  # Necessary before Python 2.3
  
+-class myfile(file):
++class myfile():
+     "A temporary anonymous file"
+     def __init__(self):
+         filename = tempfile.mktemp()
 @@ -27,8 +27,8 @@ class ListLikeFileIter:
          self._fileIter = iter(self._fileptr.readline,"")
      def __del__(self):
...


This brings me to the next error where a Module written in C is not
found:



python3 /usr/bin/../lib/atac/bin/AtacDriver.py /tmp/atac-test.XqdEPl/results/work/LeprvsTuber.matches.extended

Traceback (most recent call last):
  File "/usr/bin/../lib/atac/bin/AtacDriver.py", line 26, in <module>
    import localAlignerInterface
ModuleNotFoundError: No module named 'localAlignerInterface'
PYTHONPATH=/usr/bin/../lib/atac/lib
Chainer failed.



The file /usr/lib/atac/lib/localAlignerInterfacemodule.so exists
but it seems the Python3 script can't load it.


Kind regards

        Andreas.

-- 
http://fam-tille.de

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Bug#936802: kmer: Python2 removal in sid/bullseye Andreas Tille <andreas@an3as.eu> - 2019-12-19 18:20 +0100
  Bug#936802: kmer: Python2 removal in sid/bullseye Scott Talbert <swt@techie.net> - 2019-12-19 19:40 +0100
    Bug#936802: kmer: Python2 removal in sid/bullseye Andreas Tille <andreas@an3as.eu> - 2019-12-19 20:40 +0100

csiph-web