[Python-modules-team] Bug#614627: python-lzma: FTBFS with Python 2.7: AttributeError: 'module' object has no attribute 'test_liblzma'

Jakub Wilk jwilk at debian.org
Tue Feb 22 19:01:47 UTC 2011


Source: python-lzma
Version: 0.5.3-1
Severity: important
User: debian-python at lists.debian.org
Usertags: python2.7

When rebuilt against python-defaults from experimental, python-lzma 
failed to build form source. Tail of the build log:

| python2.7 setup.py test
| running test
| running egg_info
| writing pyliblzma.egg-info/PKG-INFO
| writing top-level names to pyliblzma.egg-info/top_level.txt
| writing dependency_links to pyliblzma.egg-info/dependency_links.txt
| reading manifest file 'pyliblzma.egg-info/SOURCES.txt'
| reading manifest template 'MANIFEST.in'
| writing manifest file 'pyliblzma.egg-info/SOURCES.txt'
| running build_ext
| copying build/lib.linux-i686-2.7/lzma.so ->
| Traceback (most recent call last):
|   File "setup.py", line 81, in <module>
|     test_suite = 'tests',
|   File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
|     dist.run_commands()
|   File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
|     self.run_command(cmd)
|   File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
|     cmd_obj.run()
|   File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py", line 137, in run
|     self.with_project_on_sys_path(self.run_tests)
|   File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py", line 117, in with_project_on_sys_path
|     func()
|   File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py", line 146, in run_tests
|     testLoader = loader_class()
|   File "/usr/lib/python2.7/unittest/main.py", line 94, in __init__
|     self.parseArgs(argv)
|   File "/usr/lib/python2.7/unittest/main.py", line 149, in parseArgs
|     self.createTests()
|   File "/usr/lib/python2.7/unittest/main.py", line 158, in createTests
|     self.module)
|   File "/usr/lib/python2.7/unittest/loader.py", line 128, in loadTestsFromNames
|     suites = [self.loadTestsFromName(name, module) for name in names]
|   File "/usr/lib/python2.7/unittest/loader.py", line 103, in loadTestsFromName
|     return self.loadTestsFromModule(obj)
|   File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py", line 34, in loadTestsFromModule
|     tests.append(self.loadTestsFromName(submodule))
|   File "/usr/lib/python2.7/unittest/loader.py", line 100, in loadTestsFromName
|     parent, obj = obj, getattr(obj, part)
| AttributeError: 'module' object has no attribute 'test_liblzma'
| make[1]: *** [test2.7] Error 1
| make[1]: Leaving directory `/build/sbuild-python-lzma_0.5.3-1-i386-19HRYM/python-lzma-0.5.3'
| make: *** [build] Error 2
| dpkg-buildpackage: error: debian/rules build gave error exit status 2

-- 
Jakub Wilk





More information about the Python-modules-team mailing list