[Qgis-user] Error: Failed to open Python Console

Raphaël Lüthi raphael.luthi at epfl.ch
Mon Feb 24 07:06:44 PST 2014


Hi,

I am a new QGIS user. The program was working fine until I tried to use the
Python Console which just does't open. I hope someone can help me out with
this. Here is the description of my problem:

Operating Syste: Windows 7 (64 bit)

QGIS: 2.0.1 - Dufour

Installation: osgeo4w (64bit)

Problem: When I try to open the Python Console ("Plugins" --> "Python
Console") an error message appears. When I close error window, I am back on
QGIS interface.
I have already tried to re-install everything, but it didn't fix the
problem. I also tried going into the file and changing utf8 encoding to
ascii, but the file is protected and I cannot save it once modified.

Error message:

Failed to open Python console:


Traceback (most recent call last):

  File "", line 2, in

  File "C:/OSGEO4~1/apps/qgis/./python\console\console.py", line 43,
in show_console

    _console = PythonConsole( parent )

  File "C:/OSGEO4~1/apps/qgis/./python\console\console.py", line 75, in __init__

    self.console = PythonConsoleWidget(self)

  File "C:/OSGEO4~1/apps/qgis/./python\console\console.py", line 103,
in __init__

    self.shellOut = ShellOutputScintilla(self)

  File "C:/OSGEO4~1/apps/qgis/./python\console\console_output.py",
line 97, in __init__

    self.insertInitText()

  File "C:/OSGEO4~1/apps/qgis/./python\console\console_output.py",
line 139, in insertInitText

    socket.gethostname())

UnicodeDecodeError: 'ascii' codec can't decode byte 0xeb in position
5: ordinal not in range(128)


Python version:

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


QGIS version:

2.0.1-Dufour 'Dufour', d94c044


Python path:

['C:/OSGEO4~1/apps/qgis/./python/plugins\\processing',
'C:/OSGEO4~1/apps/qgis/./python', 'C:\\Users\\raphael_luthi/.qgis2/python',
'C:\\Users\\raphael_luthi/.qgis2/python/plugins',
'C:/OSGEO4~1/apps/qgis/./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\\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\\Shapely-1.2.18-py2.7-win-amd64.egg',
'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:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\xlrd-0.9.2-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\xlwt-0.7.5-py2.7.egg',
'C:\\OSGEO4~1\\apps\\qgis\\python\\plugins\\fTools\\tools']



Thanks to anyone who can help!
Raph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140224/3ef9bb94/attachment.html>


More information about the Qgis-user mailing list