[Qgis-user] Re: WPS plugin
ivan marchesini
ivan.marchesini at gmail.com
Mon Dec 28 05:39:44 PST 2009
but now I have another problem..
when I call a process (the example buffer rpocess provided by pyWPS but
also other processes from 52north) I obtain this:
___________________________________________
Traceback (most recent call last):
File "/home/ivan/.qgis//python/plugins/wps/qgswps.py", line 302, in
startProcess
f = urllib.urlopen( str(protocol)+"://"+str(server)+""+str(path),
data)
File "/usr/lib/python2.5/urllib.py", line 84, in urlopen
return opener.open(url, data)
File "/usr/lib/python2.5/urllib.py", line 192, in open
return getattr(self, name)(url, data)
File "/usr/lib/python2.5/urllib.py", line 327, in open_http
h.send(data)
File "/usr/lib/python2.5/httplib.py", line 711, in send
self.sock.sendall(str)
File "", line 1, in sendall
UnicodeEncodeError: 'ascii' codec can't encode character u'\xd1' in
position 21814: ordinal not in range(128)
____________________________________________
each time the error seems related to a different unicode character (xbe,
ecc...) and contemporary the shell from which I have started qgis fill
itself with:
_______________________
[...]
^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f^^^f\x10\x10\x10\x12\x12\x12\x12\x13]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^f]]^
[...]
____________
the problem seems to be at this line:
____________________________
f = urllib.urlopen( str(protocol)+"://"+str(server)+""+str(path), data)
____________________________
any idea or help? :-)
thanks...
ivan
Il giorno lun, 28/12/2009 alle 12.36 +0100, ivan marchesini ha scritto:
> HI Horst,
> I have compiled the svn source code of 26 december and later I have
> tried to load your wps plugin (many thanks for this really useful
> project)...
>
> the problem is that after the installation when I try to start the
> plugin I obtain this:
>
> ________________________________
>
> Traceback (most recent call last):
> File "/home/ivan/.qgis//python/plugins/wps/qgswps.py", line 74, in run
> flags = Qt.WindowTitleHint | Qt.WindowSystemMenuHint |
> Qt.WindowCloseButtonHint | Qt.WindowMinimizeButtonHint |
> Qt.WindowMaximizeButtonHint # QgisGui.ModalDialogFlags
> AttributeError: WindowCloseButtonHint
>
> Versione Python:
> 2.5.4 (r254:67916, Sep 26 2009, 08:18:06)
> [GCC 4.3.4]
>
> Percorso Python: ['/usr/local/share/qgis/python',
> '/home/ivan/.qgis//python', '/home/ivan/.qgis//python/plugins',
> '/usr/local/share/qgis/python/plugins',
> '/usr/lib/python2.5/site-packages/OWSLib-0.3.1-py2.5.egg',
> '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2',
> '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload',
> '/usr/local/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages/PIL',
> '/usr/lib/python2.5/site-packages/gst-0.10',
> '/usr/lib/pymodules/python2.5', '/usr/lib/pymodules/python2.5/gtk-2.0',
> '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-ansi',
> '/usr/local/share/qgis/python/plugins/fTools/tools', '~/.qgis/python',
> '/home/ivan/.qgis/python/plugins/GdalTools/tools',
> '/usr/share/qgis/python', '/usr/share/qgis/python/',
> '/usr/share/qgis/python/', '.', '.']
>
> ________________________________________
>
>
> It seems I have solved changing Qt.WindowCloseButtonHint with
> Qt.WindowCancelButtonHint
>
> could be?? :-)
>
> I have no experience with Qt python programming...
>
> many thanks...
>
> Ivan
>
>
>
>
>
--
Ti prego di cercare di non inviarmi files .dwg, .doc, .xls, .ppt.
Preferisco formati liberi.
Please try to avoid to send me .dwg, .doc, .xls, .ppt files.
I prefer free formats.
http://it.wikipedia.org/wiki/Formato_aperto
http://en.wikipedia.org/wiki/Open_format
Ivan Marchesini
Perugia (Italy)
Socio fondatore GFOSS "Geospatial Free and Open Source Software" http://www.gfoss.it
e-mail: marchesini at unipg.it
ivan.marchesini at gmail.com
fax (home): +39(0)5782830887
jabber: geoivan73 at jabber.org
skype: geoivan73
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Questa รจ una parte del messaggio firmata digitalmente
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20091228/1042f7ca/attachment.sig>
More information about the Qgis-user
mailing list