[Qgis-user] QGIS 2.5.0-82 Python TypeError: expected String or buffer Raster menu outputs

RNanclares raulnanclares at gmail.com
Fri Sep 26 15:31:42 PDT 2014


Hi everybody, 
i was testing 2.5.0-82 today and i'm getting this error repeatedly every
time i try to save a file using the file selector in several tools (Clipper,
Warp, Translate, Polygonize). It doesn't happen if i type the path+file name
directly in the textbox.

Is anybody else getting these errors?

Cheers

Traceback (most recent call last):
  File
"C:/OSGEO4~1/apps/qgis-dev/./python/plugins\GdalTools\tools\doMerge.py",
line 129, in fillOutputFileEdit
    self.outputFormat = Utils.fillRasterOutputFormat( lastUsedFilter,
outputFile )
  File
"C:/OSGEO4~1/apps/qgis-dev/./python/plugins\GdalTools\tools\GdalTools_utils.py",
line 230, in fillRasterOutputFormat
    filterName = re.sub('^.*\] ', '', FileFilter.getFilterName( aFilter ))
  File
"C:/OSGEO4~1/apps/qgis-dev/./python/plugins\GdalTools\tools\GdalTools_utils.py",
line 479, in getFilterName
    return string.strip(re.sub('\ \(.*$', '', aFilter))
  File "C:\OSGEO4~1\apps\Python27\lib\re.py", line 151, in sub
    return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or buffer


Python version:
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]


QGIS version:
2.5.0-Master Master, a9c4136

Python path: ['C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\processing',
'C:/OSGEO4~1/apps/qgis-dev/./python', u'C:/Users/user_name/.qgis2/python',
u'C:/Users/user_name/.qgis2/python/plugins',
'C:/OSGEO4~1/apps/qgis-dev/./python/plugins',
'C:\\OSGEO4~1\\bin\\python27.zip', 'C:\\OSGEO4~1\\apps\\Python27\\DLLs',
'C:\\OSGEO4~1\\apps\\Python27\\lib',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\plat-win',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\lib-tk', 'C:\\OSGEO4~1\\bin',
'C:\\OSGEO4~1\\apps\\Python27',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\PIL',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\jinja2-2.7.2-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\markupsafe-0.23-py2.7-win-amd64.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\pytz-2012j-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\win32',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\win32\\lib',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\Pythonwin',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\six-1.3.0-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode',
'C:\\Users\\USER\\.qgis2\\python\\plugins\\mmqgis/forms',
'C:\\OSGEO4~1\\apps\\qgis-dev\\python\\plugins\\fTools\\tools']



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/QGIS-2-5-0-82-Python-TypeError-expected-String-or-buffer-Raster-menu-outputs-tp5164471.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.



More information about the Qgis-user mailing list