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

--configpath option breaks plugin installer #15917

Closed
qgib opened this issue Nov 26, 2012 · 3 comments
Closed

--configpath option breaks plugin installer #15917

qgib opened this issue Nov 26, 2012 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Nov 26, 2012

Author Name: Regis Haubourg (@haubourg)
Original Redmine Issue: 6764
Affected QGIS version: master
Redmine category:python_plugins
Assignee: Nathan Woodrow


Subject has been discussed previously here [0]
Tested only on Windows (XP and 7)
When starting QGIS with @--configpath@ option to move profile in a different location than @%USERPROFILE%@, plugins can be installed with installer.
Path handling seems to consider '\' as an escape character, and error log shows a truncated path.

For example, starting with @--configpath "F:\temp\.qgis"@ gives following error on install:

@Impossible de charger l'extension 'HelloWorld' depuis ['C:/OSGEO4W/apps/qgis-dev/./python', 'F: emp\.qgis/python', 'R:\Espace_Correspondants_SIG\Astuces_Outils\QGIS_PLUGINS', 'F: emp\.qgis/python/plugins', 'C:/OSGEO4W/apps/qgis-dev/./python/plugins', 'C:\OSGEO4W\bin\python27.zip', 'C:\OSGEO4W\apps\Python27\DLLs', 'C:\OSGEO4W\apps\Python27\lib', 'C:\OSGEO4W\apps\Python27\lib\plat-win', 'C:\OSGEO4W\apps\Python27\lib\lib-tk', 'C:\OSGEO4W\bin', 'C:\OSGEO4W\apps\Python27', 'C:\OSGEO4W\apps\Python27\lib\site-packages', 'C:\OSGEO4W\apps\Python27\lib\site-packages\PIL', 'C:\OSGEO4W\apps\Python27\lib\site-packages\win32', 'C:\OSGEO4W\apps\Python27\lib\site-packages\win32\lib', 'C:\OSGEO4W\apps\Python27\lib\site-packages\Pythonwin', 'C:\OSGEO4W\apps\Python27\lib\site-packages\wx-2.8-msw-unicode', 'C:\OSGEO4W\apps\qgis-dev\python\plugins\fTools\tools']
@

_

[0] [[http://osgeo-org.1560.n6.nabble.com/commandline-startup-option-changed-in-master-td5018190.html#a5018973]]

@qgib
Copy link
Contributor Author

qgib commented Nov 27, 2012

Author Name: Nathan Woodrow (@NathanW2)


Good old windows and it use of \ for paths. Will fix.


  • assigned_to_id was configured as Nathan Woodrow

@qgib
Copy link
Contributor Author

qgib commented Nov 27, 2012

Author Name: Regis Haubourg (@haubourg)


Ah! so dumb of me, I should have known it.
Well, so the workaround before patch is to use "/" and not "\" in configpath. Tested today and it works.
Thanks Nathan (again)

@qgib
Copy link
Contributor Author

qgib commented Nov 28, 2012

Author Name: Nathan Woodrow (@NathanW2)


Fixed in changeset "e97afe0997e325c96d432a79d55e49de9304e33b".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins labels May 24, 2019
@qgib qgib added this to the Version 2.0.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 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

1 participant