Bug report #14682

Updated by Denis Rouzaud about 6 years ago

Hi, I am unable to run Python codes as when I press "Browse" the following appears (see below).

This happens in all QGIS modules. I am pulling my hair out. Other fixes have not worked.



Thanks

Benjamin



An error has occurred while executing Python code:



TypeError: QgsEncodingFileDialog(QWidget parent=None, QString caption=QString(), QString directory=QString(), QString filter=QString(), QString encoding=QString()): argument 3 has unexpected type 'QPyNullVariant'

Traceback (most recent call last):

File "/Applications/QGIS.app/Contents/Resources/python/plugins/fTools/tools/doGeoprocessing.py", line 125, in outFile

(self.shapefileName, self.encoding) = ftools_utils.saveDialog(self)

File "/Applications/QGIS.app/Contents/Resources/python/plugins/fTools/tools/ftools_utils.py", line 327, in saveDialog

fileDialog = QgsEncodingFileDialog(parent, QCoreApplication.translate("fTools", "Save output shapefile"), dirName, filtering, encode)

TypeError: QgsEncodingFileDialog(QWidget parent=None, QString caption=QString(), QString directory=QString(), QString filter=QString(), QString encoding=QString()): argument 3 has unexpected type 'QPyNullVariant'



Python version: 2.7.10 (default, Aug 22 2015, 20:33:39) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.1)]

QGIS version: 2.14.0-Essen Essen, exported



Python Path:

/Users/benjaminwarr/.qgis2/python/plugins/processing

/Users/benjaminwarr/.qgis2/python/plugins/LecoS

/Applications/QGIS.app/Contents/MacOS/../Resources/python

/Users/benjaminwarr/.qgis2/python

/Users/benjaminwarr/.qgis2/python/plugins

/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins

/Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7

/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/site-packages

/Library/Python/2.7/site-packages/numpy-override

/Library/Python/2.7/site-packages/matplotlib-override

/Library/Frameworks/GDAL.framework/Versions/1.11/Python/2.7/site-packages

/Library/Frameworks/cairo.framework/Versions/1/Python/2.7

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages

/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload

/Users/benjaminwarr/Library/Python/2.7/lib/python/site-packages

/usr/local/lib/python2.7/site-packages

/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC

/Library/Python/2.7/site-packages

/Library/Python/2.7/site-packages/PIL

/Users/benjaminwarr/.qgis2//python

/Users/benjaminwarr/.qgis2/python/plugins/mmqgis/forms

.

/Applications/QGIS.app/Contents/Resources/python/plugins/fTools/tools

/Users/benjaminwarr/Google Drive/Aggrigator [NEW]/08 Analysis/01 GIS/06 Inventory/01 Supply/01 by County

Back