Re: Openning Python program

2022-02-08 Thread Cecil Westerhof via Python-list
Chris Angelico  writes:

> On Tue, 8 Feb 2022 at 06:51, Cecil Westerhof via Python-list
>  wrote:
>>
>> Chris Angelico  writes:
>>
>> >> > How difficult would it be to get people to read those lines, though?
>> >>
>> >> That does remind me about a system administrator who wanted to make a
>> >> point. He changed something on the server so all the Windows computers
>> >> started up and gave a message:
>> >> If you want to continue: click Cancel
>> >>
>> >> The help-desk became flooded with calls. I think he did a great job of
>> >> showing a vulnerability. But it was not appreciated and he was fired.
>> >> :'-(
>> >>
>> >
>> > First image in this collection:
>> >
>> > https://thedailywtf.com/articles/How-Do-I-Use-This
>> >
>> > For those who can't click on links, it's a screenshot of a
>> > confirmation dialogue. The user asked to cancel all the current
>> > transfers, and the system wanted to check that the user really wanted
>> > to do that; if you do indeed want to cancel those transfers, click
>> > "Cancel", but if you actually don't want to, click "Cancel" instead.
>>
>> His dialog was crystal clear. The problem was that most users just
>> click OK without reading the message. And that was what his little
>> experiment showed.
>>
>
> Ah. Yes, that... that sounds like a very familiar and serious vulnerability.

I really think that always clicking on OK without ever checking what
is going to happen is a problem. It at least shows that 'user
friendly' software can be counter productive.

>From long ago:
 Are you sure that you want to take this action?

 Yes.


 Are you really sure that you want to take this action?

 Yes.


 Are you really, really sure that you want to take this action.

 Yes. (With a curse under the breath.)

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Openning Python program

2022-02-07 Thread Chris Angelico
On Tue, 8 Feb 2022 at 06:51, Cecil Westerhof via Python-list
 wrote:
>
> Chris Angelico  writes:
>
> >> > How difficult would it be to get people to read those lines, though?
> >>
> >> That does remind me about a system administrator who wanted to make a
> >> point. He changed something on the server so all the Windows computers
> >> started up and gave a message:
> >> If you want to continue: click Cancel
> >>
> >> The help-desk became flooded with calls. I think he did a great job of
> >> showing a vulnerability. But it was not appreciated and he was fired.
> >> :'-(
> >>
> >
> > First image in this collection:
> >
> > https://thedailywtf.com/articles/How-Do-I-Use-This
> >
> > For those who can't click on links, it's a screenshot of a
> > confirmation dialogue. The user asked to cancel all the current
> > transfers, and the system wanted to check that the user really wanted
> > to do that; if you do indeed want to cancel those transfers, click
> > "Cancel", but if you actually don't want to, click "Cancel" instead.
>
> His dialog was crystal clear. The problem was that most users just
> click OK without reading the message. And that was what his little
> experiment showed.
>

Ah. Yes, that... that sounds like a very familiar and serious vulnerability.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Openning Python program

2022-02-07 Thread Cecil Westerhof via Python-list
Chris Angelico  writes:

>> > How difficult would it be to get people to read those lines, though?
>>
>> That does remind me about a system administrator who wanted to make a
>> point. He changed something on the server so all the Windows computers
>> started up and gave a message:
>> If you want to continue: click Cancel
>>
>> The help-desk became flooded with calls. I think he did a great job of
>> showing a vulnerability. But it was not appreciated and he was fired.
>> :'-(
>>
>
> First image in this collection:
>
> https://thedailywtf.com/articles/How-Do-I-Use-This
>
> For those who can't click on links, it's a screenshot of a
> confirmation dialogue. The user asked to cancel all the current
> transfers, and the system wanted to check that the user really wanted
> to do that; if you do indeed want to cancel those transfers, click
> "Cancel", but if you actually don't want to, click "Cancel" instead.

His dialog was crystal clear. The problem was that most users just
click OK without reading the message. And that was what his little
experiment showed.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Openning Python program

2022-02-07 Thread Chris Angelico
On Tue, 8 Feb 2022 at 04:30, Cecil Westerhof via Python-list
 wrote:
