-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hostnames with non-ascii characters cause python console to fail. #18156
Comments
Author Name: Giovanni Manghi (@gioman) Chars like "ã" or "ç" in the username are not an issue here on Windows 7 on both qgis 2 and master.
|
Author Name: Matthias Kuhn (@m-kuhn) What is your system's hostname? |
Author Name: Matthias Kuhn (@m-kuhn) Likely related: http://bugs.python.org/issue9377 |
Author Name: Raphael Luthi (Raphael Luthi) I've got the same problem: Operating Syste: Windows 7 (64 bit) QGIS: 2.0.1 - Dufour Installation: osgeo4w (64bit) Error Message:
|
Author Name: Jürgen Fischer (@jef-n) Raphael Luthi wrote:
And your hostname is?
|
Author Name: Salvatore Larosa (@slarosa)
|
Author Name: Raphael Luthi (Raphael Luthi) My host name is "Raphaël-PC". |
Author Name: Raphael Luthi (Raphael Luthi) I changed my host name and now it works fine. Thank you! |
Author Name: Raphael Luthi (Raphael Luthi) The line 139 is "self.selectAllShortcut.activated.connect(self.selectAll)" Should I replace the whole line by unicode "socket.gethostname())"? |
Author Name: Salvatore Larosa (@slarosa) Sorry, I meant to the line 145: https://github.com/qgis/QGIS/blob/master/python/console/console_output.py#L145 |
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Tim Paysen (Tim Paysen) I've had the same problem with the last few releaes of QGIS. It used to mention probles opening 'SIP', but no longer does that...it just can't open python. Here is my current version:
and the error message:
|
Author Name: Nathan Woodrow (@NathanW2) Are you running QGIS 64 and do you have a 32 bit version of Python in Looks like it's picking up a wrong library. |
Author Name: Tim Paysen (Tim Paysen) No--(I WAS running QGIS 64--but now running 32). The results all varied very slightly, depending on what things I did to try to fix the problem. Here is a copy of the messages from today (5/11/2014):
This problem has been going for a few years (!!). Suggestions from 3-4 years ago are a bundle of guesses. I hope the QGIS folks can figure it out. (Python itself is plagued with problems--within its own distribution. The only way to open 'IDLE' is to sign on as 'administrator'--and things that depend on Python don't always put up-to-date .bat calls into their installations (eg-Orange) I'm using Windows 7 x64. |
Author Name: Nathan Woodrow (@NathanW2) See this @'C:\\Python27', 'C:\\Python27\\Lib', 'C:\\Python27\\DLLs', 'C:\\Python27\\Doc', 'C:\\Python27\\include', 'C:\\Python27\\libs', 'C:\\Python27\\Lib\\site-packages\\PyQt4'@ Tells me that it's picking up more then it should, and you are getting lib conflicts. How are you starting QGIS? My path in Python look like this when inside QGIS: @['', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\pip-1.4.1-py2.7.egg', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\setuptools-2.1-py2.7.egg', 'C:\\OSGeo4W\\bin\\python27.zip', 'C:\\OSGeo4W\\apps\\Python27\\DLLs', 'C:\\OSGeo4W\\apps\\Python27\\lib', 'C:\\OSGeo4W\\apps\\Python27\\lib\\plat-win', 'C:\\OSGeo4W\\apps\\Python27\\lib\\lib-tk', 'C:\\OSGeo4W\\bin', 'C:\\OSGeo4W\\apps\\Python27', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\GDAL-1.11.0-py2.7-win32.egg', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\PIL', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\win32', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\Pythonwin', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\Shapely-1.2.18-py2.7-win32.egg', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode']@ |
Author Name: Tim Paysen (Tim Paysen) I'm opening it directly from the QGIS icon. I notice that you are opening through the OSGEO bundle---I just did the same thing, and got the same set of messages with the 'OSGEO' feature added:
You may well be right about conflicts. The default Python indication changes from application to application. I have a stand-alone Python 2.7.6 that I use for programming (note that QGIS thinks that the default is 2.7.4). You can see pathways for 'Orange' in the list. It seems to be looking at my general Python paths, and the self-contained Python paths. I'm not quite sure how to approach this. |
Author Name: Nathan Woodrow (@NathanW2) I'm not sure why your version is picking up the extra stuff. The batch file that QGIS runs sets up it's own environment that it needs, including creating a new PATH variable, at least it should be. I have four version of QGIS installed and two standalone Pythons but they never conflict. Open up a new cmd.exe instance and run this: @set@ It will print all the variables that are defined for your system. Do you see PYTHONPATH defined? If so it should not be. |
Author Name: Tim Paysen (Tim Paysen) Yes and PYTHONPATH is in there. I've seen conflicting opinions on whether or not it should be. Some applications look for it. Painfully, I'm including it here.
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Robert Rous (Robert Rous)
Original Redmine Issue: 9573
Affected QGIS version: master
Redmine category:pyqgis_console
Can't open Python consoler right after a clean install. This could be caused by my username in Windows which contains Czech characters but I tried it under the guest account and had the same error.
The text was updated successfully, but these errors were encountered: