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


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

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 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 Sat, 13 Oct 2018 11:10:02 +0200
Message-ID <wIo5Q-48l-3@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> <wI53b-1cW-1@gated-at.bofh.it> <wI6si-28W-9@gated-at.bofh.it> <wI7eF-2Ex-1@gated-at.bofh.it> <wI8DL-3kX-9@gated-at.bofh.it> <wI8kp-3eW-1@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Sat Oct 13 09:09:13 2018
Old-Return-Path <frederic-emmanuel.picca@synchrotron-soleil.fr>
X-Amavis-Spam-Status No, score=-0.099 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, WEIRD_PORT=0.001] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -6.1
Dkim-Filter OpenDKIM Filter v2.11.0 poussette.synchrotron-soleil.fr DD7BC600CE
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=synchrotron-soleil.fr; s=email; t=1539420687; bh=aq1E9E0gdVS+VCVNZvks5uMvmsJBbEPajK9Fu3Ye8Jg=; h=From:To:Subject:Date:References:In-Reply-To:From; b=NWf4Om/RhNmER74mq8OE+suXRL4trzhMuAMw3M0uOBivBswVBoE9E+wIp6AQsGJzx aY2rqX7HRnqwZFhtrJwRANDnQSByA6n7JR/pHEd1/klfI3NPU6mF2MwagLySh0AQWV 5eIZ09Sl+x7Dm4WBcWKS9Tm8HrgAcxlsgLcTdFtg=
Dkim-Filter OpenDKIM Filter v2.11.0 poussette.synchrotron-soleil.fr B291F600CB
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=synchrotron-soleil.fr; s=email; t=1539420686; bh=aq1E9E0gdVS+VCVNZvks5uMvmsJBbEPajK9Fu3Ye8Jg=; h=From:To:Subject:Date:References:In-Reply-To:From; b=q+pC+99l5y3DHHbdzxzgvoC7gVLm4P4NBQxX9IdJLi2KeEnEQ3YeyP8GQ1lGb5h1C 43ItWGZhf7lVxUYzw1nI5gI0bVWTQzmighMBgTmGZj49iWIrAX9HruLKVpSWRUY9bA dTKSvKynRIchOdho3ERsnPkgUY8LS+nwOZVSo88s=
Thread-Topic TypeError: ord() expected a character, but string of length 3 found (Was: Updated python-uncertainties)
Thread-Index AQHUYhzoUZVjlclRUkeDAJAcnFW1vKUbWLUAgAAUKACAABohgIAAKFqXgAAIT23///EpAIABNXEm
Accept-Language fr-FR, en-US
Content-Language fr-FR
X-Originating-IP [195.221.0.171]
Content-Type text/plain; charset="us-ascii"
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-Mailing-List <debian-python@lists.debian.org> archive/latest/16431
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/A2A20EC3B8560D408356CAC2FC148E53015B33D3E6@SUN-DAG3.synchrotron-soleil.fr
Approved robomod@news.nic.it
Lines 46
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sat, 13 Oct 2018 08:51:26 +0000
X-Original-Message-ID <A2A20EC3B8560D408356CAC2FC148E53015B33D3E6@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> <A2A20EC3B8560D408356CAC2FC148E53015B33D1D9@SUN-DAG3.synchrotron-soleil.fr>,<20181012161900.q4eama42xml7ppo7@sar0.p1otr.com> <20181012161900.q4eama42xml7ppo7@sar0.p1otr.com>
Xref csiph.com linux.debian.maint.python:10999

Show key headers only | View raw


> try adding python3-setuptools to Build-Depends

ok I removed all the black magic from the debian/rules and added setuptools :)

so now, I have this error when building the documentation

PYTHONPATH=`pybuild --print build_dir --interpreter python3` http_proxy='http://127.0.0.1:9/' sphinx-build -N -bhtml doc debian/html
Running Sphinx v1.7.9

Configuration error:
There is a programable error in your configuration file:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sphinx/config.py", line 161, in __init__
    execfile_(filename, config)
  File "/usr/lib/python3/dist-packages/sphinx/util/pycompat.py", line 150, in execfile_
    exec_(code, _globals)
  File "conf.py", line 19, in <module>
    import uncertainties
  File "/<<PKGBUILDDIR>>/uncertainties/__init__.py", line 224, in <module>
    from .core import *
  File "/<<PKGBUILDDIR>>/uncertainties/core.py", line 946, in <module>
    ord(sup): normal for (normal, sup) in TO_SUPERSCRIPT.iteritems()}
AttributeError: 'dict' object has no attribute 'iteritems'


As we can see sphinx-build even if we gives the PYTHONPATH, load the modules from the source directory

  File "/<<PKGBUILDDIR>>/uncertainties/core.py", line 946, in <module>

and not from

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_uncertainties/build/

which should contain the module updated with 2to3.

what is the proper way to build sphinx doc during a build process ?

Cheers

Frederic

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