>
> Chris Angelico  writes:
>
> > On Tue, 8 Feb 2022 at 02:53, Grant Edwards  
> > wrote:
> >>
> >> On 2022-02-06, Dennis Lee Bieber  wrote:
> >> > On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com"
> >> > declaimed the following:
> >> >
> >> >>   I cannot open python after downloading it keeps going to 
> >> >> modify/uninstall
> >> >>   ?? please help
> >> >
> >> > Stop clicking on the INSTALLER. What you downloaded is just the program
> >> > that installs and configures Python on your system. Stuff it away 
> >> > someplace
> >> > safe should you need to modify the current installation, but otherwise 
> >> > just
> >> > forget that it exists.
> >>
> >> This is _still_ a problem after all these years and countless
> >> identical complaints?
> >>
> >> How difficult would it be to add a few lines of text to the installer
> >> welcome screen explaining that you've just started the Python
> >> INSTALLER, and if you've already done the installation and want to
> >> "run Python" try ?
> >>
> >
> > How difficult would it be to get people to read those lines, though?
>
> That does remind me about a system administrator who wanted to make a
> point. He changed something on the server so all the Windows computers
> started up and gave a message:
> If you want to continue: click Cancel
>
> The help-desk became flooded with calls. I think he did a great job of
> showing a vulnerability. But it was not appreciated and he was fired.
> :'-(
>

First image in this collection:

https://thedailywtf.com/articles/How-Do-I-Use-This

For those who can't click on links, it's a screenshot of a
confirmation dialogue. The user asked to cancel all the current
transfers, and the system wanted to check that the user really wanted
to do that; if you do indeed want to cancel those transfers, click
"Cancel", but if you actually don't want to, click "Cancel" instead.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Openning Python program

2022-02-07 Thread Cecil Westerhof via Python-list
Chris Angelico  writes:

> On Tue, 8 Feb 2022 at 02:53, Grant Edwards  wrote:
>>
>> On 2022-02-06, Dennis Lee Bieber  wrote:
>> > On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com"
>> > declaimed the following:
>> >
>> >>   I cannot open python after downloading it keeps going to 
>> >> modify/uninstall
>> >>   ?? please help
>> >
>> > Stop clicking on the INSTALLER. What you downloaded is just the program
>> > that installs and configures Python on your system. Stuff it away someplace
>> > safe should you need to modify the current installation, but otherwise just
>> > forget that it exists.
>>
>> This is _still_ a problem after all these years and countless
>> identical complaints?
>>
>> How difficult would it be to add a few lines of text to the installer
>> welcome screen explaining that you've just started the Python
>> INSTALLER, and if you've already done the installation and want to
>> "run Python" try ?
>>
>
> How difficult would it be to get people to read those lines, though?

That does remind me about a system administrator who wanted to make a
point. He changed something on the server so all the Windows computers
started up and gave a message:
If you want to continue: click Cancel

The help-desk became flooded with calls. I think he did a great job of
showing a vulnerability. But it was not appreciated and he was fired.
:'-(

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Openning Python program

2022-02-07 Thread Grant Edwards
On 2022-02-07, Barry  wrote:
>> On 7 Feb 2022, at 15:55, Grant Edwards  wrote:
>> On 2022-02-06, Dennis Lee Bieber  wrote:
>>> On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com"
>>>  declaimed the following:
>>> 
  I cannot open python after downloading it keeps going to modify/uninstall
  ?? please help
[...]
>> This is _still_ a problem after all these years and countless
>> identical complaints?
>> 
>> How difficult would it be to add a few lines of text to the installer
>> welcome screen explaining that you've just started the Python
>> INSTALLER, and if you've already done the installation and want to
>> "run Python" try ?
>
> Better yet include the word setup in the installer .exe name.
> Just like almost every other installer does.

That's also been suggested repeatedly over the years also.

--
Grant


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Openning Python program

2022-02-07 Thread Grant Edwards
On 2022-02-07, Chris Angelico  wrote:
> On Tue, 8 Feb 2022 at 02:53, Grant Edwards  wrote:
>>
>>On 2022-02-06, Dennis Lee Bieber  wrote:
>>> On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com"
>>> declaimed the following:
>>>
   I cannot open python after downloading it keeps going to
   modify/uninstall ?? please help
>
>> This is _still_ a problem after all these years and countless
>> identical complaints?
>
>> How difficult would it be to add a few lines of text to the
>> installer welcome screen explaining that you've just started the
>> Python INSTALLER, and if you've already done the installation and
>> want to "run Python" try ?
>
> How difficult would it be to get people to read those lines, though?

There is that...

It's been ages since I installed Python on Windows, so maybe that info
has already been added and I've put my foot in it?

--
Grant


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Openning Python program

2022-02-07 Thread Barry


> On 7 Feb 2022, at 15:55, Grant Edwards  wrote:
> 
> On 2022-02-06, Dennis Lee Bieber  wrote:
>> On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com"
>>  declaimed the following:
>> 
>>>  I cannot open python after downloading it keeps going to modify/uninstall
>>>  ?? please help
>> 
>> Stop clicking on the INSTALLER. What you downloaded is just the program
>> that installs and configures Python on your system. Stuff it away someplace
>> safe should you need to modify the current installation, but otherwise just
>> forget that it exists.
> 
> This is _still_ a problem after all these years and countless
> identical complaints?
> 
> How difficult would it be to add a few lines of text to the installer
> welcome screen explaining that you've just started the Python
> INSTALLER, and if you've already done the installation and want to
> "run Python" try ?

Better yet include the word setup in the installer .exe name.
Just like almost every other installer does.

Barry

> 
> --
> Grant
> 
> 
> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Openning Python program

2022-02-07 Thread Chris Angelico
On Tue, 8 Feb 2022 at 02:53, Grant Edwards  wrote:
>
> On 2022-02-06, Dennis Lee Bieber  wrote:
> > On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com"
> > declaimed the following:
> >
> >>   I cannot open python after downloading it keeps going to modify/uninstall
> >>   ?? please help
> >
> > Stop clicking on the INSTALLER. What you downloaded is just the program
> > that installs and configures Python on your system. Stuff it away someplace
> > safe should you need to modify the current installation, but otherwise just
> > forget that it exists.
>
> This is _still_ a problem after all these years and countless
> identical complaints?
>
> How difficult would it be to add a few lines of text to the installer
> welcome screen explaining that you've just started the Python
> INSTALLER, and if you've already done the installation and want to
> "run Python" try ?
>

How difficult would it be to get people to read those lines, though?

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Openning Python program

2022-02-07 Thread Grant Edwards
On 2022-02-06, Dennis Lee Bieber  wrote:
> On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com"
> declaimed the following:
>
>>   I cannot open python after downloading it keeps going to modify/uninstall
>>   ?? please help
>
> Stop clicking on the INSTALLER. What you downloaded is just the program
> that installs and configures Python on your system. Stuff it away someplace
> safe should you need to modify the current installation, but otherwise just
> forget that it exists.

This is _still_ a problem after all these years and countless
identical complaints?

How difficult would it be to add a few lines of text to the installer
welcome screen explaining that you've just started the Python
INSTALLER, and if you've already done the installation and want to
"run Python" try ?

--
Grant


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Openning Python program

2022-02-06 Thread Eryk Sun
On 2/6/22, Dennis Lee Bieber  wrote:
>
> NOTE: there may be a "launcher" installed that is supposed to find Python
> without requiring one to edit the system PATH environment variable -- but I
> tend to avoid it: M$ and some other applications seem to keep hijacking
> which Python gets priority, and it often invokes anything but the version I
> want. [If on installs Visual Studio and doesn't read carefully, it will
> install its version of Python and the R statistics system] (Though it
> appears that today is a good day...)

No other applications have anything to do with how the py launcher
works. It depends on the Python installations that are registered in
the "Software\Python\PythonCore" registry key in HKCU and HKLM. If the
launcher is installed, the command template of the "Python.File"
ProgID is configured to use the launcher, e.g. `C:\Windows\py.exe "%L"
%*`. Whether or not other applications take control of the ".py" file
association, and whether the user allows this to happen, is a separate
issue.

Unless the launcher is configured otherwise, or the version to use is
set by a shebang line in the script, the launcher defaults to running
the highest version number of Python that's installed. If there are
multiple installations for the same version, it prefers the system's
native architecture (e.g. x64 in 64-bit Windows). You can list the
available versions and paths via `py -0p`.

