Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #12139
| From | Scott Talbert <swt@techie.net> |
|---|---|
| Newsgroups | linux.debian.maint.python, linux.debian.bugs.dist |
| Subject | Re: Help with scons needed (Was: Help needed (Was: pdb2pqr: Python2 removal in sid/bullseye)) |
| Date | 2019-12-12 21:50 +0100 |
| Message-ID | <zcDzk-3y0-19@gated-at.bofh.it> (permalink) |
| References | <zczcl-ZB-1@gated-at.bofh.it> <zczFn-19B-5@gated-at.bofh.it> <zcD6h-3nU-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Cross-posted to 2 groups.
On Thu, 12 Dec 2019, Andreas Tille wrote: >> On Thu, 12 Dec 2019, Andreas Tille wrote: >> >> I don't see any Python3 changes in that repository. Did you push your >> changes? > > Argh, its pushed now. > >> Anyway, the problem is likely in CopySubAction in site_scons/site_init.py. >> >> On line 111, the file 'sourcefile' is opened as binary. Then, when then >> next line, 'contents = r.read()' is executed, contents ends up as a bytes >> object. Thus on line 123, when 'contents = contents.replace(k, v)' is >> executed, contents is a bytes object, whereas k and v are strings. You >> can't mix strings and bytes objects like that in Python 3. >> >> You could perhaps try opening the file as a text file instead (remove the >> 'b') from the open function call. > > That hint was helpful anyway and I get further now. I think now the > problem is to convince scons to install in $(CURDIR)/debian/tmp which > seems to try rather /usr/share/pdb2pqr directly: Looks like the debian/rules file is specifying /usr/share/pdb2pqr as PREFIX: https://salsa.debian.org/med-team/pdb2pqr/blob/master/debian/rules#L33 Scott
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#937262: Help needed (Was: pdb2pqr: Python2 removal in sid/bullseye) Andreas Tille <andreas@an3as.eu> - 2019-12-12 17:20 +0100
Re: Help with scons needed (Was: Help needed (Was: pdb2pqr: Python2 removal in sid/bullseye)) Scott Talbert <swt@techie.net> - 2019-12-12 21:50 +0100
Bug#937262: Help with scons needed (Was: Help needed (Was: pdb2pqr: Python2 removal in sid/bullseye)) Andreas Tille <andreas@an3as.eu> - 2019-12-13 10:00 +0100
Re: Bug#937262: Help with scons needed (Was: Help needed (Was: pdb2pqr: Python2 removal in sid/bullseye)) Andrey Rahmatullin <wrar@debian.org> - 2019-12-13 11:30 +0100
Re: Bug#937262: Help with scons needed (Was: Help needed (Was: pdb2pqr: Python2 removal in sid/bullseye)) Andreas Tille <andreas@an3as.eu> - 2019-12-13 13:10 +0100
Bug#937262: Help with scons needed (Was: Help needed (Was: pdb2pqr: Python2 removal in sid/bullseye)) Andrey Rahmatullin <wrar@debian.org> - 2019-12-13 13:30 +0100
Bug#937262: Help with scons needed (Was: Help needed (Was: pdb2pqr: Python2 removal in sid/bullseye)) Andreas Tille <tille@debian.org> - 2019-12-13 13:50 +0100
Bug#937262: Help with scons needed (Was: Help needed (Was: pdb2pqr: Python2 removal in sid/bullseye)) Andreas Tille <tille@debian.org> - 2019-12-13 16:00 +0100
Re: Bug#937262: Help with scons needed (Was: Help needed (Was: pdb2pqr: Python2 removal in sid/bullseye)) Andrey Rahmatullin <wrar@debian.org> - 2019-12-13 19:00 +0100
Bug#937262: Help needed (Was: pdb2pqr: Python2 removal in sid/bullseye) Andrey Rahmatullin <wrar@debian.org> - 2019-12-13 22:40 +0100
csiph-web