'./setup.py build' results in AttributeError: 'NoneType' object has no attribute 'append'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-distutils-extra (Ubuntu) |
Fix Released
|
Undecided
|
Markus Korn |
Bug Description
Binary package hint: python-
I get this when running the attached setup.py:
% ./setup.py build
running build
running build_py
creating build
creating build/lib.
copying src/fusepy.py -> build/lib.
creating build/lib.
copying src/zeitgeistfs
copying src/zeitgeistfs
copying src/zeitgeistfs
copying src/zeitgeistfs
copying src/zeitgeistfs
copying src/zeitgeistfs
running build_i18n
intltool-update -p -g zeitgeist-
msgfmt po/zeitgeist-
Traceback (most recent call last):
File "./setup.py", line 60, in <module>
"build_i18n" : build_i18n.
File "/usr/lib/
dist.
File "/usr/lib/
self.
File "/usr/lib/
cmd_obj.run()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
cmd_obj.run()
File "/usr/lib/
data_
AttributeError: 'NoneType' object has no attribute 'append'
ProblemType: Bug
Architecture: amd64
Date: Tue Dec 8 10:58:41 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Alpha amd64 (20091009)
NonfreeKernelMo
Package: python-
PackageArchitec
ProcEnviron:
LANG=de_DE.UTF-8
SHELL=/bin/zsh
ProcVersionSign
SourcePackage: python-
Uname: Linux 2.6.31-16-generic x86_64
After looking at the source it looks like it failed because I did not define anything for data_files in setup.py, this is why self.distributi on.data_ files defaults to None.
The fix for this is to use an empty list instead of None in build_i18n.run() in such cases, I'm working on a patch now.