Mailing List Archive

Updating build and runtime dependencies
I'm doing some cleanup work on my spec file for RPM Fusion working towards
getting a EL8 package and I've found some dependencies I was pulling in
that were obsolete for MythTV.

Looking at the following page:

https://www.mythtv.org/wiki/Build_from_Source

I don't see python-mysql as a dependency anywhere. Is it needed if you're
using the Python bindings?

I've removed:
libXvMC-devel
xorg-x11-drv-intel-devel
xorg-x11-drv-openchrome-devel

Thanks,
Richard
Re: Updating build and runtime dependencies [ In reply to ]
On 4/1/20 8:01 AM, Richard Shaw wrote:
> I don't see python-mysql as a dependency anywhere. Is it needed if you're
> using the Python bindings?

It isn't. But to be clear, python-mysqldb is (or python3-mysqldb).

--
Bill
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Updating build and runtime dependencies [ In reply to ]
On Wed, Apr 1, 2020 at 9:07 AM Bill Meek <keemllib@gmail.com> wrote:

> On 4/1/20 8:01 AM, Richard Shaw wrote:
> > I don't see python-mysql as a dependency anywhere. Is it needed if you're
> > using the Python bindings?
>
> It isn't. But to be clear, python-mysqldb is (or python3-mysqldb).
>

Sorry, I miss-typed that. I meant mysqldb. That should probably be added to
the runtime dependencies then, and it may be a good idea to update it for
v31.

Thanks,
Richard
Re: Updating build and runtime dependencies [ In reply to ]
On 4/1/2020 11:06 AM, Bill Meek wrote:
> On 4/1/20 8:01 AM, Richard Shaw wrote:
>> I don't see python-mysql as a dependency anywhere. Is it needed if you're
>> using the Python bindings?
>
> It isn't. But to be clear, python-mysqldb is (or python3-mysqldb).
>

Neither of which are available on F31.

Rick
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Updating build and runtime dependencies [ In reply to ]
On 4/1/2020 11:21 AM, Richard Shaw wrote:
> On Wed, Apr 1, 2020 at 9:07 AM Bill Meek <keemllib@gmail.com
> <mailto:keemllib@gmail.com>> wrote:
>
> On 4/1/20 8:01 AM, Richard Shaw wrote:
> > I don't see python-mysql as a dependency anywhere. Is it needed
> if you're
> > using the Python bindings?
>
> It isn't. But to be clear, python-mysqldb is (or python3-mysqldb).
>
>
> Sorry, I miss-typed that. I meant mysqldb. That should probably be added
> to the runtime dependencies then, and it may be a good idea to update it
> for v31.
>
> Thanks,
> Richard
>
This is what I get running ansible on F31


