[Qgis-developer] Processing Python Error on Startup

Victor Olaya volayaf at gmail.com
Sun Oct 6 12:07:14 PDT 2013


That is already fixed in master

The problem is related to a  \r character being added at the end of
the path string when retrieving its value from the configuration file,
which causes the mkdir method to fail.

Hope this helps

2013/10/6 bjorn.burr.nyberg at gmail.com <bjorn.burr.nyberg at gmail.com>:
> Hi,
> I have this error that keeps occuring and i've tried fixing it all afternoon
> but with no luck and its slowly driving me crazy. I tried to change the r
> scripts processing location to my r folder but after I changed those
> settings in the processing options I cant load the processing plugin!
> Somehow despite trying to delete every known qgis file and reinstalling
> either with the installer or through osgeo4w it keeps trying to create a
> folder in my R directory giving the error making me believe it somehow is
> remember that location somehow? temp PATH maybe?
>
> Couldn't load plugin processing due an error when calling its classFactory()
> method
> "C:/PROGRA~2/QGISDU~1/apps/qgis/./python/plugins\processing\core\ProcessingUtils.py",
> line 97, in mkdir
>     os.mkdir(newdir)
> WindowsError: [Error 123] The filename, directory name, or volume label
> syntax is incorrect: 'G:\\R-3.0.2\\scripts\r'
>
> I don't even really need R can I somehow prevent processing from even
> loading it?
> Any help would be appreciated,
> Cheers,
> Bjorn
>
> Couldn't load plugin processing due an error when calling its classFactory()
> method
>
> Traceback (most recent call last):
>   File "C:/PROGRA~2/QGISDU~1/apps/qgis/./python\qgis\utils.py", line 204, in
> startPlugin
>     plugins[packageName] = package.classFactory(iface)
>   File
> "C:/PROGRA~2/QGISDU~1/apps/qgis/./python/plugins\processing\__init__.py",
> line 33, in classFactory
>     return ProcessingPlugin(iface)
>   File
> "C:/PROGRA~2/QGISDU~1/apps/qgis/./python/plugins\processing\ProcessingPlugin.py",
> line 53, in __init__
>     Processing.initialize()
>   File
> "C:/PROGRA~2/QGISDU~1/apps/qgis/./python/plugins\processing\core\Processing.py",
> line 140, in initialize
>     Processing.loadFromProviders()
>   File
> "C:/PROGRA~2/QGISDU~1/apps/qgis/./python/plugins\processing\core\Processing.py",
> line 151, in loadFromProviders
>     Processing.loadAlgorithms()
>   File
> "C:/PROGRA~2/QGISDU~1/apps/qgis/./python/plugins\processing\core\Processing.py",
> line 174, in loadAlgorithms
>     Processing.updateProviders()
>   File
> "C:/PROGRA~2/QGISDU~1/apps/qgis/./python/plugins\processing\core\Processing.py",
> line 158, in updateProviders
>     provider.loadAlgorithms()
>   File
> "C:/PROGRA~2/QGISDU~1/apps/qgis/./python/plugins\processing\core\AlgorithmProvider.py",
> line 53, in loadAlgorithms
>     self._loadAlgorithms()
>   File
> "C:/PROGRA~2/QGISDU~1/apps/qgis/./python/plugins\processing\r\RAlgorithmProvider.py",
> line 74, in _loadAlgorithms
>     folder = RUtils.RScriptsFolder()
>   File
> "C:/PROGRA~2/QGISDU~1/apps/qgis/./python/plugins\processing\r\RUtils.py",
> line 55, in RScriptsFolder
>     mkdir(folder)
>   File
> "C:/PROGRA~2/QGISDU~1/apps/qgis/./python/plugins\processing\core\ProcessingUtils.py",
> line 97, in mkdir
>     os.mkdir(newdir)
> WindowsError: [Error 123] The filename, directory name, or volume label
> syntax is incorrect: 'G:\\R-3.0.2\\scripts\r'
>
> Python version:
> 2.7.4 (default, Apr  6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]
>
>
> QGIS version:
> 2.0.1-Dufour Dufour, 34139bc
>
> Python path: ['C:/PROGRA~2/QGISDU~1/apps/qgis/./python/plugins\\processing',
> 'C:/PROGRA~2/QGISDU~1/apps/qgis/./python',
> 'C:\\Users\\install.CIPR064108.000/.qgis2/python',
> 'C:\\Users\\install.CIPR064108.000/.qgis2/python/plugins',
> 'C:/PROGRA~2/QGISDU~1/apps/qgis/./python/plugins',
> 'C:\\PROGRA~2\\QGISDU~1\\bin\\python27.zip',
> 'C:\\PROGRA~2\\QGISDU~1\\apps\\Python27\\DLLs',
> 'C:\\PROGRA~2\\QGISDU~1\\apps\\Python27\\lib',
> 'C:\\PROGRA~2\\QGISDU~1\\apps\\Python27\\lib\\plat-win',
> 'C:\\PROGRA~2\\QGISDU~1\\apps\\Python27\\lib\\lib-tk',
> 'C:\\PROGRA~2\\QGISDU~1\\bin', 'C:\\PROGRA~2\\QGISDU~1\\apps\\Python27',
> 'C:\\PROGRA~2\\QGISDU~1\\apps\\Python27\\lib\\site-packages',
> 'C:\\PROGRA~2\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\PIL',
> 'C:\\PROGRA~2\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\win32',
> 'C:\\PROGRA~2\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\win32\\lib',
> 'C:\\PROGRA~2\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\Pythonwin',
> 'C:\\PROGRA~2\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode',
> 'C:\\PROGRA~2\\QGISDU~1\\apps\\qgis\\python\\plugins\\fTools\\tools']
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Processing-Python-Error-on-Startup-tp5082070.html
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list