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
Crash upon start up #56349
Comments
Upon execution of python.exe a command line box appears for a fraction of a second, closes and is followed by nothing. On executing IDLE from the start menu, nothing happens. I have installed python to C:\Python27 using the python windows installer. |
Can you try to open a Windows terminal (start->run->cmd or win+r on the keyboard), cd to Python27, execute python.exe and see if it gives any error message there? |
The error message is: |
The 'site' module should be in Python27\Lib\site.py. |
The site module is in the right place Microsoft Windows [Version 6.1.7601] C:\Users\PWTD>c:\Python27\python.exe -v C:\Users\PWTD>c:\Python27\python.exe |
Reinstalling makes no difference- have tried multiple times |
What happens if you try "python -S" (capital S)? In principle this should bypass the need to load site.py. Even if that works we still have a problem to solve, but at least it might narrow things down. |
Gave it a go: the prompt appears, but none of the functions work thereafter C:\Users\PWTD>c:\Python27\python -S
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on
win32
>>> print "hello" LookupError: no codec search functions registered: can't find encoding
|
From a Windows command prompt:
|
C:\Users\PWTD>set PY C:\Users\PWTD>chcp C:\Users\PWTD> |
hmm, I don't like this PYTHONHOME. Can you reset its value and run python again in the same terminal? C:\Users\PWTD>set PYTHONHOME= |
Ok, python now works in command prompt, but IDLE still wont run. |
Yes, this is probably a system-wide setting. PYTHONHOME should not be set, especially if it points to another python installation. Is "alien swarm" a game? Why did it modify the system this way? Does the game still work when you remove the environment variable? |
Awesome. It's fixed- do you still want to know whether or not the game works. |
It's definitely a bad thing to set PYTHONHOME at the system level, when there are several pythons installed. Please report this to the game's developers. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: