Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75749 > unrolled thread

Python 3.4.1 install does not create a file association for .py files on Windows

Started byEdward Diener <eldiener@tropicsoft.invalid>
First post2014-08-05 15:36 -0400
Last post2014-08-05 18:24 -0400
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Python 3.4.1 install does not create a file association for .py files on Windows Edward Diener <eldiener@tropicsoft.invalid> - 2014-08-05 15:36 -0400
    Re: Python 3.4.1 install does not create a file association for .py files on Windows Terry Reedy <tjreedy@udel.edu> - 2014-08-05 18:16 -0400
      Re: Python 3.4.1 install does not create a file association for .py files on Windows Edward Diener <eldiener@tropicsoft.invalid> - 2014-08-05 18:24 -0400

#75749 — Python 3.4.1 install does not create a file association for .py files on Windows

FromEdward Diener <eldiener@tropicsoft.invalid>
Date2014-08-05 15:36 -0400
SubjectPython 3.4.1 install does not create a file association for .py files on Windows
Message-ID<lrrbns$2sk$1@dont-email.me>
I install Python 3.4.1 64-bit on Windows. After the install I type:

assoc .py

and I get back:

File association not found for extension .py

Why does not the Python install to associate extension .py with the 
Python Launcher for Windows ?

[toc] | [next] | [standalone]


#75762

FromTerry Reedy <tjreedy@udel.edu>
Date2014-08-05 18:16 -0400
Message-ID<mailman.12679.1407277003.18130.python-list@python.org>
In reply to#75749
On 8/5/2014 3:36 PM, Edward Diener wrote:
> I install Python 3.4.1 64-bit on Windows. After the install I type:

I have done the same, on Win 7, but I had previous installs going back 3 
years on this machine.

> assoc .py
>
> and I get back:
>
> File association not found for extension .py

I get
C:\Users\Terry>assoc .py
.py=Python.File

C:\Users\Terry>assoc .pyw
.pyw=Python.NoConFile

C:\Users\Terry>assoc .pyo
.pyo=Python.CompiledFile

C:\Users\Terry>assoc .pyc
.pyc=Python.CompiledFile

None of this specifies the program, which is currently Python Launcher 
for Windows (console).  (See Control Panel / Default Programs / Set 
Associations.)

> Why does not the Python install to associate extension .py with the
> Python Launcher for Windows ?

Somewhere during the install, there is a checkbox or something about 
grabbing file associations or about making the install the default 
version. I do not remember.

-- 
Terry Jan Reedy

[toc] | [prev] | [next] | [standalone]


#75764

FromEdward Diener <eldiener@tropicsoft.invalid>
Date2014-08-05 18:24 -0400
Message-ID<lrrli7$8a6$1@dont-email.me>
In reply to#75762
On 8/5/2014 6:16 PM, Terry Reedy wrote:
> On 8/5/2014 3:36 PM, Edward Diener wrote:
>> I install Python 3.4.1 64-bit on Windows. After the install I type:
>
> I have done the same, on Win 7, but I had previous installs going back 3
> years on this machine.
>
>> assoc .py
>>
>> and I get back:
>>
>> File association not found for extension .py
>
> I get
> C:\Users\Terry>assoc .py
> .py=Python.File
>
> C:\Users\Terry>assoc .pyw
> .pyw=Python.NoConFile
>
> C:\Users\Terry>assoc .pyo
> .pyo=Python.CompiledFile
>
> C:\Users\Terry>assoc .pyc
> .pyc=Python.CompiledFile
>
> None of this specifies the program, which is currently Python Launcher
> for Windows (console).  (See Control Panel / Default Programs / Set
> Associations.)
>
>> Why does not the Python install to associate extension .py with the
>> Python Launcher for Windows ?
>
> Somewhere during the install, there is a checkbox or something about
> grabbing file associations or about making the install the default
> version. I do not remember.
>

I uninstalled all my Python versions and then re-installed each one. Now 
the correct file association has been made. Something was fouled up in 
the installation process which is now fixed.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web