The launcher allows setting the default version to use, and also
separate defaults for 2.x and 3.x (i.e. for the `-2` and `-3`
command-line options). This is simplest to set via the PY_PYTHON,
PY_PYTHON2, and PY_PYTHON3 environment variables, but it can also be
configured in "%LocalAppData%\py.ini".

 > NOTE: I have Windows configured to accept .py as an executable file, with
> the Python interpreter as the "runner", which is how the lines without
> "python" function -- but if you explicitly invoke python with a file name
> you must provide the full name.
>
> C:\Users\Wulfraed>assoc .py
> .py=Python.File
>
> C:\Users\Wulfraed>ftype python.file
> python.file="C:\Python38\python.exe" "%1" %*

The CMD shell's ASSOC and FTYPE commands are out of date and should
not be relied on. The returned or set values from those commands are
often irrelevant to what the shell API actually does.

ASSOC and FTYPE operate on only the "HKLM\Software\Classes" setting
(i.e. file associations set for the machine), which was sufficient
when these commands were added in Windows NT 4.0 (1996). But since
Windows 2000, HKCR is a merged view that prefers values set in
"HKCU\Software\Classes" (i.e. file associations set for the current
user; e.g. Python is installed for the current user).

Also, Explorer caches file associations per the user's last "open
with" choice in
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts".
When the shell API computes the file association for a file, this user
choice overrides the HKCR settings. Moreover, the user choice for each
association in the shell's "FileExts" key can be locked down in its
"UserChoice" subkey (i.e. the user opted to always open with the app).
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Openning Python program

2022-02-06 Thread Dennis Lee Bieber
On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com"
 declaimed the following:

>   I cannot open python after downloading it keeps going to modify/uninstall
>   ?? please help
>

Stop clicking on the INSTALLER. What you downloaded is just the program
that installs and configures Python on your system. Stuff it away someplace
safe should you need to modify the current installation, but otherwise just
forget that it exists.

Python is a command line interpreter -- not an IDE. Open a command
shell and see if it finds Python:

Microsoft Windows [Version 10.0.19041.1415]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Wulfraed>python
Python ActivePython 3.8.2 (ActiveState Software Inc.) based on
 on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

NOTE: there may be a "launcher" installed that is supposed to find Python
without requiring one to edit the system PATH environment variable -- but I
tend to avoid it: M$ and some other applications seem to keep hijacking
which Python gets priority, and it often invokes anything but the version I
want. [If on installs Visual Studio and doesn't read carefully, it will
install its version of Python and the R statistics system] (Though it
appears that today is a good day...)

C:\Users\Wulfraed>py
Python ActivePython 3.8.2 (ActiveState Software Inc.) based on
 on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

Pick your preferred programming text editor, write some script, and run
it from the command line

C:\Users\Wulfraed>type junk.py

print("Let me out of here!")

C:\Users\Wulfraed>python junk.py
Let me out of here!

C:\Users\Wulfraed>junk.py
Let me out of here!

C:\Users\Wulfraed>junk
Let me out of here!

C:\Users\Wulfraed>python junk
python: can't open file 'junk': [Errno 2] No such file or directory

C:\Users\Wulfraed>

NOTE: I have Windows configured to accept .py as an executable file, with
the Python interpreter as the "runner", which is how the lines without
"python" function -- but if you explicitly invoke python with a file name
you must provide the full name.

C:\Users\Wulfraed>assoc .py
.py=Python.File

C:\Users\Wulfraed>ftype python.file
python.file="C:\Python38\python.exe" "%1" %*


-- 
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Openning Python program

2022-02-06 Thread MRAB

On 2022-02-06 08:14, createkmontalb...@gmail.com wrote:

I cannot open python after downloading it keeps going to modify/uninstall
?? please help


It sounds like you're just re-running the installer.

The installer should've installed IDLE. Try that for editing programs.
--
https://mail.python.org/mailman/listinfo/python-list


Openning Python program

2022-02-06 Thread createkmontalb...@gmail.com
   I cannot open python after downloading it keeps going to modify/uninstall
   ?? please help

    

   Sent from [1]Mail for Windows

    

   --

 This email has been checked for viruses by Avast antivirus
   [2]Avast logo software.
 [3]www.avast.com

References

   Visible links
   1. https://go.microsoft.com/fwlink/?LinkId=550986
   2. 
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
   3. 
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
-- 
https://mail.python.org/mailman/listinfo/python-list