[Gfoss] plugin python per qgis e pyuic4 Errore con Qt 4.6.1, pyQt 4.8.6 on Mac Os X 10.5 32bit

Giuseppe Sucameli sucameli a faunalia.it
Mar 20 Set 2011 22:54:34 CEST


Ciao Luca,

hai invertito input e l'output ;)

Se sei stato fortunato allora dopo aver eseguito
pyuic4 myDialog_ui.py -o myDialog_ui.ui
ti ritrovi il file .ui senza modifiche, altrimenti (e anche probabilmente)
te lo ritroverai vuoto.

Saluti.

2011/9/20 Luca Mandolesi <mandoluca a gmail.com>:
> Ciao a tutti...
> da un minuto all'altro pyuic4 non ne vuole più sapere di aggiornarmi le gui
> da .ui a .py.
> L'errore che ricevo è questo[1]
> Qualcuno sa darmi qualche dritta???
> Ciao e grazie mille!
> Luca
> [1]
> Dynamic:gui pyarchinit$ pyuic4 myDialog_ui.py -o myDialog_ui.ui
> An unexpected error occurred.
> Check that you are using the latest version of PyQt and send an error report
> to
> support a riverbankcomputing.com, including the following information:
>   * your version of PyQt (snapshot-4.8.6-4726879563e5)
>   * the UI file that caused this error
>   * the debug output of pyuic4 (use the -d flag when calling pyuic4)
> host128-242-dynamic:gui pyarchinit$ pyuic4 pyarchinit_Site_ui.py -o
> pyarchinit_Site_ui.ui  -d
> Traceback (most recent call last):
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PyQt4/uic/port_v2/invoke.py",
> line 39, in invoke
>     exit_status = driver.invoke()
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PyQt4/uic/driver.py",
> line 64, in invoke
>     self._generate()
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PyQt4/uic/driver.py",
> line 98, in _generate
>     self._opts.pyqt3_wrapper, self._opts.from_imports)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PyQt4/uic/__init__.py",
> line 170, in compileUi
>     winfo = compiler.UICompiler().compileUi(uifile, pyfile, from_imports)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PyQt4/uic/Compiler/compiler.py",
> line 119, in compileUi
>     w = self.parse(input_stream)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PyQt4/uic/uiparser.py",
> line 919, in parse
>     document = parse(filename)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xml/etree/ElementTree.py",
> line 862, in parse
>     tree.parse(source, parser)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xml/etree/ElementTree.py",
> line 586, in parse
>     parser.feed(data)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xml/etree/ElementTree.py",
> line 1245, in feed
>     self._parser.Parse(data, 0)
> ExpatError: not well-formed (invalid token): line 1, column 1
> host128-242-dynamic:gui pyarchinit$
>
> _______________________________________________
> Iscriviti all'associazione GFOSS.it: http://www.gfoss.it/drupal/iscrizione
> Gfoss a lists.gfoss.it
> http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss
> Questa e' una lista di discussione pubblica aperta a tutti.
> Non inviate messaggi commerciali.
> I messaggi di questa lista non rispecchiano necessariamente
> le posizioni dell'Associazione GFOSS.it.
> 527 iscritti al 7.7.2011
>



-- 
Giuseppe Sucameli


Maggiori informazioni sulla lista Gfoss