Sunday, 2 April 2017

Failed to open Python console error message


In the past, I was able to open my Python console without any problems on QGIS. However, just recently, I tried to open the Python console on QGIS 2.18.2 (Las Palmas) on my mac, but I get this error message:


Traceback (most recent call last):
File "", line 2, in
File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/console/console.py", line 46, in show_console
_console = PythonConsole(parent)
File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/console/console.py", line 83, in __init__
self.console = PythonConsoleWidget(self)
File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/console/console.py", line 109, in __init__
self.shell = ShellScintilla(self)

File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/console/console_sci.py", line 86, in __init__
self.refreshSettingsShell()
File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/console/console_sci.py", line 141, in refreshSettingsShell
self.setCaretForegroundColor(cursorColor)
TypeError: QsciScintilla.setCaretForegroundColor(QColor): argument 1 has unexpected type 'unicode'

I have no idea what any of this means. I originally downloaded QGIS from kyngchaos.com, and redownloaded from the same source to see if it would work, but it didn't.




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...