Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #11824
| 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#939181: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye |
| Date | Mon, 16 Sep 2019 11:50:02 +0200 |
| Message-ID | <yGVEe-6ip-9@gated-at.bofh.it> (permalink) |
| References | <yGD4C-1Lw-1@gated-at.bofh.it> <yBKT7-8wu-11@gated-at.bofh.it> <yGD4C-1Lw-1@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-bugs-dist-request@lists.debian.org Mon Sep 16 09:42:12 2019 |
| Old-Return-Path | <debbugs@buxtehude.debian.org> |
| X-Spam-Flag | NO |
| X-Spam-Score | -3.951 |
| Reply-To | Andreas Tille <andreas@an3as.eu>, 939181@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 939181 |
| X-Debian-Pr-Package | src:cycle |
| X-Debian-Pr-Keywords | help sid bullseye |
| X-Debian-Pr-Source | cycle |
| X-Spam-Bayes | score:0.0000 Tokens: new, 13; hammy, 150; neutral, 39; spammy, 0. spammytokens: hammytokens:0.000-+--H*UA:NeoMutt, 0.000-+--H*u:NeoMutt, 0.000-+--H*RU:mail.an3as.eu, 0.000-+--H*r:mail.an3as.eu, 0.000-+--H*M:an3as |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | NeoMutt/20170113 (1.7.2) |
| X-Debian-Message | from BTS |
| X-Mailing-List | <debian-bugs-dist@lists.debian.org> archive/latest/1558948 |
| List-ID | <debian-bugs-dist.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-bugs-dist/> |
| Approved | robomod@news.nic.it |
| Lines | 34 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | 939181@bugs.debian.org, debian-python@lists.debian.org |
| X-Original-Date | Mon, 16 Sep 2019 11:38:49 +0200 |
| X-Original-Message-ID | <20190916093849.stchjxhwibsb7ydx@an3as.eu> |
| X-Original-References | <55ac32fe-a848-25c7-90ac-7eb7ede78eb7@p10link.net> <alpine.DEB.2.21.1909012302200.30297@bear.techie.net> <55ac32fe-a848-25c7-90ac-7eb7ede78eb7@p10link.net> |
| Xref | csiph.com linux.debian.bugs.dist:975310 linux.debian.maint.python:11824 |
Cross-posted to 2 groups.
Show key headers only | View raw
Hi Peter,
On Sun, Sep 15, 2019 at 02:47:50PM +0100, peter green wrote:
> > > tmp = rt.encrypt('Cycle{}'.format(pickle.dumps(objSave)))
> >
> > Thanks to this hint
> This hint was *wrong*, it will introduce garbage into the string and the "rotor" code is clearly designed to work with byte strings, not unicode strings.
>
> Change it to
>
> "tmp=rt.encrypt( b'Cycle'+pickle.dumps(objSave) )"
Thanks a lot for your patience. Unfortunately this is not
yet the final solution:
...
Traceback (most recent call last):
File "/usr/bin/cycle", line 83, in OnCloseWindow
Save_Cycle(cycle.name, cycle.passwd, cycle.file)
File "/usr/share/cycle/save_load.py", line 46, in Save_Cycle
tmp=rt.encrypt( b'Cycle'+pickle.dumps(objSave) )
File "/usr/share/cycle/p_rotor.py", line 63, in encrypt
return self.cryptmore(buf, 0)
File "/usr/share/cycle/p_rotor.py", line 88, in cryptmore
c = rotors[i][c ^ pos[i]]
TypeError: unsupported operand type(s) for ^: 'int' and 'float'
Kind regards
Andreas.
--
http://fam-tille.de
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#939181: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye peter green <plugwash@p10link.net> - 2019-09-15 16:00 +0200
Bug#939181: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye Andreas Tille <andreas@an3as.eu> - 2019-09-16 11:50 +0200
Re: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye Michael Kesper <mkesper@schokokeks.org> - 2019-09-16 12:00 +0200
Re: [Help] Re: Bug#939181: cycle: Python2 removal in sid/bullseye Andreas Tille <andreas@an3as.eu> - 2019-09-18 17:50 +0200
csiph-web