Bug 31688 - can't use apt module
Summary: can't use apt module
Status: CLOSED WONTFIX
Alias: None
Product: Sisyphus
Classification: Development
Component: python-module-apt (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Nobody's working on this, feel free to take it
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-07 22:12 MSK by Sergey Alembekov
Modified: 2016-11-30 18:32 MSK (History)
24 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Alembekov 2016-01-07 22:12:58 MSK
$ python                               
Python 2.7.8 (default, Nov 20 2014, 14:29:22) 
[GCC 4.9.2 20141101 (ALT Linux 4.9.2-alt1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import apt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/apt.py", line 158, in <module>
    class pkgCacheHeader(_object):
  File "/usr/lib64/python2.7/site-packages/apt.py", line 180, in pkgCacheHeader
    __swig_setmethods__["OptionsHash"] = _apt.pkgCacheHeader_OptionsHash_set
AttributeError: 'module' object has no attribute 'pkgCacheHeader_OptionsHash_set'
Comment 1 Sergey Novikov 2016-10-25 16:16:11 MSK
Подтверждаю, до сих пор не работает:
$ python
Python 2.7.11 (default, Apr 15 2016, 13:09:43) 
[GCC 5.3.1 20151207 (ALT Linux 5.3.1-alt3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import apt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/apt.py", line 158, in <module>
    class pkgCacheHeader(_object):
  File "/usr/lib64/python2.7/site-packages/apt.py", line 180, in pkgCacheHeader
    __swig_setmethods__["OptionsHash"] = _apt.pkgCacheHeader_OptionsHash_set
AttributeError: 'module' object has no attribute 'pkgCacheHeader_OptionsHash_set'
Comment 2 Andrey Cherepanov 2016-11-30 18:32:09 MSK
Пакет неработоспособен и поэтому будет удалён из репозитория.