No program named Python

Joel Sherrill joel at rtems.org
Mon Nov 25 21:02:56 UTC 2019


Centos 7:

$ type python
python is /usr/bin/python
$ python --version
Python 2.7.5
$ type python2
python2 is /usr/bin/python2
$ type python3
bash: type: python3: not found

On Tue, Oct 2, 2018 at 8:41 AM Christian Mauderer <
christian.mauderer at embedded-brains.de> wrote:

> Am 02.10.18 um 13:20 schrieb Joel Sherrill:
> >
> >
> > On Mon, Oct 1, 2018, 11:52 PM Chris Johns <chrisj at rtems.org
> > <mailto:chrisj at rtems.org>> wrote:
> >
> >     On 02/10/2018 09:08, Joel Sherrill wrote:
> >     >
> >     > It could be a system administration issue I don't know how to
> >     resolve yet but
> >     > during recent Kick Starts, both Ubuntu abd msys2 have ended up
> >     with no program
> >     > named python. There can be a python2.x or python3.x. On Ubuntu, I
> >     hacked and
> >     > symlinked python2.x to python. This didn't work on msys2.
> >     >
> >     > Given I have seen this issue on two different platforms, I wanted
> >     to report this
> >     > and see if anyone had any insight.
> >     >
> >
> >     On Ubuntu I have:
> >
> >      $ file /usr/bin/python
> >      /usr/bin/python: symbolic link to python2.7
> >      $ apt-file search /usr/bin/python | grep "/usr/bin/python$"
> >      python-minimal: /usr/bin/python
> >
> >     This looks like a packaging issue on Ubuntu.
> >
> >
> > Grr..I added a second link by hand.
> >
> >
> >     On MSYS2 I do not know.
> >
> >
> > I tried a fresh MSYS2 yesterday.
> >
> > We need to watch out for this and see if there is a trend.
> >
> >
> >
> >     Chris
> >
> >
>
> Hello Joel and Chris,
>
> the official end of live date for Python 2 is 01.01.2020 (see
> https://www.python.org/dev/peps/pep-0373/#maintenance-releases). So I
> would say that it's not unlikely that some distributions start to
> experiment with dropping the symlink "python" to find incompatible scripts.
>
> Best regards
>
> Christian
> --
> --------------------------------------------
> embedded brains GmbH
> Herr Christian Mauderer
> Dornierstr. 4
> D-82178 Puchheim
> Germany
> email: christian.mauderer at embedded-brains.de
> Phone: +49-89-18 94 741 - 18
> Fax:   +49-89-18 94 741 - 08
> PGP: Public key available on request.
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20191125/31931d68/attachment-0001.html>


More information about the devel mailing list