Bug report #15256
Unicode problem with plugin description
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||23192|
I'm getting an error with some plugins (eg NTv2 Datum Transformations) from the nightly build of 30/06/2016, because of the accents that are in metadata.txt files:
https://github.com/NaturalGIS/ntv2_transformations/blob/master/metadata.txt ("Venâncio" / "Krüger")
An error occurred during execution of following code: import pyplugin_installer UnicodeEncodeError: 'ascii' codec can't encode characters in position 10-11: ordinal not in range(128) Python version: 2.7.6 (default, Jun 22 2015, 18:03:54) [GCC 4.8.2] QGIS version: 2.15.0-Master 'Master', 5f66276
An error occurred during execution of following code: pyplugin_installer.initPluginInstaller() Traceback (most recent call last): File "", line 1, in NameError: name 'pyplugin_installer' is not defined Python version: 2.7.6 (default, Jun 22 2015, 18:03:54) [GCC 4.8.2] QGIS version: 2.15.0-Master 'Master', 5f66276
Removing all the accents from metadata.txt, it stop giving problems.
I'm facing with this both on Linux and Windows, and I've just tested a clean Linux LiveUSB, and confirm the problem.
Can this be related to 4b16c64
Fix problems with plugins using unicode characters (fixes #15256)
regression introduced during python3 porting
#5 Updated by Martin Landa over 3 years ago
Giovanni Manghi wrote:
now I see this issue on Windows. On Linux (KDE) no python error, but this plugins do not stick as activated once closed and reopened QGIS.
I can confirm this bug also on Linux (Ubuntu 16.04 + QGIS 2.16). When I remove all accents from metadata.txt file the error disappears.