failed: [localhost] (item=['python2-mysql', 'python-lxml',
'python-urlgrabber', 'python2-future', 'python2-requests',
'python-requests-cache']) => {"ansible_loop_var": "item", "changed":
false, "failures": ["python2-future No match for argument:
python2-future", "python-requests-cache No match for argument:
python-requests-cache"], "item": ["python2-mysql", "python-lxml",
"python-urlgrabber", "python2-future", "python2-requests",
"python-requests-cache"], "msg": "Failed to install some of the
specified packages", "rc": 1, "results": []}


Rick
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Updating build and runtime dependencies [ In reply to ]
On Wed, Apr 1, 2020 at 9:33 AM Rick <rick@laity.ca> wrote:

> This is what I get running ansible on F31
>
>
> failed: [localhost] (item=['python2-mysql', 'python-lxml',
> 'python-urlgrabber', 'python2-future', 'python2-requests',
> 'python-requests-cache']) => {"ansible_loop_var": "item", "changed":
> false, "failures": ["python2-future No match for argument:
> python2-future", "python-requests-cache No match for argument:
> python-requests-cache"], "item": ["python2-mysql", "python-lxml",
> "python-urlgrabber", "python2-future", "python2-requests",
> "python-requests-cache"], "msg": "Failed to install some of the
> specified packages", "rc": 1, "results": []}
>

All the "python2" parts need to be "python3".

sed -i "s/python2-/python3-/g"

Thanks,
Richard
Re: Updating build and runtime dependencies [ In reply to ]
On 01/04/2020 15:32, Rick wrote:
> On 4/1/2020 11:21 AM, Richard Shaw wrote:
>> On Wed, Apr 1, 2020 at 9:07 AM Bill Meek <keemllib@gmail.com
>> <mailto:keemllib@gmail.com>> wrote:
>>
>>     On 4/1/20 8:01 AM, Richard Shaw wrote:
>>      > I don't see python-mysql as a dependency anywhere. Is it needed
>>     if you're
>>      > using the Python bindings?
>>
>>     It isn't. But to be clear, python-mysqldb is (or python3-mysqldb).
>>
>>
>> Sorry, I miss-typed that. I meant mysqldb. That should probably be
>> added to the runtime dependencies then, and it may be a good idea to
>> update it for v31.
>>
>> Thanks,
>> Richard
>>
> This is what I get running ansible on F31
>
>
> failed: [localhost] (item=['python2-mysql', 'python-lxml',
> 'python-urlgrabber', 'python2-future', 'python2-requests',
> 'python-requests-cache']) => {"ansible_loop_var": "item", "changed":
> false, "failures": ["python2-future No match for argument:
> python2-future", "python-requests-cache No match for argument:
> python-requests-cache"], "item": ["python2-mysql", "python-lxml",
> "python-urlgrabber", "python2-future", "python2-requests",
> "python-requests-cache"], "msg": "Failed to install some of the
> specified packages", "rc": 1, "results": []}
>

This has already been fixed in the ansible repo.
Please pull the latest version and try again


Regards
Stuart
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Updating build and runtime dependencies [ In reply to ]
On 01/04/2020 15:21, Rick wrote:
> On 4/1/2020 11:06 AM, Bill Meek wrote:
>> On 4/1/20 8:01 AM, Richard Shaw wrote:
>>> I don't see python-mysql as a dependency anywhere. Is it needed if
>>> you're
>>> using the Python bindings?
>>
>> It isn't. But to be clear, python-mysqldb is (or python3-mysqldb).
>>
>
> Neither of which are available on F31.
>

This bit needs looking into...

regards
Stuart
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Updating build and runtime dependencies [ In reply to ]
On Wed, Apr 1, 2020 at 10:00 AM Stuart Auchterlonie <
stuarta@squashedfrog.net> wrote:

> On 01/04/2020 15:21, Rick wrote:
> > On 4/1/2020 11:06 AM, Bill Meek wrote:
> >> On 4/1/20 8:01 AM, Richard Shaw wrote:
> >>> I don't see python-mysql as a dependency anywhere. Is it needed if
> >>> you're
> >>> using the Python bindings?
> >>
> >> It isn't. But to be clear, python-mysqldb is (or python3-mysqldb).
> >>
> >
> > Neither of which are available on F31.
> >
>
> This bit needs looking into...
>

I assume then this is not the correct upstream?

https://github.com/PyMySQL/mysqlclient-python

Thanks,
Richard
Re: Updating build and runtime dependencies [ In reply to ]
On Wed, Apr 1, 2020 at 10:00 AM Stuart Auchterlonie <
stuarta@squashedfrog.net> wrote:

> On 01/04/2020 15:21, Rick wrote:
> > On 4/1/2020 11:06 AM, Bill Meek wrote:
> >> On 4/1/20 8:01 AM, Richard Shaw wrote:
> >>> I don't see python-mysql as a dependency anywhere. Is it needed if
> >>> you're
> >>> using the Python bindings?
> >>
> >> It isn't. But to be clear, python-mysqldb is (or python3-mysqldb).
> >>
> >
> > Neither of which are available on F31.
> >
>
> This bit needs looking into...
>

I believe the current package supplies the correct python library:

$ sudo dnf repoquery -l python3-mysql.x86_64 | grep MySQLdb
Last metadata expiration check: 0:01:19 ago on Wed 01 Apr 2020 10:06:24 AM
CDT.
[trimed]
/usr/lib64/python3.7/site-packages/MySQLdb
/usr/lib64/python3.7/site-packages/MySQLdb/__init__.py
/usr/lib64/python3.7/site-packages/MySQLdb/compat.py
/usr/lib64/python3.7/site-packages/MySQLdb/connections.py
/usr/lib64/python3.7/site-packages/MySQLdb/constants
/usr/lib64/python3.7/site-packages/MySQLdb/constants/CLIENT.py
/usr/lib64/python3.7/site-packages/MySQLdb/constants/CR.py
/usr/lib64/python3.7/site-packages/MySQLdb/constants/ER.py
/usr/lib64/python3.7/site-packages/MySQLdb/constants/FIELD_TYPE.py
/usr/lib64/python3.7/site-packages/MySQLdb/constants/FLAG.py
/usr/lib64/python3.7/site-packages/MySQLdb/constants/REFRESH.py
/usr/lib64/python3.7/site-packages/MySQLdb/constants/__init__.py
/usr/lib64/python3.7/site-packages/MySQLdb/converters.py
/usr/lib64/python3.7/site-packages/MySQLdb/cursors.py
/usr/lib64/python3.7/site-packages/MySQLdb/release.py
/usr/lib64/python3.7/site-packages/MySQLdb/times.py

Thanks,
Richard
Re: Updating build and runtime dependencies [ In reply to ]
On 4/1/2020 11:53 AM, Stuart Auchterlonie wrote:
> On 01/04/2020 15:32, Rick wrote:
>> On 4/1/2020 11:21 AM, Richard Shaw wrote:
>>> On Wed, Apr 1, 2020 at 9:07 AM Bill Meek <keemllib@gmail.com
>>> <mailto:keemllib@gmail.com>> wrote:
>>>
>>>     On 4/1/20 8:01 AM, Richard Shaw wrote:
>>>      > I don't see python-mysql as a dependency anywhere. Is it needed
>>>     if you're
>>>      > using the Python bindings?
>>>
>>>     It isn't. But to be clear, python-mysqldb is (or python3-mysqldb).
>>>
>>>
>>> Sorry, I miss-typed that. I meant mysqldb. That should probably be
>>> added to the runtime dependencies then, and it may be a good idea to
>>> update it for v31.
>>>
>>> Thanks,
>>> Richard
>>>
>> This is what I get running ansible on F31
>>
>>
>> failed: [localhost] (item=['python2-mysql', 'python-lxml',
>> 'python-urlgrabber', 'python2-future', 'python2-requests',
>> 'python-requests-cache']) => {"ansible_loop_var": "item", "changed":
>> false, "failures": ["python2-future No match for argument:
>> python2-future", "python-requests-cache No match for argument:
>> python-requests-cache"], "item": ["python2-mysql", "python-lxml",
>> "python-urlgrabber", "python2-future", "python2-requests",
>> "python-requests-cache"], "msg": "Failed to install some of the
>> specified packages", "rc": 1, "results": []}
>>
>
> This has already been fixed in the ansible repo.
> Please pull the latest version and try again
>
>
> Regards
> Stuart

Not in the version I get from rpmfusion, nor is it in testing.

Rick
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Updating build and runtime dependencies [ In reply to ]
On Wed, Apr 1, 2020 at 3:10 PM Richard Shaw <hobbes1069@gmail.com> wrote:
>

The correct package is python[n](*)-mysql for Fedora,
MySQL-python for EPEL7, and there is no current
EPEL8 package (see RHBZ#1755345).


(*) Where [n] is, for all practical purposes,
3 for MythTV v31 or later.
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Updating build and runtime dependencies [ In reply to ]
On Wed, Apr 1, 2020 at 10:16 AM Rick <rick@laity.ca> wrote:

> > This has already been fixed in the ansible repo.
> > Please pull the latest version and try again
> >
> >
> > Regards
> > Stuart
>
> Not in the version I get from rpmfusion, nor is it in testing.
>

Rick,

You're not providing a lot of context. Are you saying the ansible playlist
isn't up to date, or the package isn't in RPM Fusion, but you would be
correct, python-mysql is provided by Fedora, not RPM Fusion.

Thanks,
Richard
Re: Updating build and runtime dependencies [ In reply to ]
On 01/04/2020 16:16, Rick wrote:
> On 4/1/2020 11:53 AM, Stuart Auchterlonie wrote:
>> On 01/04/2020 15:32, Rick wrote:
>>> On 4/1/2020 11:21 AM, Richard Shaw wrote:
>>>> On Wed, Apr 1, 2020 at 9:07 AM Bill Meek <keemllib@gmail.com
>>>> <mailto:keemllib@gmail.com>> wrote:
>>>>
>>>>      On 4/1/20 8:01 AM, Richard Shaw wrote:
>>>>       > I don't see python-mysql as a dependency anywhere. Is it needed
>>>>      if you're
>>>>       > using the Python bindings?
>>>>
>>>>      It isn't. But to be clear, python-mysqldb is (or python3-mysqldb).
>>>>
>>>>
>>>> Sorry, I miss-typed that. I meant mysqldb. That should probably be
>>>> added to the runtime dependencies then, and it may be a good idea to
>>>> update it for v31.
>>>>
>>>> Thanks,
>>>> Richard
>>>>
>>> This is what I get running ansible on F31
>>>
>>>
>>> failed: [localhost] (item=['python2-mysql', 'python-lxml',
>>> 'python-urlgrabber', 'python2-future', 'python2-requests',
>>> 'python-requests-cache']) => {"ansible_loop_var": "item", "changed":
>>> false, "failures": ["python2-future No match for argument:
>>> python2-future", "python-requests-cache No match for argument:
>>> python-requests-cache"], "item": ["python2-mysql", "python-lxml",
>>> "python-urlgrabber", "python2-future", "python2-requests",
>>> "python-requests-cache"], "msg": "Failed to install some of the
>>> specified packages", "rc": 1, "results": []}
>>>
>>
>> This has already been fixed in the ansible repo.
>> Please pull the latest version and try again
>>
>>
>> Regards
>> Stuart
>
> Not in the version I get from rpmfusion, nor is it in testing.
>

I'm referring to our ansible repository which has playbooks to
install all the required dependencies.

https://github.com/MythTV/ansible

This already installs python3-mysql which is the required library


Regards
Stuart

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Updating build and runtime dependencies [ In reply to ]
On 01/04/2020 16:09, Richard Shaw wrote:
> On Wed, Apr 1, 2020 at 10:00 AM Stuart Auchterlonie
> <stuarta@squashedfrog.net <mailto:stuarta@squashedfrog.net>> wrote:
>
> On 01/04/2020 15:21, Rick wrote:
> > On 4/1/2020 11:06 AM, Bill Meek wrote:
> >> On 4/1/20 8:01 AM, Richard Shaw wrote:
> >>> I don't see python-mysql as a dependency anywhere. Is it needed if
> >>> you're
> >>> using the Python bindings?
> >>
> >> It isn't. But to be clear, python-mysqldb is (or python3-mysqldb).
> >>
> >
> > Neither of which are available on F31.
> >
>
> This bit needs looking into...
>
>
> I believe the current package supplies the correct python library:
>
> $ sudo dnf repoquery -l python3-mysql.x86_64 | grep MySQLdb
> Last metadata expiration check: 0:01:19 ago on Wed 01 Apr 2020 10:06:24
> AM CDT.
> [trimed]
> /usr/lib64/python3.7/site-packages/MySQLdb
> /usr/lib64/python3.7/site-packages/MySQLdb/__init__.py
> /usr/lib64/python3.7/site-packages/MySQLdb/compat.py
> /usr/lib64/python3.7/site-packages/MySQLdb/connections.py
> /usr/lib64/python3.7/site-packages/MySQLdb/constants
> /usr/lib64/python3.7/site-packages/MySQLdb/constants/CLIENT.py
> /usr/lib64/python3.7/site-packages/MySQLdb/constants/CR.py
> /usr/lib64/python3.7/site-packages/MySQLdb/constants/ER.py
> /usr/lib64/python3.7/site-packages/MySQLdb/constants/FIELD_TYPE.py
> /usr/lib64/python3.7/site-packages/MySQLdb/constants/FLAG.py
> /usr/lib64/python3.7/site-packages/MySQLdb/constants/REFRESH.py
> /usr/lib64/python3.7/site-packages/MySQLdb/constants/__init__.py
> /usr/lib64/python3.7/site-packages/MySQLdb/converters.py
> /usr/lib64/python3.7/site-packages/MySQLdb/cursors.py
> /usr/lib64/python3.7/site-packages/MySQLdb/release.py
> /usr/lib64/python3.7/site-packages/MySQLdb/times.py
>  
> Thanks,
> Richard
>

Ah yes, I was looking for a python[23]-mysqldb package which isn't
there, however the playbooks already install python3-mysql which is
what is required.


Regards
Stuart

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Updating build and runtime dependencies [ In reply to ]
On 4/1/2020 12:36 PM, Stuart Auchterlonie wrote:
> On 01/04/2020 16:16, Rick wrote:
>> On 4/1/2020 11:53 AM, Stuart Auchterlonie wrote:
>>> On 01/04/2020 15:32, Rick wrote:
>>>> On 4/1/2020 11:21 AM, Richard Shaw wrote:
>>>>> On Wed, Apr 1, 2020 at 9:07 AM Bill Meek <keemllib@gmail.com
>>>>> <mailto:keemllib@gmail.com>> wrote:
>>>>>
>>>>>      On 4/1/20 8:01 AM, Richard Shaw wrote:
>>>>>       > I don't see python-mysql as a dependency anywhere. Is it needed
>>>>>      if you're
>>>>>       > using the Python bindings?
>>>>>
>>>>>      It isn't. But to be clear, python-mysqldb is (or python3-mysqldb).
>>>>>
>>>>>
>>>>> Sorry, I miss-typed that. I meant mysqldb. That should probably be
>>>>> added to the runtime dependencies then, and it may be a good idea to
>>>>> update it for v31.
>>>>>
>>>>> Thanks,
>>>>> Richard
>>>>>
>>>> This is what I get running ansible on F31
>>>>
>>>>
>>>> failed: [localhost] (item=['python2-mysql', 'python-lxml',
>>>> 'python-urlgrabber', 'python2-future', 'python2-requests',
>>>> 'python-requests-cache']) => {"ansible_loop_var": "item", "changed":
>>>> false, "failures": ["python2-future No match for argument:
>>>> python2-future", "python-requests-cache No match for argument:
>>>> python-requests-cache"], "item": ["python2-mysql", "python-lxml",
>>>> "python-urlgrabber", "python2-future", "python2-requests",
>>>> "python-requests-cache"], "msg": "Failed to install some of the
>>>> specified packages", "rc": 1, "results": []}
>>>>
>>>
>>> This has already been fixed in the ansible repo.
>>> Please pull the latest version and try again
>>>
>>>
>>> Regards
>>> Stuart
>>
>> Not in the version I get from rpmfusion, nor is it in testing.
>>
>
> I'm referring to our ansible repository which has playbooks to
> install all the required dependencies.
>
> https://github.com/MythTV/ansible
>
> This already installs python3-mysql which is the required library
>
>
> Regards
> Stuart

Correct you are. For some reason I had it in my head it was an
rpmfusion package. I'll blame covid-19 for my brain fart.

Rick
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org