[QGIS-it-user] Plugin cxf_in - errore accesso al database di georeferenzazione
Roberta Fagandini
robifagandini a gmail.com
Lun 27 Dic 2021 07:40:34 PST
Ciao Andrea,
si hai ragione, non ho specificato che l'errore è lo stesso che otteneva
anche Ludovico, lo riporto di seguito:
2021-12-27T16:24:59 WARNING Traceback (most recent call last):
File "C:\OSGeo4W\apps\Python39\lib\urllib\request.py", line
1346, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "C:\OSGeo4W\apps\Python39\lib\http\client.py", line
1253, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\OSGeo4W\apps\Python39\lib\http\client.py", line
1299, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\OSGeo4W\apps\Python39\lib\http\client.py", line
1248, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\OSGeo4W\apps\Python39\lib\http\client.py", line
1008, in _send_output
self.send(msg)
File "C:\OSGeo4W\apps\Python39\lib\http\client.py", line 948,
in send
self.connect()
File "C:\OSGeo4W\apps\Python39\lib\http\client.py", line
1422, in connect
self.sock = self._context.wrap_socket(self.sock,
File "C:\OSGeo4W\apps\Python39\lib\ssl.py", line 500, in
wrap_socket
return self.sslsocket_class._create(
File "C:\OSGeo4W\apps\Python39\lib\ssl.py", line 1040, in
_create
self.do_handshake()
File "C:\OSGeo4W\apps\Python39\lib\ssl.py", line 1309, in
do_handshake
self._sslobj.do_handshake()
ssl.SSLError: A failure in the SSL library occurred
(_ssl.c:1129)
During handling of the above exception, another exception
occurred:
Traceback (most recent call last):
File
"C:\Users/Elitebook/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Cxf_in\catdialog.py",
line 329, in connectgeodb
with contextlib.closing(urllib.request.urlopen(req)) as x:
File "C:\OSGeo4W\apps\Python39\lib\urllib\request.py", line
214, in urlopen
return opener.open(url, data, timeout)
File "C:\OSGeo4W\apps\Python39\lib\urllib\request.py", line
517, in open
response = self._open(req, data)
File "C:\OSGeo4W\apps\Python39\lib\urllib\request.py", line
534, in _open
result = self._call_chain(self.handle_open, protocol,
protocol +
File "C:\OSGeo4W\apps\Python39\lib\urllib\request.py", line
494, in _call_chain
result = func(*args)
File "C:\OSGeo4W\apps\Python39\lib\urllib\request.py", line
1389, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "C:\OSGeo4W\apps\Python39\lib\urllib\request.py", line
1349, in do_open
raise URLError(err)
urllib.error.URLError:
During handling of the above exception, another exception
occurred:
Traceback (most recent call last):
File
"C:\Users/.../AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Cxf_in\catdialog.py",
line 334, in connectgeodb
except urllib.URLError as err:
AttributeError: module 'urllib' has no attribute 'URLError'
Modificando il codice del Plugin con except urlib.error.URLError as err, il
print di err mi restituisce questo:
<urlopen error A failure in the SSL library occurred (_ssl.c:1129)>
E si generare quindi un secondo errore python relativo a una variabile che
viene utilizzata nella riga successiva senza essere stata definita prima.
La variabile html a cui fa riferimento l'errore infatti viene definita nel
try ma entrando nell'except non viene appunto definita
2021-12-27T16:31:00 WARNING Traceback (most recent call last):
File
"C:\Users/.../AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Cxf_in\catdialog.py",
line 339, in connectgeodb
user = html.decode("utf-8").split("|")
UnboundLocalError: local variable 'html' referenced before
assignment
Ciao
Roberta
Il giorno lun 27 dic 2021 alle ore 15:47 Andrea Giudiceandrea <
andreaerdna a libero.it> ha scritto:
> Ciao Roberta,
> grazie per l'aggiornamento.
>
> Potresti specificare quale errore, esattamente, riscontri?
>
> A presto.
>
> Andrea
>
>
> Roberta Fagandini
> <https://www.mail-archive.com/search?l=qgis-it-user@lists.osgeo.org&q=from:%22Roberta+Fagandini%22>
> Mon, 27 Dec 2021 04:01:00 -0800
> <https://www.mail-archive.com/search?l=qgis-it-user@lists.osgeo.org&q=date:20211227>
>
> Buongiorno a tutti,
> dopo ulteriori verifiche, ho notato che l'errore di login al DB per la
> georeferenziazione si presenta solo su QGIS (3.16.14 e 3.22.1) installato
> con OSGeo4W v2 ovvero il repository con le "nuove" dipendenze (in
> particolare Python 3.9). Utilizzando invece la stessa versione LTR di QGIS
> (3.16.14) ma installata con la "vecchia" OSGeo4W (Python 3.7) l'errore
> python alla connessione non si verifica.
>
>
> _______________________________________________
> QGIS-it-user mailing list
> QGIS-it-user a lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
--
*Arch. Roberta Fagandini, PhD*
*GIS and Remote Sensing Technician*
*Gter srl (Unige spin-off)*
*Via Jacopo Ruffini 9/1A - 16128 Genova*
*P.IVA/CF 01998770992*
*ph: **010-0899150*
*E-mail: **roberta.fagandini a gter.it* <roberta.fagandini a gter.it>
*skype: roberta.fagandini*
*www.gter.it* <http://www.gter.it/>
*--*
*Gter social*
*www.twitter.com/Gteronline* <http://www.twitter.com/Gteronline>* - *
*www.facebook.com/Gteronline* <http://www.facebook.com/Gteronline>* -*
*www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis
<http://www.linkedin.com/company/gter-srl-innovazione-in-geomatica-gnss-e-gis>*
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.osgeo.org/pipermail/qgis-it-user/attachments/20211227/cc2690e6/attachment-0001.html>
Maggiori informazioni sulla lista
QGIS-it-user