Public bug reported:

Binary package hint: python-htmlgen

Running a script using htmlgen with python2.5 throws the following
exception:

Traceback (most recent call last):
  File 
"/home/lucas/development/lucas-devel/software/main.br/tools/release_remerge_report",
 line 427, in <module>
    full_change_info_list.writeHTML(directory,True)
  File 
"/home/lucas/development/lucas-devel/software/main.br/tools/release_remerge_report",
 line 403, in writeHTML
    doc.write(filename)
  File "/var/lib/python-support/python2.5/HTMLgen/HTMLgen.py", line 188, in 
write
    f.write(str(self))
  File "/var/lib/python-support/python2.5/HTMLgen/HTMLgen.py", line 408, in 
__str__
    s.append(self.footer())
  File "/var/lib/python-support/python2.5/HTMLgen/HTMLgen.py", line 487, in 
footer
    s.append('\nComments to author: ' + str(MailTo(self.email)) )
  File "/var/lib/python-support/python2.5/HTMLgen/HTMLgen.py", line 922, in 
__str__
    return '<A HREF="mailto:%s";>%s</A>' % (self.antispam(self.address), 
self.text)
  File "/var/lib/python-support/python2.5/HTMLgen/HTMLgen.py", line 927, in 
antispam
    from whrandom import choice
ImportError: No module named whrandom

When running this with python2.4 a warning is thrown instead:

/usr/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom module is 
deprecated; please use the random module
  DeprecationWarning)

** Affects: htmlgen (Ubuntu)
     Importance: Undecided
         Status: New

-- 
python-htmlgen uses whrandom, so not compatible with python2.5
https://bugs.launchpad.net/bugs/172800
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to