#1 Wed 11 January 2023 20:34
- ToavinaM
- Juste Inscrit !
- Date d'inscription: 11 Jan 2023
- Messages: 4
QGIS: Probl Geocodage du Plugin Qbano
Bonjour,
Je teste depuis quelques jours le plugin Qbano de Qgis pour géocoder un fichier d'adresse. Cependant quand je lance le process, celui-ci s'arrête en cours de route à chaque fois. J'ai fait un test sur 10, 100, 2000 adresses cela fonctionne mais prend du temps quand il y a plus d'adresse. Et lorsque je lance la totalité des adresses (environ 40.000) cela me remonte l'erreur suivante.
Une erreur est survenue lors de l'éxécution du code Python:
AttributeError: module 'PyQt5.QtGui' has no attribute 'QApplication'
Traceback (most recent call last):
File "C:Users/toavina-a/AppData/Roaming/QGIS/QGIS3profilesdefault/python/pluginsQBanoQBano_dialog.py", line 217, in coordonnees
response = urllib.request.urlopen('https://api-adresse.data.gouv.fr/search/?' + url+'&limit=1')
File "C:PROGRA~1QGIS32~1.14appsPython39liburllibrequest.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "C:PROGRA~1QGIS32~1.14appsPython39liburllibrequest.py", line 523, in open
response = meth(req, response)
File "C:PROGRA~1QGIS32~1.14appsPython39liburllibrequest.py", line 632, in http_response
response = self.parent.error(
File "C:PROGRA~1QGIS32~1.14appsPython39liburllibrequest.py", line 561, in error
return self._call_chain(*args)
File "C:PROGRA~1QGIS32~1.14appsPython39liburllibrequest.py", line 494, in _call_chain
result = func(*args)
File "C:PROGRA~1QGIS32~1.14appsPython39liburllibrequest.py", line 641, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 504: Gateway Timeout
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:Users/toavina-a/AppData/Roaming/QGIS/QGIS3profilesdefault/python/pluginsQBanoQBano_dialog.py", line 180, in geocoder
coordonnees = self.coordonnees(adresse_complete, cp,insee, city)
File "C:Users/toavina-a/AppData/Roaming/QGIS/QGIS3profilesdefault/python/pluginsQBanoQBano_dialog.py", line 229, in coordonnees
QMessageBox.critical(self, QtGui.QApplication.translate("QBAN(O)", "QBAN(O)"), QtGui.QApplication.translate("Internetconnexionerror", "Internet connexion error"), QMessageBox.Ok)
AttributeError: module 'PyQt5.QtGui' has no attribute 'QApplication'
Version de Python : 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
Version de QGIS : 3.22.14-Białowieża Białowieża, 4cde646c
Chemin Python :
C:/PROGRA~1/QGIS32~1.14/apps/qgis-ltr/./python
C:/Users/toavina-a/AppData/Roaming/QGIS/QGIS3profilesdefault/python
C:/Users/toavina-a/AppData/Roaming/QGIS/QGIS3profilesdefault/python/plugins
C:/PROGRA~1/QGIS32~1.14/apps/qgis-ltr/./python/plugins
C:Program FilesQGIS 3.22.14binpython39.zip
C:PROGRA~1QGIS32~1.14appsPython39DLLs
C:PROGRA~1QGIS32~1.14appsPython39lib
C:Program FilesQGIS 3.22.14bin
C:PROGRA~1QGIS32~1.14appsPython39
C:PROGRA~1QGIS32~1.14appsPython39libsite-packages
C:PROGRA~1QGIS32~1.14appsPython39libsite-packageswin32
C:PROGRA~1QGIS32~1.14appsPython39libsite-packageswin32lib
C:PROGRA~1QGIS32~1.14appsPython39libsite-packagesPythonwin
C:/Users/toavina-a/AppData/Roaming/QGIS/QGIS3profilesdefault/python
C:Users/toavina-a/AppData/Roaming/QGIS/QGIS3profilesdefault/python/pluginsDataDrivenInputMask
C:Userstoavina-aAppDataRoamingQGISQGIS3profilesdefaultpythonpluginsmmqgis/forms
Merci d'avance pour vos réponses.
Hors ligne
#2 Thu 12 January 2023 08:39
Re: QGIS: Probl Geocodage du Plugin Qbano
Pour le forum QGIS, donc.
Hors ligne