<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Take a look at what python stuff is in
/usr/bin right now. There should be several symbolic links. <br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><tt> * ls -l /usr/bin/python*
/etc/alternatives/python*</tt></div>
<br>
<div class="moz-cite-prefix">My guess is that /usr/bin/python is
either missing altogether or is pointing to some version of
python2 that has been removed. If you run this command it will set
/usr/bin/python to point to /etc/alternatives/python, which in
turn will point to /usr/bin/python3. <br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><tt> * sudo update-alternatives
--install /usr/bin/python python /usr/bin/python3 1</tt></div>
<div class="moz-cite-prefix">
<div class="moz-cite-prefix"><tt> * python --version</tt><br>
</div>
<div class="moz-cite-prefix"> should now return 'Python
3.8.2'<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
</div>
<div class="moz-cite-prefix">That should get the 'python' command
pointing to a valid python installation again. Your next issue
might be that some older python scripts will have to be updated to
be compatible with python3, but fixing those will be a one-time
thing and will get you positioned well for the long term. <br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">-Ross</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 5/11/20 1:58 PM, BabsKy wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CACCC2w4kWKfQrLkrG0pah3aneU9NzBUb_ipbpwydXw1agUjVkg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">All 'python' commands (tried a few variations)
returned "command 'python' not found",
<div>'python3 --version' returned 'Python 3.8.2'.</div>
<div>I think it's Gimp python as this has been an issue before,
as I mentioned, but I don't know what specifically to install,
it doesn't seem to be 'Gimp python' as it was before.</div>
<div>I've tinkered with thonny for writing python scripts for
Gimp and it that it was pygimp but I'm stumped. I don't want
to randomly install stuff in case I make it worse. </div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, 11 May 2020 at 17:58,
Ross Mohn <<a href="mailto:rpmohn@waxandwane.org"
moz-do-not-send="true">rpmohn@waxandwane.org</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>Here are the steps I used:</div>
<div>
<ol>
<li>Check current system python version is 2.x<br>
<tt> sudo python --version</tt></li>
<li>Execute this command to switch to python3<br>
<tt> sudo update-alternatives --install
/usr/bin/python python /usr/bin/python3 1</tt></li>
<li>Verify system python version is now 3.x<br>
<tt> sudo python --version</tt></li>
</ol>
</div>
<div>based on steps I found in this post:<br>
<tt>
<a
href="https://unix.stackexchange.com/questions/410579/change-the-python3-default-version-in-ubuntu"
target="_blank" moz-do-not-send="true">https://unix.stackexchange.com/questions/410579/change-the-python3-default-version-in-ubuntu</a></tt><br>
</div>
<div><br>
</div>
<div>-Ross <br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>On 5/11/20 12:10 PM, BabsKy wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">I'm surprised that python (for Gimp) isn't
installed by default on Linux, that's what's caused this
issue before.
<div>I'll try anything to get it working, python plays a
large part of my Gimp workflow.</div>
<div>Sorry to ask but how would I manually set python3
as the default? </div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, 11 May 2020 at
16:54, Ross Mohn <<a
href="mailto:rpmohn@waxandwane.org" target="_blank"
moz-do-not-send="true">rpmohn@waxandwane.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px
0px 0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div>
<div>Can you try 'python3'? On a side note, I was
surprised that python3 was note the default in the
upgrade. I had manually set python3 as the default
in my 19.10 and that was switched back to python
2.x when I upgraded. <br>
</div>
<div><br>
</div>
<div>-Ross <br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>On 5/11/20 7:38 AM, BabsKy wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">So I did a clean install and Gimp
now loads and works mostly OK. The issue now is
it can't find python.
<div>I know this has been an issue with Gimp on
Linux previously and it could be solved by '<span>sudo
apt install gimp-python', </span><span
style="background-color:transparent"><font
face="arial, sans-serif">but this doesn't
work.</font></span></div>
<div><br>
</div>
<div>Output from terminal '/usr/bin/env:
‘python’: No such file or directory'<br>
</div>
<div>I can see there's no env in bin.</div>
<div>Does anyone know how to fix this please?</div>
<div>I have searched online but the solutions
aren't relevant to the current Gimp
version/Linux.</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
</blockquote>
<p><br>
</p>
</div>
-- <br>
ubuntu-studio-users mailing list<br>
<a href="mailto:ubuntu-studio-users@lists.ubuntu.com"
target="_blank" moz-do-not-send="true">ubuntu-studio-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a
href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users"
rel="noreferrer" target="_blank"
moz-do-not-send="true">https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users</a><br>
</blockquote>
</div>
<br>
<fieldset></fieldset>
</blockquote>
<p><br>
</p>
</div>
-- <br>
ubuntu-studio-users mailing list<br>
<a href="mailto:ubuntu-studio-users@lists.ubuntu.com"
target="_blank" moz-do-not-send="true">ubuntu-studio-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a
href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users</a><br>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
<p><br>
</p>
</body>
</html>