Package: libpython2.7-stdlib
Version: 2.7.14-4
Severity: normal

Dear Maintainer,

Trying to import lib2to3 raises the following exception:

% python2.7 -c 'import lib2to3.refactor'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/lib2to3/refactor.py", line 27, in <module>
    from .fixer_util import find_root
  File "/usr/lib/python2.7/lib2to3/fixer_util.py", line 9, in <module>
    from .pygram import python_symbols as syms
  File "/usr/lib/python2.7/lib2to3/pygram.py", line 32, in <module>
    python_grammar = driver.load_packaged_grammar("lib2to3", _GRAMMAR_FILE)
AttributeError: 'module' object has no attribute 'load_packaged_grammar'


The module object mentioned here is lib2to3.pgen2.driver, which does indeed not 
have a 'load_packaged_grammar'
function. This function appears to be added by the git-updates.diff Debian 
patch, but removed at later point in the
series by lib2to3-no-pickled-grammar.diff.

Regards,

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libpython2.7-stdlib:amd64 depends on:
ii  libbz2-1.0            1.0.6-8.1
ii  libc6                 2.26-6
ii  libdb5.3              5.3.28-13.1+b1
ii  libexpat1             2.2.5-3
ii  libffi6               3.2.1-8
ii  libncursesw5          6.0+20171125-1
ii  libpython2.7-minimal  2.7.14-4
ii  libreadline7          7.0-3
ii  libsqlite3-0          3.22.0-1
ii  libssl1.1             1.1.0g-2
ii  libtinfo5             6.0+20171125-1
ii  mime-support          3.60

libpython2.7-stdlib:amd64 recommends no packages.

libpython2.7-stdlib:amd64 suggests no packages.

-- no debconf information

Reply via email to