Page 1 of 1

Error message: htmllib.HTMLParseError: unexpected call to parse_starttag

Posted: Thu Nov 01, 2018 11:14 am
by francois
I get a lot this error. It looks like an error in the error message display rather than in the process in itself. I suspect I miss some more interesting error messages because of this.
How can I fix this?

Code: Select all

Launch VipGreyStatFromClassif to generate a histo analysis file
Now run the last part of the regular Morphologist pipeline.
SkipSkip  unselected unselected node: Image orientation handlingnode:
progress: Image orientation handling
 0.0 / 100 ...Skip unselected node: T1
 progress:Bias Correction 10.0 / 100 ...
SkipTraceback (most recent call last):
  File "/home/ftadel/IntrAnat/brainvisa-4.6.1-beta-Ubuntu-16.04_x86_64/python/soma/qt_gui/qtThread.py", line 124, in event
 unselected node: Histogram    self.doAction()
  File "/home/ftadel/IntrAnat/brainvisa-4.6.1-beta-Ubuntu-16.04_x86_64/python/soma/qt_gui/qtThread.py", line 240, in doAction
    function(*args)
  File "/home/ftadel/IntrAnat/brainvisa-4.6.1-beta-Ubuntu-16.04_x86_64/python/brainvisa/processing/qt4gui/neuroProcessesGUI.py", line 1332, in setProgress
    self, value, maxval)
 analysis
  File "/home/ftadel/IntrAnat/brainvisa-4.6.1-beta-Ubuntu-16.04_x86_64/python/brainvisa/processes.py", line 4039, in showProgress
    Skip unselected node: Compute Brain Maskself.write('progress:', value, '/', count, '...')

  File "/home/ftadel/IntrAnat/brainvisa-4.6.1-beta-Ubuntu-16.04_x86_64/python/brainvisa/processes.py", line 3648, in write
    Skip unselected self._write(msg)
node:  File "/home/ftadel/IntrAnat/brainvisa-4.6.1-beta-Ubuntu-16.04_x86_64/python/brainvisa/processes.py", line 3674, in _write
    self._writeHTMLParser.feed(html + '<br>\n')
   File "/home/ftadel/IntrAnat/brainvisa-4.6.1-beta-Ubuntu-16.04_x86_64/lib/python2.7/sgmllib.py", line 104, in feed
    self.goahead(0)
Skull-stripped  File "/home/ftadel/IntrAnat/brainvisa-4.6.1-beta-Ubuntu-16.04_x86_64/lib/python2.7/sgmllib.py", line 138, in goahead
     k = self.parse_starttag(i)
brain  File "/home/ftadel/IntrAnat/brainvisa-4.6.1-beta-Ubuntu-16.04_x86_64/lib/python2.7/sgmllib.py", line 274, in parse_starttag
 normalization    self.error('unexpected call to parse_starttag')

  File "/home/ftadel/IntrAnat/brainvisa-4.6.1-beta-Ubuntu-16.04_x86_64/lib/python2.7/htmllib.py", line 45, in error
    raise HTMLParseError(message)
htmllib.HTMLParseError: unexpected call to parse_starttag
Skip unselected node: Split Brain Mask

Re: Error message: htmllib.HTMLParseError: unexpected call to parse_starttag

Posted: Sun Nov 04, 2018 2:28 am
by riviere
Hi,
Strange. I have catched the exception in the code and print the message which causes problem in a modified version of processes.py:
ftp://ftp.cea.fr/pub/dsv/anatomist/upda ... ocesses.py
It should at least continue the execution, and print the message in the terminal like ths:

Code: Select all

** could not write HTML string: **
(message)
-----
Denis