Bug report #13693

Updated by Jürgen Fischer about 7 years ago

Hello,



on 2.12.0-Lyon, trying to load a python script via GUI (Python console -> show editor -> open file), I do not get the file selection window but this error:

<pre>


An error has occured while executing Python code:



TypeError: QFileDialog.getOpenFileNames(QWidget parent=None, QString caption=QString(), QString directory=QString(), QString filter=QString(), QString selectedFilter=None, QFileDialog.Options options=0): argument 3 has unexpected type 'QDir'

Traceback (most recent call last):

File "/usr/share/qgis/python/console/console.py", line 639, in openScriptFile

self, openFileTr, lastDirPath, "Script file (*.py)")

TypeError: QFileDialog.getOpenFileNames(QWidget parent=None, QString caption=QString(), QString directory=QString(), QString filter=QString(), QString selectedFilter=None, QFileDialog.Options options=0): argument 3 has unexpected type 'QDir'



Python version: 2.7.6 (default, Jun 22 2015, 18:01:27) [GCC 4.8.2]

QGIS version: 2.12.0-Lyon Lyon, exported



Python Path:

/usr/share/qgis/python/plugins/processing

/home/alf/.qgis2/python/plugins/postgis_geoprocessing

/usr/share/qgis/python

/home/alf/.qgis2/python

/home/alf/.qgis2/python/plugins

/usr/share/qgis/python/plugins

/usr/local/lib/python2.7/dist-packages/GDAL-1.10.1-py2.7-linux-x86_64.egg

/home/alf/opt/crism

/opt/madagascar-1.2/lib/python2.7/dist-packages

/opt/madagascar-1.2/lib

/home/alf/gitwrk/lib/python/radalf

/home/alf/gitwrk/work/lib/python

/home/alf/gitwrk/crism

/home/alf/gitwrk/sillyolimpics/sillyolympics

/usr/lib/python2.7

/usr/lib/python2.7/plat-x86_64-linux-gnu

/usr/lib/python2.7/lib-tk

/usr/lib/python2.7/lib-old

/usr/lib/python2.7/lib-dynload

/home/alf/.local/lib/python2.7/site-packages

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

/usr/lib/python2.7/dist-packages

/usr/lib/python2.7/dist-packages/Numeric

/usr/lib/python2.7/dist-packages/PILcompat

/usr/lib/python2.7/dist-packages/gst-0.10

/usr/lib/python2.7/dist-packages/gtk-2.0

/usr/lib/pymodules/python2.7

/usr/lib/python2.7/dist-packages/ubuntu-sso-client

/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode

/home/alf/.qgis2//python

/home/alf/.qgis2/python/plugins

/usr/share/qgis/python/plugins/fTools/tools



OTHER INFO

running:


QGIS version
2.12.0-Lyon


QGIS code revision
exported


Compiled against Qt
4.8.6


Running against Qt
4.8.6


Compiled against GDAL/OGR
1.11.2


Running against GDAL/OGR
1.11.2


Compiled against GEOS
3.4.2-CAPI-1.8.2


Running against GEOS
3.4.2-CAPI-1.8.2 r3921


PostgreSQL Client Version
9.3.4


SpatiaLite Version
4.1.1


QWT Version
5.2.3


PROJ.4 Version
480


QScintilla2 Version
2.8.1
</pre>



hope it helps,



best



Alessandro

Back