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 3.2 installer doesn't register file extensions on Windows 7 #55312

Closed
darren mannequin opened this issue Feb 2, 2011 · 9 comments
Closed

Python 3.2 installer doesn't register file extensions on Windows 7 #55312

darren mannequin opened this issue Feb 2, 2011 · 9 comments
Labels

Comments

@darren
Copy link
Mannequin

darren mannequin commented Feb 2, 2011

BPO 11103
Nosy @loewis, @terryjreedy, @serwy, @briancurtin

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 2012-09-25.05:34:52.748>
created_at = <Date 2011-02-02.21:39:26.001>
labels = ['expert-IDLE', 'type-bug', 'expert-installation', 'OS-windows']
title = "Python 3.2 installer doesn't register file extensions on Windows 7"
updated_at = <Date 2012-09-25.05:34:52.746>
user = 'https://bugs.python.org/darren'

bugs.python.org fields:

activity = <Date 2012-09-25.05:34:52.746>
actor = 'roger.serwy'
assignee = 'none'
closed = True
closed_date = <Date 2012-09-25.05:34:52.748>
closer = 'roger.serwy'
components = ['IDLE', 'Installation', 'Windows']
creation = <Date 2011-02-02.21:39:26.001>
creator = 'darren'
dependencies = []
files = []
hgrepos = []
issue_num = 11103
keywords = []
message_count = 9.0
messages = ['127767', '127769', '127772', '127774', '127968', '127980', '128160', '128161', '171219']
nosy_count = 5.0
nosy_names = ['loewis', 'terry.reedy', 'roger.serwy', 'brian.curtin', 'darren']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue11103'
versions = ['Python 3.2']

@darren
Copy link
Mannequin Author

darren mannequin commented Feb 2, 2011

The python installer should register the proper file type extensions. Files with .py extensions should have an "open" action associated with the python interpreter and there should also be an "Edit with IDLE" action associated with .py files as well. I was able to configure both of these things manually on Windows XP but can not figure out how setup the "Edit with IDLE" action on Windows 7.

FWIW: I can run this command from a dos box and get the desired effect.
"C:\Python32\pythonw.exe" "C:\Python32\Lib\idlelib\idle.pyw" -n -e "Test.py"
and I expect the command to be registered with the .py file extension would be
"C:\Python32\pythonw.exe" "C:\Python32\Lib\idlelib\idle.pyw" -n -e "%1"

pythondb

The installer should just do this so python files have reasonable actions associated with them as soon as the install is complete.

@darren darren mannequin added topic-installation topic-IDLE type-bug An unexpected behavior, bug, or error labels Feb 2, 2011
@briancurtin
Copy link
Member

Works for me. Just ran the 3.2 RC2 installer and did the following:

(type is like a Windows equivalent of cat on *nix)

type test.py
import sys
print(sys.version_info)

test.py
sys.version_info(major=3, minor=2, micro=0, releaselevel='candidate', serial=2)

Additionally, "Edit with IDLE" shows up when right clicking on the file.

Did you get any errors when running the installer? What permissions does your account have?

@darren
Copy link
Mannequin Author

darren mannequin commented Feb 2, 2011

Perhaps it was just fixed in RC2? I did my install last week with RC1. My account has admin privileges and UAC is disabled on my machine. There were no errors when I ran the installer. Tomorrow I will try uninstalling RC1 and reinstalling RC2 to see if that makes a difference.

I definitely have no Edit with Idle option when I right click files.

@briancurtin
Copy link
Member

I don't think any changes were made around that feature, and it has always worked for the last few installations I've done. Please do follow up with your RC2 experience when you have a chance.

@terryjreedy
Copy link
Member

On my winxp system, 'open' opens with notepad, perhaps because I set that several years ago. I would like the installer to change that (and not change other stuff that it does change ;-).

The 'open with' submenu does include idle.

@loewis
Copy link
Mannequin

loewis mannequin commented Feb 5, 2011

Terry, if you are installing Python "for all users", but have the Open rebound just for yourself, it is unreasonable to expect that the Python installation procedure changes it. Per-user settings override machine settings; this is by Microsoft design.

Darren: did you install "for all users" or "just for me"?

@darren
Copy link
Mannequin Author

darren mannequin commented Feb 7, 2011

I originally installed rc1 for all users. Then today I uninstalled and re-installed rc2 for just me and that didn't help anything.

@darren
Copy link
Mannequin Author

darren mannequin commented Feb 7, 2011

FWIW I'm using the 64 bit installer on Windows 7

@serwy
Copy link
Mannequin

serwy mannequin commented Sep 25, 2012

The latest 3.2.3 release for Win7-64 registers the .py extensions properly, with "Open" and "Edit with IDLE". I'm closing this issue as out of date.

@serwy serwy mannequin closed this as completed Sep 25, 2012
@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
Projects
None yet
Development

No branches or pull requests

2 participants