Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #11228
| From | Piotr Ożarowski <piotr@debian.org> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Re: dh_python2 namespace issue? |
| Date | 2019-01-09 14:50 +0100 |
| Message-ID | <xemp3-2OB-5@gated-at.bofh.it> (permalink) |
| References | <xejKx-19v-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> 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