Path: csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!news.dns-netz.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod From: Andreas Tille Newsgroups: linux.debian.bugs.dist,linux.debian.maint.python Subject: Bug#937262: Help needed (Was: pdb2pqr: Python2 removal in sid/bullseye) Date: Thu, 12 Dec 2019 17:20:01 +0100 Message-ID: References: X-Original-To: 937262@bugs.debian.org, Debian Python X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Thu Dec 12 16:12:12 2019 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -3.95 Reply-To: Andreas Tille , 937262@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: Debian Med Packaging Team X-Debian-Pr-Message: followup 937262 X-Debian-Pr-Package: src:pdb2pqr X-Debian-Pr-Keywords: bullseye sid X-Debian-Pr-Source: pdb2pqr X-Spam-Bayes: score:0.0000 Tokens: new, 33; hammy, 145; neutral, 38; spammy, 1. spammytokens:0.987-1--H*r:50470 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: archive/latest/1573530 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 36 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 12 Dec 2019 17:09:00 +0100 X-Original-Message-ID: <20191212160900.GI26401@an3as.eu> X-Original-References: Xref: csiph.com linux.debian.bugs.dist:986993 linux.debian.maint.python:12138 Control: tags -1 help Hi, it seems pdb2pqr is orphaned upstream. However, it seems to be worth keeping inside Debian thus I tried my luck to port it to Python3 in Git[1]. Unfortunately the build runs into scons: Building targets ... CopySubAction("pdb2pqr.py", "pdb2pqr.py.in") scons: *** [pdb2pqr.py] TypeError : a bytes-like object is required, not 'str' Traceback (most recent call last): File "/usr/lib/scons/SCons/Action.py", line 1209, in execute result = self.execfunction(target=target, source=rsources, env=env) File "/usr/lib/scons/SCons/Action.py", line 1371, in __call__ return self.parent.actfunc(*args, **kw) File "./site_scons/site_init.py", line 123, in CopySubAction contents = contents.replace(k, v) TypeError: a bytes-like object is required, not 'str' scons: building terminated because of errors. I wonder whether it might just be a scons issue. Please note that I'm using scons 3.1.1-4 from experimental that is supposed to run with Python3. Any hint would be welcome. Kind regards Andreas. [1] https://salsa.debian.org/med-team/pdb2pqr -- http://fam-tille.de