← Back to team overview

linaro-pkg team mailing list archive

Bug#682631: Bug#682634: Bug#682631: linaro-image-tools: FTBFS: AttributeError: 'tuple' object has no attribute 'major'

 

Hi Gregor

(Adding python-distutils-extra@xxxxxxxxxxxxxxxxxxx to recipients)

On Fri, Aug 10, 2012 at 03:35:31PM +0200, gregor herrmann wrote:
> But:
> 
> The error
> 
> | WARNING: the following files are not recognized by DistUtilsExtra.auto:
> | Traceback (most recent call last):
> |   File "setup.py", line 86, in <module>
> |     cmdclass={'install': InstallAndUpdateDataDirectory}
> |   File "/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py", line 107, in setup
> |     if(sys.version_info.major < 3):
> | AttributeError: 'tuple' object has no attribute 'major'
> | dh_auto_clean: python2.6 setup.py clean -a returned exit code 1
> | make: *** [clean] Error 1
> 
> in sid or in wheezy:
> 
> |   File "setup.py", line 86, in <module>
> |     cmdclass={'install': InstallAndUpdateDataDirectory}
> |   File "/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py", line 98, in setup
> |     __requires(attrs, src_all)
> |   File "/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py", line 458, in __requires
> |     __add_imports(imports, s, attrs)
> |   File "/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py", line 383, in __add_imports
> |     if(sys.version_info.major < 3):
> | AttributeError: 'tuple' object has no attribute 'major'
> | dh_auto_build: python2.6 setup.py build --force returned exit code 1
> | make: *** [build] Error 1
> 
> 
> doesn't happen in these packages themselves but:
> 
> # ls -l /usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py
> lrwxrwxrwx 1 root root 49 Aug  3 11:57 /usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py -> ../../../../share/pyshared/DistUtilsExtra/auto.py
> # readlink -f /usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py
> /usr/share/pyshared/DistUtilsExtra/auto.py
> # dpkg -S /usr/share/pyshared/DistUtilsExtra/auto.py
> python-distutils-extra: /usr/share/pyshared/DistUtilsExtra/auto.py
> 
> 
> Should the bugs be reassigned? Someone with python knowledge needed
> here :)

Yes, this is true, this does not happen in the respective packages,
see my initial comment for #682634[1], but I was not fully clear there
:). In the commit referenced there, it was introduced the test for
sys.version_info.major < 3.

 [1]: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=682634#10
 [2]: http://bazaar.launchpad.net/~python-distutils-extra-hackers/python-distutils-extra/debian/revision/295

What I do not yet understand, is why it still uses python2.6 for both
packages: at least nautilus-image-manipulator depends on python, which
now defaults to 2.7, so some other dependencies brings in python2.6?

[I did a rebuild of all packages which build-depends on
python-distutils-extra, and these two seem the only two FTBFS with the
above.]

But again, I only did a first look so my initial disclaimer still
holds :)

Thanks for looking too at it Gregor.

Regards,
Salvatore

Attachment: signature.asc
Description: Digital signature


Follow ups

References