Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #10975 > unrolled thread
| Started by | Andreas Tille <andreas@an3as.eu> |
|---|---|
| First post | 2018-10-12 08:20 +0200 |
| Last post | 2018-10-17 19:50 +0200 |
| Articles | 4 on this page of 24 — 7 participants |
Back to article view | Back to linux.debian.maint.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
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
Page 2 of 2 — ← Prev page 1 [2]
| From | PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> |
|---|---|
| Date | 2018-10-15 21:10 +0200 |
| Subject | RE:TypeError: ord() expected a character, but string of length 3 found (Was: Updated python-uncertainties) |
| Message-ID | <wJgpz-2Nw-3@gated-at.bofh.it> |
| In reply to | #11005 |
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... Fred
[toc] | [prev] | [next] | [standalone]
| From | Andreas Tille <andreas@an3as.eu> |
|---|---|
| Date | 2018-10-16 09:10 +0200 |
| Subject | Re: TypeError: ord() expected a character, but string of length 3 found (Was: Updated python-uncertainties) |
| Message-ID | <wJrEl-1aA-5@gated-at.bofh.it> |
| In reply to | #11007 |
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
[toc] | [prev] | [next] | [standalone]
| From | Dmitry Shachnev <mitya57@debian.org> |
|---|---|
| Date | 2018-10-17 16:40 +0200 |
| Subject | Re: TypeError: ord() expected a character, but string of length 3 found (Was: Updated python-uncertainties) |
| Message-ID | <wJV9n-1UZ-1@gated-at.bofh.it> |
| In reply to | #11014 |
[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
[toc] | [prev] | [next] | [standalone]
| From | Andreas Tille <tille@debian.org> |
|---|---|
| Date | 2018-10-17 19:50 +0200 |
| Subject | Re: TypeError: ord() expected a character, but string of length 3 found (Was: Updated python-uncertainties) |
| Message-ID | <wJY7g-3Ig-17@gated-at.bofh.it> |
| In reply to | #11029 |
Hi Dmitry,
On Wed, Oct 17, 2018 at 05:22:53PM +0300, Dmitry Shachnev wrote:
> > 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.
Ahh, OK, thanks for confirming that I'm not that wrong with the approach
I used in a different package.
> 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
Uploaded now. I hope the Uploaders mentioned in d/control will raise
their opinion about moving the repository to DPMT.
Kind regards
Andreas.
--
http://fam-tille.de
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | linux.debian.maint.python
csiph-web