[ubuntu-studio-users] ubuntu-studio-users Digest, Vol 157, Issue 12

David van Alphen david at hidrive.co.uk
Mon May 11 23:59:36 UTC 2020


 BabsKy

This probably doesnt help, but maybe explains why. And some suggestions

>From what I read online, because Python 2 is EOL, Ubuntu tries to include only v3 in 20.04, so only gimp packages working with python 3 are functioning right now. Main app is okay and some of the plugins.
I think it will depend on which plugins you want to use. The gimp-python package has been removed from 20.04 as its all the older plugins that expect python 2 and they need upgrading to python 3 to work. See 1

There have been suggestions to install python2 to try make it work, however that will probably mess up your linux in a bad and unsupported way.

As this is a widely used package, so I am sure someone in the community will work out a fix soon - I just did not find one yet.

For now, if the older plugins are massively important and you need them urgently, I would suggest downgrading to an earlier version until it is supported better in 20.04. Or be patient, whichever works for you.

David

PS. python-is-python3 package adds the missing link, and will make your '/usr/bin/env: ‘python’: No such file or directory' error go away. But only helps for plugins that will work with python 3. The plugins that need python 2 will give you different errors and still not work.

1 - https://discuss.pixls.us/t/gimp-python-not-available-in-ubuntu-20-04/17769
     On Monday, May 11, 2020, 10:53:05 PM GMT+1, <ubuntu-studio-users-request at lists.ubuntu.com> wrote:  
 
 Send ubuntu-studio-users mailing list submissions to
    ubuntu-studio-users at lists.ubuntu.com

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
or, via email, send a message with subject or body 'help' to
    ubuntu-studio-users-request at lists.ubuntu.com

You can reach the person managing the list at
    ubuntu-studio-users-owner at lists.ubuntu.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ubuntu-studio-users digest..."


Today's Topics:

  1. Re:  Next Gimp issue - no python (Ross Mohn)
  2. Re:  Next Gimp issue - no python (BabsKy)


----------------------------------------------------------------------

Message: 1
Date: Mon, 11 May 2020 16:24:34 -0400
From: Ross Mohn <rpmohn at waxandwane.org>
To: ubuntu-studio-users at lists.ubuntu.com
Subject: Re: [ubuntu-studio-users] Next Gimp issue - no python
Message-ID: <6e082602-eaf9-076c-eeca-5f6cd294c8fd at waxandwane.org>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

The update-alternatives command should create the 
/etc/alternatives/python link for you just fine.

On 5/11/20 3:56 PM, BabsKy wrote:
> Sorry, had to dogsit for a bit.
> env is in usr/bin, don't know how I missed it before.
> There are a few pythons in usr/bin (2 (link to py2.7), 2.7 (shared 
> lib), 3 (link to py3.8), 3.8 (exe), and a few more py 3) but none in 
> alternatives.
> Setting usr/bin/python to point to /etc/alternatives/python won't work 
> if it's not there.
>
> Do I have to set the python path environment variable? I'm only 
> guessing but is 'env' a list of environment variables? All I know is 
> that it's a library.
>
>
> On Mon, 11 May 2020 at 19:26, Ross Mohn <rpmohn at waxandwane.org 
> <mailto:rpmohn at waxandwane.org>> wrote:
>
>    Take a look at what python stuff is in /usr/bin right now. There
>    should be several symbolic links.
>
>        * ls -l /usr/bin/python* /etc/alternatives/python*
>
>    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.
>
>        * sudo update-alternatives --install /usr/bin/python python
>    /usr/bin/python3 1
>        * python --version
>            should now return 'Python 3.8.2'
>
>    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.
>
>    -Ross
>
>
>    On 5/11/20 1:58 PM, BabsKy wrote:
>>    All 'python' commands (tried a few variations) returned "command
>>    'python' not found",
>>    'python3  --version' returned 'Python 3.8.2'.
>>    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.
>>    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.
>>
>>    On Mon, 11 May 2020 at 17:58, Ross Mohn <rpmohn at waxandwane.org
>>    <mailto:rpmohn at waxandwane.org>> wrote:
>>
>>        Here are the steps I used:
>>
>>          1. Check current system python version is 2.x
>>                sudo python --version
>>          2. Execute this command to switch to python3
>>                sudo update-alternatives --install /usr/bin/python
>>            python /usr/bin/python3 1
>>          3. Verify system python version is now 3.x
>>                sudo python --version
>>
>>        based on steps I found in this post:
>>        https://unix.stackexchange.com/questions/410579/change-the-python3-default-version-in-ubuntu
>>
>>        -Ross
>>
>>
>>        On 5/11/20 12:10 PM, BabsKy wrote:
>>>        I'm surprised that python (for Gimp) isn't installed by
>>>        default on Linux, that's what's caused this issue before.
>>>        I'll try anything to get it working, python plays a large
>>>        part of my Gimp workflow.
>>>        Sorry to ask but how would I manually set python3 as the
>>>        default?
>>>
>>>        On Mon, 11 May 2020 at 16:54, Ross Mohn
>>>        <rpmohn at waxandwane.org <mailto:rpmohn at waxandwane.org>> wrote:
>>>
>>>            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.
>>>
>>>            -Ross
>>>
>>>
>>>            On 5/11/20 7:38 AM, BabsKy wrote:
>>>>            So I did a clean install and Gimp now loads and works
>>>>            mostly OK. The issue now is it can't find python.
>>>>            I know this has been an issue with Gimp on Linux
>>>>            previously and it could be solved by 'sudo apt install
>>>>            gimp-python', but this doesn't work.
>>>>
>>>>            Output from terminal '/usr/bin/env: ‘python’: No such
>>>>            file or directory'
>>>>            I can see there's no env in bin.
>>>>            Does anyone know how to fix this please?
>>>>            I have searched online but the solutions aren't
>>>>            relevant to the current Gimp version/Linux.
>>>>
>>>>
>>>
>>>            -- 
>>>            ubuntu-studio-users mailing list
>>>            ubuntu-studio-users at lists.ubuntu.com
>>>            <mailto:ubuntu-studio-users at lists.ubuntu.com>
>>>            Modify settings or unsubscribe at:
>>>            https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
>>>
>>>
>>
>>        -- 
>>        ubuntu-studio-users mailing list
>>        ubuntu-studio-users at lists.ubuntu.com
>>        <mailto:ubuntu-studio-users at lists.ubuntu.com>
>>        Modify settings or unsubscribe at:
>>        https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
>>
>>
>
>    -- 
>    ubuntu-studio-users mailing list
>    ubuntu-studio-users at lists.ubuntu.com
>    <mailto:ubuntu-studio-users at lists.ubuntu.com>
>    Modify settings or unsubscribe at:
>    https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-studio-users/attachments/20200511/dd8611de/attachment-0001.html>

------------------------------

Message: 2
Date: Mon, 11 May 2020 22:52:18 +0100
From: BabsKy <babs.keeley at gmail.com>
To: Ubuntu Studio Users <ubuntu-studio-users at lists.ubuntu.com>
Subject: Re: [ubuntu-studio-users] Next Gimp issue - no python
Message-ID:
    <CACCC2w5PPRmS37THL8ZU=fk+yUJ4zE6X=5SaPY5-xUktufdd1w at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I just checked the US 20.04 beta (run from disc) and that has loads of
'/usr/bin/env: ‘python’: No such file or directory' too, and no python.
Did the update alternatives, now getting loads of "from gimpfu import
* ModuleNotFoundError: No module named 'gimpfu'" errors.
These errors are for the .py scripts now 'built in' to Gimp.
There's more people with the same issue online now than there was yesterday
but the only solutions are either get the appimage or use Gimp on
Windows 😟 I really don't want to do either of those but if I get too stuck
I'll probably go with the appimage option and hold out for a better
solution.
Thanks for all your help Ross 👍


On Mon, 11 May 2020 at 21:25, Ross Mohn <rpmohn at waxandwane.org> wrote:

> The update-alternatives command should create the /etc/alternatives/python
> link for you just fine.
>
> On 5/11/20 3:56 PM, BabsKy wrote:
>
> Sorry, had to dogsit for a bit.
> env is in usr/bin, don't know how I missed it before.
> There are a few pythons in usr/bin (2 (link to py2.7), 2.7 (shared lib), 3
> (link to py3.8), 3.8 (exe), and a few more py 3) but none in alternatives.
> Setting usr/bin/python to point to /etc/alternatives/python won't work if
> it's not there.
>
> Do I have to set the python path environment variable? I'm only guessing
> but is 'env' a list of environment variables? All I know is that it's a
> library.
>
>
>
> On Mon, 11 May 2020 at 19:26, Ross Mohn <rpmohn at waxandwane.org> wrote:
>
>> Take a look at what python stuff is in /usr/bin right now. There should
>> be several symbolic links.
>>
>>    * ls -l /usr/bin/python* /etc/alternatives/python*
>>
>> 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.
>>
>>    * sudo update-alternatives --install /usr/bin/python python
>> /usr/bin/python3 1
>>    * python --version
>>        should now return 'Python 3.8.2'
>>
>> 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.
>>
>> -Ross
>>
>>
>> On 5/11/20 1:58 PM, BabsKy wrote:
>>
>> All 'python' commands (tried a few variations) returned "command 'python'
>> not found",
>> 'python3  --version' returned 'Python 3.8.2'.
>> 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.
>> 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.
>>
>> On Mon, 11 May 2020 at 17:58, Ross Mohn <rpmohn at waxandwane.org> wrote:
>>
>>> Here are the steps I used:
>>>
>>>    1. Check current system python version is 2.x
>>>        sudo python --version
>>>    2. Execute this command to switch to python3
>>>        sudo update-alternatives --install /usr/bin/python python
>>>    /usr/bin/python3 1
>>>    3. Verify system python version is now 3.x
>>>        sudo python --version
>>>
>>> based on steps I found in this post:
>>>
>>> https://unix.stackexchange.com/questions/410579/change-the-python3-default-version-in-ubuntu
>>>
>>> -Ross
>>>
>>>
>>> On 5/11/20 12:10 PM, BabsKy wrote:
>>>
>>> I'm surprised that python (for Gimp) isn't installed by default on
>>> Linux, that's what's caused this issue before.
>>> I'll try anything to get it working, python plays a large part of my
>>> Gimp workflow.
>>> Sorry to ask but how would I manually set python3 as the default?
>>>
>>> On Mon, 11 May 2020 at 16:54, Ross Mohn <rpmohn at waxandwane.org> wrote:
>>>
>>>> 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.
>>>>
>>>> -Ross
>>>>
>>>>
>>>> On 5/11/20 7:38 AM, BabsKy wrote:
>>>>
>>>> So I did a clean install and Gimp now loads and works mostly OK. The
>>>> issue now is it can't find python.
>>>> I know this has been an issue with Gimp on Linux previously and it
>>>> could be solved by 'sudo apt install gimp-python', but this doesn't
>>>> work.
>>>>
>>>> Output from terminal '/usr/bin/env: ‘python’: No such file or directory'
>>>> I can see there's no env in bin.
>>>> Does anyone know how to fix this please?
>>>> I have searched online but the solutions aren't relevant to the current
>>>> Gimp version/Linux.
>>>>
>>>>
>>>>
>>>> --
>>>> ubuntu-studio-users mailing list
>>>> ubuntu-studio-users at lists.ubuntu.com
>>>> Modify settings or unsubscribe at:
>>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
>>>>
>>>
>>>
>>> --
>>> ubuntu-studio-users mailing list
>>> ubuntu-studio-users at lists.ubuntu.com
>>> Modify settings or unsubscribe at:
>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
>>>
>>
>>
>> --
>> ubuntu-studio-users mailing list
>> ubuntu-studio-users at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
>>
>
>
> --
> ubuntu-studio-users mailing list
> ubuntu-studio-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-studio-users/attachments/20200511/3f24979c/attachment.html>

------------------------------

Subject: Digest Footer

-- 
ubuntu-studio-users mailing list
ubuntu-studio-users at lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users


------------------------------

End of ubuntu-studio-users Digest, Vol 157, Issue 12
****************************************************
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-studio-users/attachments/20200511/c591d6df/attachment-0001.html>


More information about the ubuntu-studio-users mailing list