python-chameleon: FTBFS: KeyError: '__wrapped__'

Bug #1507429 reported by Logan Rosen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-chameleon (Debian)
Fix Released
Unknown
python-chameleon (Ubuntu)
Fix Released
High
Unassigned
Wily
Triaged
High
Unassigned
Xenial
Fix Released
High
Unassigned

Bug Description

Imported from Debian bug http://bugs.debian.org/802130:

Source: python-chameleon
Version: 2.22-1
Severity: serious
Justification: fails to build from source
Tags: sid stretch
User: <email address hidden>
Usertags: ftbfs
X-Debbugs-CC: <email address hidden>

Dear Maintainer,

The package fails to build:

OK
I: pybuild base:170: python3.5 setup.py test
running test
running egg_info
writing top-level names to src/Chameleon.egg-info/top_level.txt
writing dependency_links to src/Chameleon.egg-info/dependency_links.txt
writing src/Chameleon.egg-info/PKG-INFO
reading manifest file 'src/Chameleon.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/Chameleon.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "setup.py", line 82, in <module>
    'benchmark': Benchmark,
  File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/setuptools/command/test.py", line 146, in run
    self.with_project_on_sys_path(self.run_tests)
  File "/usr/lib/python3/dist-packages/setuptools/command/test.py", line 127, in with_project_on_sys_path
    func()
  File "/usr/lib/python3/dist-packages/setuptools/command/test.py", line 167, in run_tests
    testRunner=self._resolve_as_ep(self.test_runner),
  File "/usr/lib/python3.5/unittest/main.py", line 93, in __init__
    self.parseArgs(argv)
  File "/usr/lib/python3.5/unittest/main.py", line 140, in parseArgs
    self.createTests()
  File "/usr/lib/python3.5/unittest/main.py", line 147, in createTests
    self.module)
  File "/usr/lib/python3.5/unittest/loader.py", line 219, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python3.5/unittest/loader.py", line 219, in <listcomp>
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python3.5/unittest/loader.py", line 190, in loadTestsFromName
    return self.loadTestsFromModule(obj)
  File "/usr/lib/python3/dist-packages/setuptools/command/test.py", line 36, in loadTestsFromModule
    tests.append(self.loadTestsFromName(submodule))
  File "/usr/lib/python3.5/unittest/loader.py", line 190, in loadTestsFromName
    return self.loadTestsFromModule(obj)
  File "/usr/lib/python3/dist-packages/setuptools/command/test.py", line 22, in loadTestsFromModule
    tests.append(TestLoader.loadTestsFromModule(self, module))
  File "/usr/lib/python3.5/unittest/loader.py", line 123, in loadTestsFromModule
    tests.append(self.loadTestsFromTestCase(obj))
  File "/usr/lib/python3.5/unittest/loader.py", line 92, in loadTestsFromTestCase
    loaded_suite = self.suiteClass(map(testCaseClass, testCaseNames))
  File "/usr/lib/python3.5/unittest/suite.py", line 24, in __init__
    self.addTests(tests)
  File "/usr/lib/python3.5/unittest/suite.py", line 57, in addTests
    for test in tests:
  File "/python-chameleon-2.22/src/chameleon/tests/test_doctests.py", line 10, in __new__
    return getattr(self, test)()
  File "/python-chameleon-2.22/src/chameleon/tests/test_doctests.py", line 40, in test_compiler
    compiler, optionflags=OPTIONFLAGS)
  File "/usr/lib/python3.5/doctest.py", line 2365, in DocTestSuite
    tests = test_finder.find(module, globs=globs, extraglobs=extraglobs)
  File "/usr/lib/python3.5/doctest.py", line 923, in find
    self._find(tests, obj, name, module, source_lines, globs, {})
  File "/usr/lib/python3.5/doctest.py", line 982, in _find
    if ((inspect.isroutine(inspect.unwrap(val))
  File "/usr/lib/python3.5/inspect.py", line 471, in unwrap
    while _is_wrapper(func):
  File "/usr/lib/python3.5/inspect.py", line 465, in _is_wrapper
    return hasattr(f, '__wrapped__')
  File "/python-chameleon-2.22/src/chameleon/utils.py", line 25, in __getattr__
    return _ast.__dict__.get(name) or getattr(_ast, self.aliases[name])
KeyError: '__wrapped__'
E: pybuild pybuild:262: test: plugin distutils failed with: exit code=1: python3.5 setup.py test
dh_auto_test: pybuild --test -i python{version} -p 3.5 3.4 --dir . returned exit code 13

Full build log:
https://reproducible.debian.net/rb-pkg/unstable/amd64/python-chameleon.html

-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Logan Rosen (logan)
Changed in python-chameleon (Ubuntu):
status: New → Triaged
importance: Undecided → High
description: updated
Changed in python-chameleon (Debian):
importance: Undecided → Unknown
Changed in python-chameleon (Debian):
status: New → Fix Released
Logan Rosen (logan)
Changed in python-chameleon (Ubuntu Xenial):
status: Triaged → Fix Released
Changed in python-chameleon (Ubuntu Wily):
status: New → Triaged
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.