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


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

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

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Dmitry Shachnev <mitya57@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: TypeError: ord() expected a character, but string of length 3 found (Was: Updated python-uncertainties)
Date Wed, 17 Oct 2018 16:40:01 +0200
Message-ID <wJV9n-1UZ-1@gated-at.bofh.it> (permalink)
References <wI53b-1cW-1@gated-at.bofh.it> <wI6si-28W-9@gated-at.bofh.it> <wI7eF-2Ex-1@gated-at.bofh.it> <wI7HH-2NC-7@gated-at.bofh.it> <wI8kp-3eW-1@gated-at.bofh.it> <wJ7vX-5Ep-5@gated-at.bofh.it> <wJ7Pk-5L3-3@gated-at.bofh.it> <wJ94K-6Gy-9@gated-at.bofh.it> <wJgpz-2Nw-3@gated-at.bofh.it> <wJrEl-1aA-5@gated-at.bofh.it>
X-Original-To Andreas Tille <andreas@an3as.eu>
X-Mailbox-Line From debian-python-request@lists.debian.org Wed Oct 17 14:28:17 2018
Old-Return-Path <mitya57@gmail.com>
X-Amavis-Spam-Status No, score=-11.25 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001] autolearn=ham autolearn_force=no
X-Policyd-Weight DYN_NJABL=ERR(0) NOT_IN_SBL_XBL_SPAMHAUS=-1.5 BL_NJABL=ERR(-1.5) CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-lj1-f193.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=O735xG7SeLDJJZctnKP2QpJHfr/TOIQyJpBb6R/q+B4=; b=T2yHi2fMmGGXuguqMIsz5Vnm0PQhj9GvCkvAjqCbrqfU1OcdDAK4AMzN53uQJrofPF 7w+0t5y6tmmEUbQTspCX6cBc4HI82/S1miwjwx9IN3xWGG7iKmUaSz41Jj+A/AVJVigw I7vtoKJMdm2FnX4jTZifQLZSrUf1b30Lu8lHHy1mDoYcn6O48BfVz9Hvq36eS0O3fYQZ ti/jqqG/ctinEEqOyYg8uLsKXARJGaxUBJwEggxjGUcwUTmKWobkAYnAzSJ8xk+t9dFE jIhVx5HcI1BYzFoUoJBGJAH0ZR1Ll7hRdS8dHE9YDWC/6ZG0AtWE4rtcCClKtPIb/PjH Dg8A==
X-Gm-Message-State ABuFfoh4uOHsfUhFAhuyJmKPoZCXCXlQCM61VXlrDDAJ/T7rtLjfJbtU W6zPdd/VnCS8wvQN1ghN4m5bEJYp
X-Google-SMTP-Source ACcGV61Edxm6+EMkIWMlhO7b6N753ycyR07UbA/WzzjPzY6xKLfsj0sVbPpkyuWAwxlHf0i9qAwPJg==
X-Received by 2002:a2e:360c:: with SMTP id d12-v6mr15821800lja.92.1539786177414; Wed, 17 Oct 2018 07:22:57 -0700 (PDT)
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pf9I7BMVVzbSWLtt"
Content-Disposition inline
User-Agent Mutt/1.10.1 (2018-07-13)
X-Mailing-List <debian-python@lists.debian.org> archive/latest/16461
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20181017142253.GA4421@mitya57.me
Approved robomod@news.nic.it
Lines 51
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>, debian-python@lists.debian.org
X-Original-Date Wed, 17 Oct 2018 17:22:53 +0300
X-Original-Message-ID <20181017142253.GA4421@mitya57.me>
X-Original-References <20181012124426.37nixbp2qupadu4o@an3as.eu> <20181012141757.lpt5lmh4dhuzdsb3@an3as.eu> <A2A20EC3B8560D408356CAC2FC148E53015B33D0B3@SUN-DAG3.synchrotron-soleil.fr> <A2A20EC3B8560D408356CAC2FC148E53015B33D1D9@SUN-DAG3.synchrotron-soleil.fr> <20181012161900.q4eama42xml7ppo7@sar0.p1otr.com> <20181015093737.wfrvaixo2bdmwvav@an3as.eu> <A2A20EC3B8560D408356CAC2FC148E53015B33D9E2@SUN-DAG3.synchrotron-soleil.fr> <20181015111318.3fiskt3vduf2hcqo@an3as.eu> <A2A20EC3B8560D408356CAC2FC148E53015B33DC3B@SUN-DAG3.synchrotron-soleil.fr> <20181016070843.tqaywov6rvsgtehl@an3as.eu>
Xref csiph.com linux.debian.maint.python:11029

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Andreas,

On Tue, Oct 16, 2018 at 09:08:43AM +0200, Andreas Tille wrote:
> I can reproduce the wrongly placed / duplicated modules.  Its the same
> observation I made with lmfit-py[1].  While lintian recommends the usage
> of dh_python3
>
> I need to admit I have not found out how to use it properly and thus I
> simply removed the module in question manually[1].  I admit I'd prefer a
> better solution as well and since it seems to happen systematically I
> wonder whether dh-python might have some flaw?

dh_python does not (re)move files if they are different, this needs to be
handled manually.

In your case 2to3 produces different output in 3.6 and 3.7. The resulting
code is still identical, so you can safely remove the differing files.

I used this override in a similar case:

https://salsa.debian.org/python-team/modules/pygithub/blob/master/debian/rules#L10

--
Dmitry Shachnev

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