#35 pyjigdo crash with debian .jigdo files
Closed: Duplicate None Opened 17 years ago by thestigg.

Problem: When trying to download a Debian distro using pyjigdo, the program crashes. Here is the link to where you can download the jigdo files and their templates.

http://cdimage.debian.org/debian-cd/4.0_r3/amd64/jigdo-dvd/

It failed for debian-40r3-amd64-DVD-1 and debian-update-4.0r3-amd64-DVD-1. I did not test the others.

Platform:
Linux 2.6.24.4-64.fc8 #1 SMP Sat Mar 29 09:15:49 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

Version:
pyjigdo-0.3.0-1.fc8

Python version:
Python 2.5.1

Screen output:
[Andrew@Firebird Download]$ pyjigdo debian-40r3-amd64-DVD-1.jigdo
Traceback (most recent call last):
File "/usr/bin/pyjigdo", line 343, in <module>
pyjigdo = PyJigdo()
File "/usr/bin/pyjigdo", line 43, in init
self.run()
File "/usr/bin/pyjigdo", line 339, in run
self.base.run()
File "/usr/lib/python2.5/site-packages/pyjigdo/base.py", line 81, in run
self.cli.run()
File "/usr/lib/python2.5/site-packages/pyjigdo/cli.py", line 37, in run
self.base.load_jigdo(self.cfg.jigdo_url)
File "/usr/lib/python2.5/site-packages/pyjigdo/base.py", line 139, in load_jigdo
self.jigdo_definition = pyjigdo.jigdo.JigdoDefinition(file_name, self.log, self.cfg)
File "/usr/lib/python2.5/site-packages/pyjigdo/jigdo.py", line 40, in init
self.parse()
File "/usr/lib/python2.5/site-packages/pyjigdo/jigdo.py", line 126, in parse
raise MissingSectionHeaderError(fpname, lineno, line)
NameError: global name 'MissingSectionHeaderError' is not defined


Not having MissingSectionHeaderError is a legitimate bug.[[BR]]
[[BR]]
With regards to the jigdo image, it is gzipped... so we will need to handle that.[[BR]]
[[BR]]
The third issue is the template location is not absolute, so the definition assumes you will be pointing at the url for the jigdo so the template location can be derived from the location of the jigdo. jigdo-lite also fails when the file is local with the message: File `debian-40r3-amd64-DVD-1.template' does not exist! We will also need to handle this. I will create three different bugs for this report.

Metadata Update from @jsteffan:
- Issue set to the milestone: Version 0.4

8 years ago

Log in to comment on this ticket.

Metadata