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


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

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

Path csiph.com!4.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!news.unit0.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod
From Andreas Tille <andreas@an3as.eu>
Newsgroups linux.debian.maint.python
Subject Re: TypeError: ord() expected a character, but string of length 3 found (Was: Updated python-uncertainties)
Date Tue, 16 Oct 2018 09:10:01 +0200
Message-ID <wJrEl-1aA-5@gated-at.bofh.it> (permalink)
References <wI477-F5-3@gated-at.bofh.it> <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>
X-Original-To PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
X-Mailbox-Line From debian-python-request@lists.debian.org Tue Oct 16 07:09:03 2018
Old-Return-Path <andreas@an3as.eu>
X-Amavis-Spam-Status No, score=-6.98 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, LDO_WHITELIST=-5, MD5_SHA1_SUM=-1, MURPHY_DRUGS_REL8=0.02, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate:hard: -6.1
MIME-Version 1.0
Content-Type text/plain; charset=iso-8859-1
Content-Disposition inline
Content-Transfer-Encoding 8bit
User-Agent NeoMutt/20170113 (1.7.2)
X-Mailing-List <debian-python@lists.debian.org> archive/latest/16447
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20181016070843.tqaywov6rvsgtehl@an3as.eu
Approved robomod@news.nic.it
Lines 50
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc "debian-python@lists.debian.org" <debian-python@lists.debian.org>
X-Original-Date Tue, 16 Oct 2018 09:08:43 +0200
X-Original-Message-ID <20181016070843.tqaywov6rvsgtehl@an3as.eu>
X-Original-References <1539343938.2065153.1539680744.792D0909@webmail.messagingengine.com> <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>
Xref csiph.com linux.debian.maint.python:11014

Show key headers only | View raw


Hi Fred,

On Mon, Oct 15, 2018 at 06:51:09PM +0000, PICCA Frederic-Emmanuel wrote:
> Hello Andreas,
> 
> > Patches are welcome (I have no idea what the construct is doing neither
> > how to replace it with something valid).
> 
> > Patch welcome as well - preferably as commit to Git.
> 
> done but now, we need to understand why lintian complain about python module at the wrong place before uploading.
> I amnot sure thet the test run as installed...

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

W: python3-uncertainties: python-module-in-wrong-location usr/lib/python3.7/dist-packages/uncertainties/ usr/lib/python3/dist-packages/uncertainties/
N: 
N:    The package installs a Python module or debug information for a Python
N:    module in the wrong location for the given version of Python.
N:    
N:    dh_python3 can be used to fix this for Python 3 modules.
N:    
N:    Refer to Debian Python Policy section 2.5 (Module Path) and
N:    https://bugs.debian.org/576012 for details.
N:    
N:    Severity: normal, Certainty: possible
N:    
N:    Check: files, Type: binary, udeb


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?

Kind regards

       Andreas.

PS: I'd also love to see those useless "fork me on github" privacy
    breaches go away.  It seems these are not part of the uncertainties
    source but injected by sphinx somehow.


[1] https://salsa.debian.org/science-team/lmfit-py/commit/36f5f0456365f59a488a479233aebbf45dd48b05

-- 
http://fam-tille.de

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