Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #11228
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Piotr Ożarowski <piotr@debian.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: dh_python2 namespace issue? |
| Date | Wed, 09 Jan 2019 14:50:01 +0100 |
| Message-ID | <xemp3-2OB-5@gated-at.bofh.it> (permalink) |
| References | <xejKx-19v-1@gated-at.bofh.it> |
| X-Original-To | debian-python@lists.debian.org |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Wed Jan 9 13:43:45 2019 |
| Old-Return-Path | <piotr@ozarowski.pl> |
| X-Amavis-Spam-Status | No, score=-6.999 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -4.6 |
| Mail-Followup-To | debian-python@lists.debian.org |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | NeoMutt/20180223 |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/16679 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/20190109134329.x7mzn32yh7eoaa35@sar0.p1otr.com |
| Approved | robomod@news.nic.it |
| Lines | 37 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Wed, 9 Jan 2019 14:43:29 +0100 |
| X-Original-Message-ID | <20190109134329.x7mzn32yh7eoaa35@sar0.p1otr.com> |
| X-Original-References | <A2A20EC3B8560D408356CAC2FC148E53015B379E5C@SUN-DAG3.synchrotron-soleil.fr> |
| Xref | csiph.com linux.debian.maint.python:11228 |
Show key headers only | View raw
> so we tried in a clean chroot, a simple > > import backports.functools_lru_cache > > which end-up with > > ~# python -c "import backports.functools_lru_cache; print backports.functools_lru_cache" > Traceback (most recent call last): > File "<string>", line 1, in <module> > ImportError: No module named backports.functools_lru_cache > > If we add an __init__.py file under > > (unstable-amd64-sbuild)root@diffabs6:/usr/lib/python2.7/dist-packages/backports# touch __init__.py I cannot reproduce it: | (unstable-amd64-sbuild)root@piotro:/home/piotr# apt install python-backports.functools-lru-cache | Reading package lists... Done | Building dependency tree | Reading state information... Done | The following additional packages will be installed: | libexpat1 libpython-stdlib libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib libssl1.1 mime-support python python-minimal python2 python2-minimal python2.7 python2.7-minimal | Suggested packages: | python-doc python-tk python2-doc python2.7-doc binfmt-support | The following NEW packages will be installed: | libexpat1 libpython-stdlib libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib libssl1.1 mime-support python python-backports.functools-lru-cache python-minimal python2 python2-minimal python2.7 python2.7-minimal | 0 upgraded, 14 newly installed, 0 to remove and 0 not upgraded. [...] | (unstable-amd64-sbuild)root@piotro:/home/piotr# python -c "import backports.functools_lru_cache; print backports.functools_lru_cache" | <module 'backports.functools_lru_cache' from '/usr/lib/python2.7/dist-packages/backports/functools_lru_cache.pyc'> anyway, command that should create this __init__.py is: `pycompile -p python-backports.functools-lru-cache` and python-backports.functools-lru-cache's postinst invokes it correctly. -- GPG: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread
dh_python2 namespace issue ? PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2019-01-09 12:00 +0100 Re: dh_python2 namespace issue? Piotr Ożarowski <piotr@debian.org> - 2019-01-09 14:50 +0100
csiph-web