Bug report #13980
Unable to open files from Python console editor
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | PyQGIS Console | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | worksforme |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 21994 |
Description
When I click on the Open File button in the editor dialog in the Python console, QGIS fails to open the file browser and gives the following error:
@> 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.9 (default, Mar 1 2015, 13:01:26) [GCC 4.9.2]
QGIS version: 2.12.1-Lyon Lyon, exportedPython Path:
/usr/share/qgis/python/plugins/processing
/usr/share/qgis/python
/home/jesse/.qgis2/python
/home/jesse/.qgis2/python/plugins
/usr/share/qgis/python/plugins
/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
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/PILcompat
/usr/lib/python2.7/dist-packages/gtk-2.0
/usr/lib/pymodules/python2.7
/home/jesse/.qgis2//python
/usr/share/qgis/python/plugins/fTools/tools
/home/jesse/gis/MappingWarAtHome@
This is happening on a fresh, default install of Debian 8 Jessie, using the build from:
deb http://qgis.org/debian jessie main
deb-src http://qgis.org/debian jessie main
History
#1 Updated by Alexander Bruy almost 9 years ago
- Resolution set to worksforme
- Status changed from Open to Closed
Works fine in master. Reopen if necessary