Error message: htmllib.HTMLParseError: unexpected call to parse_starttag

Questions about BrainVisa usage and installation

Moderators: riviere, denghien

Posts: 61
Joined: Tue Jul 25, 2017 9:37 am

Error message: htmllib.HTMLParseError: unexpected call to parse_starttag

Postby francois » Thu Nov 01, 2018 11:14 am

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/", 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/", line 240, in doAction
  File "/home/ftadel/IntrAnat/brainvisa-4.6.1-beta-Ubuntu-16.04_x86_64/python/brainvisa/processing/qt4gui/", line 1332, in setProgress
    self, value, maxval)
  File "/home/ftadel/IntrAnat/brainvisa-4.6.1-beta-Ubuntu-16.04_x86_64/python/brainvisa/", 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/", 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/", 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/", line 104, in feed
Skull-stripped  File "/home/ftadel/IntrAnat/brainvisa-4.6.1-beta-Ubuntu-16.04_x86_64/lib/python2.7/", 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/", 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/", line 45, in error
    raise HTMLParseError(message)
htmllib.HTMLParseError: unexpected call to parse_starttag
Skip unselected node: Split Brain Mask

User avatar
Site Admin
Posts: 1358
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France

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

Postby riviere » Sun Nov 04, 2018 2:28 am

Strange. I have catched the exception in the code and print the message which causes problem in a modified version of
It should at least continue the execution, and print the message in the terminal like ths:

Code: Select all

** could not write HTML string: **


Return to “BrainVISA”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests