<div dir="ltr">The release notes suggest (on newly installed systems) installing <tt class="gmail-backtick" style="color:rgb(51,51,51);font-size:13px">python-is-python3</tt><span style="color:rgb(51,51,51);font-family:"Ubuntu Beta",UbuntuBeta,Ubuntu,"Bitstream Vera Sans","DejaVu Sans",Tahoma,sans-serif;font-size:13px"> package </span><span style="color:rgb(51,51,51);font-family:"Ubuntu Beta",UbuntuBeta,Ubuntu,"Bitstream Vera Sans","DejaVu Sans",Tahoma,sans-serif;font-size:13px">for a </span><tt class="gmail-backtick" style="color:rgb(51,51,51);font-size:13px">/usr/bin/python</tt><span style="color:rgb(51,51,51);font-family:"Ubuntu Beta",UbuntuBeta,Ubuntu,"Bitstream Vera Sans","DejaVu Sans",Tahoma,sans-serif;font-size:13px"> pointing to </span><tt class="gmail-backtick" style="color:rgb(51,51,51);font-size:13px">python3</tt><span style="color:rgb(51,51,51);font-family:"Ubuntu Beta",UbuntuBeta,Ubuntu,"Bitstream Vera Sans","DejaVu Sans",Tahoma,sans-serif"> instead.</span><div><font color="#333333" face="Ubuntu Beta, UbuntuBeta, Ubuntu, Bitstream Vera Sans, DejaVu Sans, Tahoma, sans-serif">It still doesn't fix the problem, I think it has to be Gimp specific python. </font></div><div><font color="#333333" face="Ubuntu Beta, UbuntuBeta, Ubuntu, Bitstream Vera Sans, DejaVu Sans, Tahoma, sans-serif">I'm using the Appimage, it is integrated so it still appears on the menu/app list and I can still add assets.</font></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 13 May 2020 at 18:06, Ross Gammon <<a href="mailto:rosco@ubuntustudio.org">rosco@ubuntustudio.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">In case it helps. The Focal (20.04) Release Notes have some information<br>
about the "Python 3 by default" change. How to handle it depends on<br>
whether it is a fresh install, or an upgrade.<br>
<a href="https://wiki.ubuntu.com/FocalFossa/ReleaseNotes" rel="noreferrer" target="_blank">https://wiki.ubuntu.com/FocalFossa/ReleaseNotes</a><br>
<br>
On 11/05/2020 23:52, BabsKy wrote:<br>
> I just checked the US 20.04 beta (run from disc) and that has loads of<br>
> '/usr/bin/env: ‘python’: No such file or directory' too, and no python.<br>
> Did the update alternatives, now getting loads of "from gimpfu import<br>
> * ModuleNotFoundError: No module named 'gimpfu'" errors. <br>
> These errors are for the .py scripts now 'built in' to Gimp.<br>
> There's more people with the same issue online now than there was<br>
> yesterday but the only solutions are either get the appimage or use Gimp<br>
> on Windows 😟 I really don't want to do either of those but if I get too<br>
> stuck I'll probably go with the appimage option and hold out for a<br>
> better solution.<br>
> Thanks for all your help Ross 👍<br>
> <br>
> <br>
> On Mon, 11 May 2020 at 21:25, Ross Mohn <<a href="mailto:rpmohn@waxandwane.org" target="_blank">rpmohn@waxandwane.org</a><br>
> <mailto:<a href="mailto:rpmohn@waxandwane.org" target="_blank">rpmohn@waxandwane.org</a>>> wrote:<br>
> <br>
> The update-alternatives command should create the<br>
> /etc/alternatives/python link for you just fine.<br>
> <br>
> On 5/11/20 3:56 PM, BabsKy wrote:<br>
>> Sorry, had to dogsit for a bit.<br>
>> env is in usr/bin, don't know how I missed it before.<br>
>> There are a few pythons in usr/bin (2 (link to py2.7), 2.7 (shared<br>
>> lib), 3 (link to py3.8), 3.8 (exe), and a few more py 3) but none<br>
>> in alternatives. <br>
>> Setting usr/bin/python to point to /etc/alternatives/python won't<br>
>> work if it's not there.<br>
>><br>
>> Do I have to set the python path environment variable? I'm only<br>
>> guessing but is 'env' a list of environment variables? All I know<br>
>> is that it's a library. <br>
>> <br>
>><br>
>><br>
>> On Mon, 11 May 2020 at 19:26, Ross Mohn <<a href="mailto:rpmohn@waxandwane.org" target="_blank">rpmohn@waxandwane.org</a><br>
>> <mailto:<a href="mailto:rpmohn@waxandwane.org" target="_blank">rpmohn@waxandwane.org</a>>> wrote:<br>
>><br>
>> Take a look at what python stuff is in /usr/bin right now.<br>
>> There should be several symbolic links.<br>
>><br>
>> * ls -l /usr/bin/python* /etc/alternatives/python*<br>
>><br>
>> My guess is that /usr/bin/python is either missing altogether<br>
>> or is pointing to some version of python2 that has been<br>
>> removed. If you run this command it will set /usr/bin/python<br>
>> to point to /etc/alternatives/python, which in turn will point<br>
>> to /usr/bin/python3.<br>
>><br>
>> * sudo update-alternatives --install /usr/bin/python<br>
>> python /usr/bin/python3 1<br>
>> * python --version<br>
>> should now return 'Python 3.8.2'<br>
>><br>
>> That should get the 'python' command pointing to a valid<br>
>> python installation again. Your next issue might be that some<br>
>> older python scripts will have to be updated to be compatible<br>
>> with python3, but fixing those will be a one-time thing and<br>
>> will get you positioned well for the long term.<br>
>><br>
>> -Ross<br>
>><br>
>><br>
>> On 5/11/20 1:58 PM, BabsKy wrote:<br>
>>> All 'python' commands (tried a few variations) returned<br>
>>> "command 'python' not found", <br>
>>> 'python3 --version' returned 'Python 3.8.2'.<br>
>>> I think it's Gimp python as this has been an issue before, as<br>
>>> I mentioned, but I don't know what specifically to install,<br>
>>> it doesn't seem to be 'Gimp python' as it was before.<br>
>>> I've tinkered with thonny for writing python scripts for Gimp<br>
>>> and it that it was pygimp but I'm stumped. I don't want to<br>
>>> randomly install stuff in case I make it worse. <br>
>>><br>
>>> On Mon, 11 May 2020 at 17:58, Ross Mohn<br>
>>> <<a href="mailto:rpmohn@waxandwane.org" target="_blank">rpmohn@waxandwane.org</a> <mailto:<a href="mailto:rpmohn@waxandwane.org" target="_blank">rpmohn@waxandwane.org</a>>> wrote:<br>
>>><br>
>>> Here are the steps I used:<br>
>>><br>
>>> 1. Check current system python version is 2.x<br>
>>> sudo python --version<br>
>>> 2. Execute this command to switch to python3<br>
>>> sudo update-alternatives --install<br>
>>> /usr/bin/python python /usr/bin/python3 1<br>
>>> 3. Verify system python version is now 3.x<br>
>>> sudo python --version<br>
>>><br>
>>> based on steps I found in this post:<br>
>>> <br>
>>> <a href="https://unix.stackexchange.com/questions/410579/change-the-python3-default-version-in-ubuntu" rel="noreferrer" target="_blank">https://unix.stackexchange.com/questions/410579/change-the-python3-default-version-in-ubuntu</a><br>
>>><br>
>>> -Ross<br>
>>><br>
>>><br>
>>> On 5/11/20 12:10 PM, BabsKy wrote:<br>
>>>> I'm surprised that python (for Gimp) isn't installed by<br>
>>>> default on Linux, that's what's caused this issue before. <br>
>>>> I'll try anything to get it working, python plays a<br>
>>>> large part of my Gimp workflow.<br>
>>>> Sorry to ask but how would I manually set python3 as the<br>
>>>> default? <br>
>>>><br>
>>>> On Mon, 11 May 2020 at 16:54, Ross Mohn<br>
>>>> <<a href="mailto:rpmohn@waxandwane.org" target="_blank">rpmohn@waxandwane.org</a> <mailto:<a href="mailto:rpmohn@waxandwane.org" target="_blank">rpmohn@waxandwane.org</a>>><br>
>>>> wrote:<br>
>>>><br>
>>>> Can you try 'python3'? On a side note, I was<br>
>>>> surprised that python3 was note the default in the<br>
>>>> upgrade. I had manually set python3 as the default<br>
>>>> in my 19.10 and that was switched back to python 2.x<br>
>>>> when I upgraded.<br>
>>>><br>
>>>> -Ross<br>
>>>><br>
>>>><br>
>>>> On 5/11/20 7:38 AM, BabsKy wrote:<br>
>>>>> So I did a clean install and Gimp now loads and<br>
>>>>> works mostly OK. The issue now is it can't find<br>
>>>>> python.<br>
>>>>> I know this has been an issue with Gimp on Linux<br>
>>>>> previously and it could be solved by 'sudo apt<br>
>>>>> install gimp-python', but this doesn't work.<br>
>>>>><br>
>>>>> Output from terminal '/usr/bin/env: ‘python’: No<br>
>>>>> such file or directory'<br>
>>>>> I can see there's no env in bin.<br>
>>>>> Does anyone know how to fix this please?<br>
>>>>> I have searched online but the solutions aren't<br>
>>>>> relevant to the current Gimp version/Linux.<br>
>>>>><br>
>>>>><br>
>>>><br>
>>>> -- <br>
>>>> ubuntu-studio-users mailing list<br>
>>>> <a href="mailto:ubuntu-studio-users@lists.ubuntu.com" target="_blank">ubuntu-studio-users@lists.ubuntu.com</a><br>
>>>> <mailto:<a href="mailto:ubuntu-studio-users@lists.ubuntu.com" target="_blank">ubuntu-studio-users@lists.ubuntu.com</a>><br>
>>>> Modify settings or unsubscribe at:<br>
>>>> <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users</a><br>
>>>><br>
>>>><br>
>>><br>
>>> -- <br>
>>> ubuntu-studio-users mailing list<br>
>>> <a href="mailto:ubuntu-studio-users@lists.ubuntu.com" target="_blank">ubuntu-studio-users@lists.ubuntu.com</a><br>
>>> <mailto:<a href="mailto:ubuntu-studio-users@lists.ubuntu.com" target="_blank">ubuntu-studio-users@lists.ubuntu.com</a>><br>
>>> Modify settings or unsubscribe at:<br>
>>> <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users</a><br>
>>><br>
>>><br>
>><br>
>> -- <br>
>> ubuntu-studio-users mailing list<br>
>> <a href="mailto:ubuntu-studio-users@lists.ubuntu.com" target="_blank">ubuntu-studio-users@lists.ubuntu.com</a><br>
>> <mailto:<a href="mailto:ubuntu-studio-users@lists.ubuntu.com" target="_blank">ubuntu-studio-users@lists.ubuntu.com</a>><br>
>> Modify settings or unsubscribe at:<br>
>> <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users</a><br>
>><br>
>><br>
> <br>
> -- <br>
> ubuntu-studio-users mailing list<br>
> <a href="mailto:ubuntu-studio-users@lists.ubuntu.com" target="_blank">ubuntu-studio-users@lists.ubuntu.com</a><br>
> <mailto:<a href="mailto:ubuntu-studio-users@lists.ubuntu.com" target="_blank">ubuntu-studio-users@lists.ubuntu.com</a>><br>
> Modify settings or unsubscribe at:<br>
> <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users</a><br>
> <br>
> <br>
<br>
<br>
-- <br>
ubuntu-studio-users mailing list<br>
<a href="mailto:ubuntu-studio-users@lists.ubuntu.com" target="_blank">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">https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users</a><br>
</blockquote></div>