Bug report #4303
Plugin installer: error if high-ASCII in path
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Python plugins | ||
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 #: | 14240 |
Description
If in the path there is some high-ASCII, the installer throws an error, and plugins cannot be installed. Looks an easy fix. Details below.
Thanks.
No se pudo cargar el complemento 'ziplayers' de
['C:/PROGRA~2/QUANTU~1/apps/qgis-dev/./python', 'C:/Users/MarÃ
a/.qgis/python', 'C:/Users/MarÃa/.qgis/python/plugins',
'C:/PROGRA~2/QUANTU~1/apps/qgis-dev/./python/plugins', 'C:\\PROGRA~2
\\QUANTU~1\\bin\\python25.zip', 'C:\\PROGRA~2\\QUANTU~1\\apps\\Python25
\\DLLs', 'C:\\PROGRA~2\\QUANTU~1\\apps\\Python25\\lib', 'C:\\PROGRA~2
\\QUANTU~1\\apps\\Python25\\lib\\plat-win', 'C:\\PROGRA~2\\QUANTU~1\\apps
\\Python25\\lib\\lib-tk', 'C:\\PROGRA~2\\QUANTU~1\\apps\\qgis-dev\\bin', 'C:
\\PROGRA~2\\QUANTU~1\\apps\\Python25', 'C:\\PROGRA~2\\QUANTU~1\\apps\\Python25
\\lib\\site-packages', 'C:\\PROGRA~2\\QUANTU~1\\apps\\Python25\\lib
\\site-packages\\win32', 'C:\\PROGRA~2\\QUANTU~1\\apps\\Python25\\lib
\\site-packages\\win32\\lib', 'C:\\PROGRA~2\\QUANTU~1\\apps\\Python25\\lib
\\site-packages\\Pythonwin', 'C:\\PROGRA~2\\QUANTU~1\\apps\\qgis-dev\\python
\\plugins\\fTools\\tools']Traceback (most recent call last):
File "C:/PROGRA~2/QUANTU~1/apps/qgis-dev/./python\\qgis\\utils.py",
line 117, in loadPlugin
import(packageName)
File "C:/PROGRA~2/QUANTU~1/apps/qgis-dev/./python\\qgis\\utils.py",
line 283, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named ziplayersVersión de Python:
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]Versión de QGIS:
1.8.0-Trunk Trunk, a4c2180Ruta de Python: ['C:/PROGRA~2/QUANTU~1/apps/qgis-dev/./python',
'C:/Users/Mar\\xc3\\xada/.qgis/python', 'C:/Users/Mar\\xc3
\\xada/.qgis/python/plugins',
'C:/PROGRA~2/QUANTU~1/apps/qgis-dev/./python/plugins', 'C:\\\\PROGRA~2\\
\\QUANTU~1\\\\bin\\\\python25.zip', 'C:\\\\PROGRA~2\\\\QUANTU~1\\\\apps\\\\Python25
\\\\DLLs', 'C:\\\\PROGRA~2\\\\QUANTU~1\\\\apps\\\\Python25\\\\lib', 'C:\\\\PROGRA~2\\
\\QUANTU~1\\\\apps\\\\Python25\\\\lib\\\\plat-win', 'C:\\\\PROGRA~2\\\\QUANTU~1\\
\\apps\\\\Python25\\\\lib\\\\lib-tk', 'C:\\\\PROGRA~2\\\\QUANTU~1\\\\apps\\\\qgis-dev
\\\\bin', 'C:\\\\PROGRA~2\\\\QUANTU~1\\\\apps\\\\Python25', 'C:\\\\PROGRA~2\\
\\QUANTU~1\\\\apps\\\\Python25\\\\lib\\\\site-packages', 'C:\\\\PROGRA~2\\
\\QUANTU~1\\\\apps\\\\Python25\\\\lib\\\\site-packages\\\\win32', 'C:\\\\PROGRA~2\\
\\QUANTU~1\\\\apps\\\\Python25\\\\lib\\\\site-packages\\\\win32\\\\lib', 'C:\\
\\PROGRA~2\\\\QUANTU~1\\\\apps\\\\Python25\\\\lib\\\\site-packages\\\\Pythonwin',
'C:\\\\PROGRA~2\\\\QUANTU~1\\\\apps\\\\qgis-dev\\\\python\\\\plugins\\\\fTools\\
\\tools']
Related issues
Associated revisions
History
#1 Updated by Borys Jurgiel about 13 years ago
Does the installer display any "gentle" error message prior to raising the error? It seems the plugin was successfully installed, but then qgis.utils fails to load it. Could you please look to the plugins directory and check if the plugin is there? If it's present, then the problem is in qgis.utils, otherwise in the installer.
#2 Updated by Paolo Cavallini about 13 years ago
- no gentle error message
- the plugin is there, just not loaded
#3 Updated by Borys Jurgiel about 13 years ago
Ok, than it's related to Python plugins paths, not to the installer.
Unfortunately also I have no access to an affected windows version.
#4 Updated by Giovanni Manghi about 13 years ago
Borys Jurgiel wrote:
Ok, than it's related to Python plugins paths, not to the installer.
Unfortunately also I have no access to an affected windows version.
see also #4141
#5 Updated by Giovanni Manghi almost 13 years ago
- Target version set to Version 1.7.4
#6 Updated by Paolo Cavallini over 12 years ago
- Crashes QGIS or corrupts data set to No
- Affected QGIS version set to master
- Target version changed from Version 1.7.4 to Version 1.8.0
#7 Updated by Steve Tracik about 12 years ago
Still doesn't work in the 1.8.0 version (and MASTER version)
#8 Updated by Paolo Cavallini about 12 years ago
- Target version changed from Version 1.8.0 to Version 2.0.0
#9 Updated by Minoru Akagi over 11 years ago
- File homePythonPath.diff added
Found defects:
- ScriptRunner plugin: fails to be loaded.
- OpenLayers plugin: Menu icons and layers are not displayed.
I would like to note that there is another solution using --configpath commandline option.
#10 Updated by Anonymous over 11 years ago
- Status changed from Open to Closed
Fixed in changeset 5edc9df06b39d07f30f117c5f8c66d994ac9e0cb.
#11 Updated by Minoru Akagi over 11 years ago
- File update-homePythonPath.patch added
- Status changed from Closed to Reopened
ah, I missed version update.
#12 Updated by Minoru Akagi over 11 years ago
- Status changed from Reopened to Closed
I should have opened a new ticket (#7537).