Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'sys' has no attribute 'exc_type' #29926

Closed
qgib opened this issue May 21, 2019 · 1 comment
Closed

AttributeError: module 'sys' has no attribute 'exc_type' #29926

qgib opened this issue May 21, 2019 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins

Comments

@qgib
Copy link
Contributor

qgib commented May 21, 2019

Author Name: Gustavo Melquiades (Gustavo Melquiades)
Original Redmine Issue: 22113
Affected QGIS version: 3.6.2
Redmine category:python_plugins


ao seguir o caminho a baixo encontramos o erro também descrito a baixo.

Os testes foram feitos em duas máquinas diferentes, ambas Windows 10 e com dois usuários diferentes (um deles sendo administrador), porém o erro continua.

Teste feito com diferentes versões.

Caminho até o erro.

no qgis clicar em "complemento" no menu
depois clicar em "gerenciar e instalar complemento"
procurar na barra de busca "quick"
Selecionar e instalar "QuickMapServices"
ir em "web" no menu
ir em "settings"
ir em "more services"
clicar em "get contributed pack"


Erro no QGIS-OSGeo4W-3.4.6-2-Setup-x86_64

Um erro ocorreu enquanto executava o código Python:
AttributeError: module 'sys' has no attribute 'exc_type'
Traceback (most recent call last):
File "D:/Usuarios/edson.campos/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\settings_dialog.py", line 127, in get_contrib
ExtraSources().load_contrib_pack()
File "D:/Usuarios/edson.campos/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\extra_sources.py", line 87, in load_contrib_pack
self._download_file(CONTRIBUTE_ZIP_DIRECT_URL, zip_file_path)
File "D:/Usuarios/edson.campos/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\extra_sources.py", line 116, in _download_file
reply = self.__sync_request(url)
File "D:/Usuarios/edson.campos/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\extra_sources.py", line 145, in __sync_request
raise Exception(error)
Exception: 403

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:/Usuarios/edson.campos/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\settings_dialog.py", line 135, in get_contrib
error_message = self.tr('Error on getting contrib pack: %s %s') % (sys.exc_type, sys.exc_value)
AttributeError: module 'sys' has no attribute 'exc_type'

Versão do Python: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
Versão do QGIS: 3.4.6-Madeira Madeira, cc0e375
Caminho do Python:
· C:/PROGRA1/QGIS31.4/apps/qgis-ltr/./python
· D:/Usuarios/edson.campos/AppData/Roaming/QGIS/QGIS3\profiles\default/python
· D:/Usuarios/edson.campos/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
· C:/PROGRA1/QGIS31.4/apps/qgis-ltr/./python/plugins
C:\Program Files\QGIS 3.4\bin\python37.zip


Erro no QGIS-OSGeo4W-2.18.24-1-Setup-x86_64.exe

(imagem em anexo)


Erro no QGIS-OSGeo4W-2.18.3-1-Setup-x86_64

(imagem em anexo)


Erro no QGIS-OSGeo4W-3.2.3-1-Setup-x86_64

Um erro ocorreu enquanto executava o código Python:
AttributeError: module 'sys' has no attribute 'exc_type'

Traceback (most recent call last):
File "D:/Usuarios/gustavo.melquiades/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\settings_dialog.py", line 127, in get_contrib
ExtraSources().load_contrib_pack()
File "D:/Usuarios/gustavo.melquiades/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\extra_sources.py", line 87, in load_contrib_pack
self._download_file(CONTRIBUTE_ZIP_DIRECT_URL, zip_file_path)
File "D:/Usuarios/gustavo.melquiades/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\extra_sources.py", line 116, in _download_file
reply = self.__sync_request(url)
File "D:/Usuarios/gustavo.melquiades/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\extra_sources.py", line 145, in __sync_request
raise Exception(error)
Exception: 403

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:/Usuarios/gustavo.melquiades/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\settings_dialog.py", line 135, in get_contrib
error_message = self.tr('Error on getting contrib pack: %s %s') % (sys.exc_type, sys.exc_value)
AttributeError: module 'sys' has no attribute 'exc_type'

Versão do Python: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]
Versão do QGIS: 3.2.3-Bonn Bonn, 9b17680

Caminho do Python:

C:/PROGRA1/QGIS31.2/apps/qgis/./python
D:/Usuarios/gustavo.melquiades/AppData/Roaming/QGIS/QGIS3\profiles\default/python
D:/Usuarios/gustavo.melquiades/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA1/QGIS31.2/apps/qgis/./python/plugins
C:\Program Files\QGIS 3.2\bin\python36.zip
C:\PROGRA1\QGIS31.2\apps\Python36\DLLs
C:\PROGRA1\QGIS31.2\apps\Python36\lib
C:\Program Files\QGIS 3.2\bin
C:\PROGRA1\QGIS31.2\apps\Python36
C:\PROGRA1\QGIS31.2\apps\Python36\lib\site-packages
C:\PROGRA1\QGIS31.2\apps\Python36\lib\site-packages\win32
C:\PROGRA1\QGIS31.2\apps\Python36\lib\site-packages\win32\lib
C:\PROGRA1\QGIS31.2\apps\Python36\lib\site-packages\Pythonwin
D:/Usuarios/gustavo.melquiades/AppData/Roaming/QGIS/QGIS3\profiles\default/python


@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins labels May 25, 2019
@gioman
Copy link
Contributor

gioman commented May 26, 2019

This is a 3rd party plugin issue and must be reported to the plugin authors.

@gioman gioman closed this as completed May 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins
Projects
None yet
Development

No branches or pull requests

2 participants