Skip to content
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

python does not work in command prompt #51745

Closed
memoljpn mannequin opened this issue Dec 13, 2009 · 4 comments
Closed

python does not work in command prompt #51745

memoljpn mannequin opened this issue Dec 13, 2009 · 4 comments
Labels
OS-windows type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@memoljpn
Copy link
Mannequin

memoljpn mannequin commented Dec 13, 2009

BPO 7496
Nosy @brettcannon, @benjaminp, @bitdancer

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:

assignee = None
closed_at = <Date 2009-12-13.21:21:46.454>
created_at = <Date 2009-12-13.20:35:46.779>
labels = ['OS-windows', 'type-crash']
title = 'python does not  work in command prompt'
updated_at = <Date 2009-12-13.22:16:24.589>
user = 'https://bugs.python.org/memoljpn'

bugs.python.org fields:

activity = <Date 2009-12-13.22:16:24.589>
actor = 'r.david.murray'
assignee = 'none'
closed = True
closed_date = <Date 2009-12-13.21:21:46.454>
closer = 'brett.cannon'
components = ['Windows']
creation = <Date 2009-12-13.20:35:46.779>
creator = 'memol_jpn'
dependencies = []
files = []
hgrepos = []
issue_num = 7496
keywords = []
message_count = 4.0
messages = ['96351', '96357', '96361', '96362']
nosy_count = 4.0
nosy_names = ['brett.cannon', 'benjamin.peterson', 'r.david.murray', 'memol_jpn']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue7496'
versions = ['Python 3.1']

@memoljpn
Copy link
Mannequin Author

memoljpn mannequin commented Dec 13, 2009

when i type python in my command promp this message is shown :

C:\Documents and Settings\X>python
Fatal Python error: Py_Initialize: can't initialize sys standard streams
LookupError: unknown encoding: cp720

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.

what's the problem ?!

@memoljpn memoljpn mannequin added OS-windows type-crash A hard crash of the interpreter, possibly with a core dump labels Dec 13, 2009
@brettcannon
Copy link
Member

Your OS is using an encoding called cp720 which Python knows nothing
about. That means it can't open stdout, stderr, or stdin properly for
reading/writing according to your set codec. You need to use a codec
recognized by Python or add support for your codec to allow it to run.

@benjaminp
Copy link
Contributor

See bpo-1616979.

@bitdancer
Copy link
Member

As Benjamin points out, this is a duplicate of bpo-1616979, which has
been fixed in both trunk and py3k. For future reference, Mohammad, a
search with the string 'cp720' and 'status' set to 'don't care' would
have brought up that bug report. The tracker's default of searching
only open bugs can be misleading if you don't notice it.

@bitdancer bitdancer removed the invalid label Dec 13, 2009
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

3 participants