Python error

Asked by kinu

Hi,

Archlinux. Wiithon compiled and installed (ok) from source.

When I try to run:

/usr/share/wiithon/wiithon.py

I get:

Entity: line 29: parser error : Opening and ending tag mismatch: module line 18 and pr
</pr></rojo><br />
     ^
Entity: line 29: parser error : Opening and ending tag mismatch: pr line 17 and rojo
</pr></rojo><br />
            ^
Entity: line 33: parser error : Opening and ending tag mismatch: rojo line 17 and margin12
            </margin12>
                       ^
Entity: line 34: parser error : Opening and ending tag mismatch: margin12 line 13 and xhtml
        </xhtml>
                ^
Entity: line 35: parser error : Premature end of data in tag xhtml line 2

        ^
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/share/wiithon/gui.py", line 397, in excepthook
    self.alert('error' , mensaje_xml, excvalue, xml=True)
  File "/usr/share/wiithon/gui.py", line 900, in alert
    view.render_xml(xml_plantilla)
  File "/usr/share/wiithon/textview_custom.py", line 95, in render_xml
    doc = libxml2.parseDoc(xml)
  File "/usr/lib/python2.6/site-packages/libxml2.py", line 1263, in parseDoc
    if ret is None:raise parserError('xmlParseDoc() failed')
libxml2.parserError: xmlParseDoc() failed

Original exception was:
Traceback (most recent call last):
  File "/usr/share/wiithon/wiithon.py", line 91, in <module>
    App()
  File "/usr/share/wiithon/wiithon.py", line 75, in App
    interfaz = WiithonGUI(core)
  File "/usr/share/wiithon/gui.py", line 275, in __init__
    self.refrescarParticionesWBFS()
  File "/usr/share/wiithon/gui.py", line 344, in refrescarParticionesWBFS
    if util.check_gids():
  File "/usr/share/wiithon/util.py", line 494, in check_gids
    return (int(group[2]) in os.getgroups())
UnboundLocalError: local variable 'group' referenced before assignment

Thank you in advance

Question information

Language:
English Edit question
Status:
Solved
For:
wiithon Edit question
Assignee:
No assignee Edit question
Solved by:
Carlo Mandelli
Solved:
Last query:
Last reply:
Revision history for this message
Carlo Mandelli (camandel) said :
#1

What version are you using?
Please, try to install last stable or devel releases.

If you want install wiithon without deb package you must also check that dependencies are installed:

python-sqlalchemy (>= 0.4), imagemagick, gnome-icon-theme, libgtk2.0-0 (>= 2.16), python-gtk2 (>= 2.16), python-glade2 (>= 2.16), python-libxml2, unzip

Revision history for this message
kinu (mvmiguel) said :
#2

Hi Carlo,

I'm using brach 1.1 downloaded using bazaar (2 days ago).

python-sqlalchemy 0.5.5-1
imagemagick 6.5.7.10-1
gnome-icon-theme 2.28.0-1
gtk2 2.18.3-2 -> libgtk2
gtk2+extra 2.1.1-1
pygtk 2.16.0-2 -> python-glade2 + python-gtk2
python-lxml 2.2.4-1 -> Python binding for the libxml2 and libxslt libraries

Any clue? Maybe I have to use trunk branch?

Revision history for this message
kinu (mvmiguel) said :
#3

Hi again,

Trying to get working ver 1.21 rev 431, I get

Traceback (most recent call last):
  File "/usr/share/wiithon/wiithon.py", line 109, in <module>
    App()
  File "/usr/share/wiithon/wiithon.py", line 93, in App
    interfaz = WiithonGUI(core, loading)
  File "/usr/share/wiithon/gui.py", line 317, in __init__
    self.refrescarParticionesWBFS()
  File "/usr/share/wiithon/gui.py", line 435, in refrescarParticionesWBFS
    if util.check_gids():
  File "/usr/share/wiithon/util.py", line 557, in check_gids
    return (int(group[2]) in os.getgroups())
UnboundLocalError: local variable 'group' referenced before assignment

And ver 1.0 is working OK.

Once again, thank you in advance.

Revision history for this message
Carlo Mandelli (camandel) said :
#4

Could you add informations about ACL on your WBFS device?

$ ls -l /dev/sdc
brw-rw---- 1 root disk 8, 0 2009-11-25 08:26 /dev/sdc

Thanks

Revision history for this message
Best Carlo Mandelli (camandel) said :
#5

/etc/group file in ArchLinux doesn't use ":x:" field for shadow (as ubuntu and debian do).
This evening I will fix it in check_gids() function.

Revision history for this message
kinu (mvmiguel) said :
#6

Hi Carlo,

I this is what you are asking for:

$ ls -l /dev/sdc
brw-rw---- 1 root disk 8, 32 nov 25 16:31 /dev/sdc

And about the solution, you are going to fix it on trunk branch, aren you?

Revision history for this message
kinu (mvmiguel) said :
#7

Hi again

You're lighting fast!!!!

Ver 1.1 working now OOTB !!!

Once again, thank you very much!!!

Muchísimas gracias!!!!

kInU

Revision history for this message
kinu (mvmiguel) said :
#8

Thanks Carlo Mandelli, that solved my question.