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


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

RE:TypeError: ord() expected a character, but string of length 3 found (Was: Updated python-uncertainties)

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
Newsgroups linux.debian.maint.python
Subject RE:TypeError: ord() expected a character, but string of length 3 found (Was: Updated python-uncertainties)
Date Fri, 12 Oct 2018 17:40:01 +0200
Message-ID <wI7HH-2NC-7@gated-at.bofh.it> (permalink)
References <wHH0T-3XO-67@gated-at.bofh.it> <wHYXL-6cv-1@gated-at.bofh.it> <wI3E5-vZ-11@gated-at.bofh.it> <wI477-F5-3@gated-at.bofh.it> <wI7HH-2NC-9@gated-at.bofh.it> <wI7eF-2Ex-1@gated-at.bofh.it>
X-Original-To Andreas Tille <tille@debian.org>, Chris Lamb <lamby@debian.org>
X-Mailbox-Line From debian-python-request@lists.debian.org Fri Oct 12 15:33:10 2018
Old-Return-Path <frederic-emmanuel.picca@synchrotron-soleil.fr>
X-Amavis-Spam-Status No, score=-0.1 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, THREADTOPIC=2] autolearn=no autolearn_force=no
X-Policyd-Weight NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -6.1
Dkim-Filter OpenDKIM Filter v2.11.0 poussette.synchrotron-soleil.fr EFBA0600AA
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=synchrotron-soleil.fr; s=email; t=1539357404; bh=7VctymZ+3d6Z5hCfSpusLuO1SdksUDwte4VwTGIDVT4=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=Y7x1A4MRzHiZPF4rnN9HYj2YRpcaZSixr089SkxNUzIwqpzZhXAtVdHwVpRYqO7op sSRQhTn3BMLVlI8FumNmZUEIkIZpBenfyuGtTR9e6bPwC5w75gR3O0wu605gRb9e7/ k+6P+JQpSTmqVgg8DPXRD0jQy+BylO7lBLKV9dQo=
Dkim-Filter OpenDKIM Filter v2.11.0 poussette.synchrotron-soleil.fr 155036007C
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=synchrotron-soleil.fr; s=email; t=1539357403; bh=7VctymZ+3d6Z5hCfSpusLuO1SdksUDwte4VwTGIDVT4=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=goSTDt2mO0aLpQOwoklWBaSWgGx6OCs2sdMkEOxKGjreTtrjX+Y9TkbLqWvLBGbZh 70BfICFuL42oPX3TOOOAy69e5FGQLaNVt4Q2Z3NESLKh0qId6ebV4hP178HoGnmxdH EnIsuJzd9nn1Iw4hzDJS4aF55qc20UW+K6v/956M=
Thread-Topic TypeError: ord() expected a character, but string of length 3 found (Was: Updated python-uncertainties)
Thread-Index AQHUYhzoUZVjlclRUkeDAJAcnFW1vKUbWLUAgAAUKACAABohgIAAKFqXgAAIT20=
Accept-Language fr-FR, en-US
Content-Language fr-FR
X-Originating-IP [195.221.0.171]
Content-Type text/plain; charset="iso-8859-1"
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-Mailing-List <debian-python@lists.debian.org> archive/latest/16419
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/A2A20EC3B8560D408356CAC2FC148E53015B33D1D9@SUN-DAG3.synchrotron-soleil.fr
Approved robomod@news.nic.it
Lines 19
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc "debian-python@lists.debian.org" <debian-python@lists.debian.org>, "David Paleino" <dapal@debian.org>, Federico Ceratto <federico.ceratto@gmail.com>, Picca Frédéric-Emmanuel <picca@debian.org>
X-Original-Date Fri, 12 Oct 2018 15:16:41 +0000
X-Original-Message-ID <A2A20EC3B8560D408356CAC2FC148E53015B33D1D9@SUN-DAG3.synchrotron-soleil.fr>
X-Original-References <20181011110643.hrxkvpfyzj4jjqeb@an3as.eu> <20181012061902.mf7vngqnwvxdge2s@an3as.eu> <20181012111533.4ym6loirbvnr2fnx@an3as.eu> <1539343938.2065153.1539680744.792D0909@webmail.messagingengine.com> <20181012124426.37nixbp2qupadu4o@an3as.eu>,<20181012141757.lpt5lmh4dhuzdsb3@an3as.eu>,<A2A20EC3B8560D408356CAC2FC148E53015B33D0B3@SUN-DAG3.synchrotron-soleil.fr> <A2A20EC3B8560D408356CAC2FC148E53015B33D0B3@SUN-DAG3.synchrotron-soleil.fr>
Xref csiph.com linux.debian.maint.python:10989

Show key headers only | View raw


Hello Andreas, it seems to me that the problem is due to the 2to3 conversion.

I looked at the first failure when you re-activate the unit test[1]

to my opinion, the code is modify in place with 2to3.
So the  code on the source after the configuration is already converted to python3.
And during the build process, with python2 the code is copied as it in the .pybuild place for python2
with python3 we see that the RefactoringTool, does nothing, it means the code is already converted to python3.

So I guess that the pythoncode used for python2 is already the code modified  for python3...

this is why the code failed for the unit test.

[1] https://salsa.debian.org/debian/python-uncertainties/-/jobs/53314

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


Thread

Re: Updated python-uncertainties Andreas Tille <andreas@an3as.eu> - 2018-10-12 08:20 +0200
  TypeError: ord() expected a character, but string of length 3 found  (Was: Updated python-uncertainties) Andreas Tille <andreas@an3as.eu> - 2018-10-12 13:20 +0200
    Re: TypeError: ord() expected a character,  but string of length 3 found (Was: Updated python-uncertainties) Chris Lamb <lamby@debian.org> - 2018-10-12 13:50 +0200
      Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Andreas Tille <tille@debian.org> - 2018-10-12 14:50 +0200
        Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Andreas Tille <tille@debian.org> - 2018-10-12 16:20 +0200
          Re: TypeError: ord() expected a character,  but string of length 3 found (Was: Updated python-uncertainties) Chris Lamb <lamby@debian.org> - 2018-10-12 16:40 +0200
          RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-12 17:10 +0200
            RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-12 17:40 +0200
              Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Piotr Ożarowski <piotr@debian.org> - 2018-10-12 18:20 +0200
                RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-12 18:40 +0200
                RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-13 11:10 +0200
                RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-13 11:50 +0200
                RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-13 14:00 +0200
                Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Andreas Tille <andreas@an3as.eu> - 2018-10-15 11:40 +0200
                RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-15 12:00 +0200
                Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Karsten Hilbert <Karsten.Hilbert@gmx.net> - 2018-10-15 12:10 +0200
                Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Andreas Tille <andreas@an3as.eu> - 2018-10-15 13:20 +0200
                RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-15 14:10 +0200
                RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-15 21:20 +0200
                Re: TypeError: ord() expected a character,  but string of length 3 found (Was: Updated python-uncertainties) Chris Lamb <lamby@debian.org> - 2018-10-15 22:10 +0200
                RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-15 21:10 +0200
                Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Andreas Tille <andreas@an3as.eu> - 2018-10-16 09:10 +0200
                Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Dmitry Shachnev <mitya57@debian.org> - 2018-10-17 16:40 +0200
                Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Andreas Tille <tille@debian.org> - 2018-10-17 19:50 +0200

csiph-web