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

ascii #7

Open
GeoMapLab opened this issue Jan 5, 2019 · 3 comments
Open

ascii #7

GeoMapLab opened this issue Jan 5, 2019 · 3 comments

Comments

@GeoMapLab
Copy link

  1. Trying to install a plugin through the QGIS interface
  2. The plugin is downloaded but an error message appears at the validation stage: "python said: ascii"
    https://1drv.ms/u/s!Alk-hpLFKlPIgecgn1s7sEqgxPj_BA
    Windows 7 32 bit, QGIS 2.18.17
@gacarrillor
Copy link
Owner

Thanks for the report. The error message is a bit unclear, but I'll check that out soon to see if it can be reproduced and fixed. Stay tuned.

@Dosperanso
Copy link

Username - russian symbols.
More info about this issue:

Не удалось загрузить модуль AutoFields из-за ошибки при вызове его метода classFactory()

UnicodeEncodeError: 'ascii' codec can't encode characters in position 9-21: ordinal not in range(128)
Traceback (most recent call last):
File "C:/PROGRA1/QGIS21.18/apps/qgis-ltr/./python\qgis\utils.py", line 333, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:/Users/�������������/.qgis2/python/plugins\AutoFields_init_.py", line 42, in classFactory
return AutoFields( iface )
File "C:/Users/�������������/.qgis2/python/plugins\AutoFields\AutoFields.py", line 45, in init
self.installTranslator()
File "C:/Users/�������������/.qgis2/python/plugins\AutoFields\AutoFields.py", line 194, in installTranslator
userPluginPath = os.path.join( os.path.dirname( str( QgsApplication.qgisUserDbFilePath() ) ), "python/plugins/AutoFields" )
UnicodeEncodeError: 'ascii' codec can't encode characters in position 9-21: ordinal not in range(128)

Версия Python: 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 bit (AMD64)]
Версия: 2.18.27 Las Palmas, 913411074b

@Dosperanso
Copy link

A temporary solution to the problem is:
In file "C:/Users/Username/.qgis2/python/plugins\AutoFields\AutoFields.py" replace this line
"userPluginPath = os.path.join( os.path.dirname( str( QgsApplication.qgisUserDbFilePath() ) ), "python/plugins/AutoFields" )"
with
userPluginPath = "C:/Users/Администратор/.qgis2/python/plugins/AutoFields"
where is "Администратор" - Username

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants