[Piuparts-devel] TypeError and AttributeError

Holger Levsen holger at layer-acht.org
Tue Dec 6 08:28:09 UTC 2011


Hi,

I want have time to look into this until Saturday, so if someone could beat me 
to, I'd be glad :-)

1m26.8s DEBUG: Command ok: ['chroot', 
'/org/piuparts.debian.org/tmp/tmppZkwCO', 'dpkg-divert', '--list']
Traceback (most recent call last):
  File "/org/piuparts.debian.org/sbin/piuparts", line 2601, in <module>
    main()
  File "/org/piuparts.debian.org/sbin/piuparts", line 2589, in main
    process_packages(regular_packages_list)
  File "/org/piuparts.debian.org/sbin/piuparts", line 2539, in 
process_packages
    if install_and_upgrade_between_distros(package_files, packages):
  File "/org/piuparts.debian.org/sbin/piuparts", line 2132, in 
install_and_upgrade_between_distros
    result = check_results(chroot, root_info, file_owners)
  File "/org/piuparts.debian.org/sbin/piuparts", line 1848, in check_results
    (removed, added) = 
chroot.get_modified_diversions(chroot.pre_install_diversions)
  File "/org/piuparts.debian.org/sbin/piuparts", line 1053, in 
get_modified_diversions
    removed = [ln for ln in pre_install_diversions if not ln in 
post_install_diversions]
TypeError: 'NoneType' object is not iterable

Seen in lenny2squeeze/fail/maint-guide-es_1.2.25.log which will only become 
public tomorrow.

piuparts-reports also threw an error tonight:

03:22 Writing package templates in sid
Traceback (most recent call last):
  File "/org/piuparts.debian.org/share/piuparts/piuparts-report", line 1131, 
in <module>
    main()
  File "/org/piuparts.debian.org/share/piuparts/piuparts-report", line 1102, 
in main
    section.generate_output(master_directory=master_directory,output_directory=output_directory,section_names=section_names)
  File "/org/piuparts.debian.org/share/piuparts/piuparts-report", line 1076, 
in generate_output
    self.generate_html()
  File "/org/piuparts.debian.org/share/piuparts/piuparts-report", line 1054, 
in generate_html
    self.create_package_summaries(logs_by_dir)
  File "/org/piuparts.debian.org/share/piuparts/piuparts-report", line 844, in 
create_package_summaries
    (sourcerows, binaryrows, source_state, maintainer, uploaders) = 
self.create_source_summary(source, logs_by_dir)
  File "/org/piuparts.debian.org/share/piuparts/piuparts-report", line 796, in 
create_source_summary
    binaryrows += "<tr class=\"normalrow\"><td 
class=\"labelcell\">Binary:</td><td class=\"contentcell2\">%s</td><td 
class=\"%s\">piuparts-result:</td><td class=\"contentcell2\">%s %s</td><td 
class=\"labelcell\">Version:</td><td class=\"contentcell2\">%s</td></tr>" %  
(binary, state_style, 
self.link_to_state_page(self._config.section,binary,state), 
self.links_to_logs(binary, state, logs_by_dir), html_protect(current_version))
  File "/org/piuparts.debian.org/share/piuparts/piuparts-report", line 665, in 
link_to_state_page
    if self.has_package(package_name):
AttributeError: Section instance has no attribute 'has_package'


cheers,
	Holger



More information about the Piuparts-devel mailing list