Mailing List Archive

Problem installing libmyth-python on Ubuntu 20.04 beta
I have just installed Ubuntu 20.04 beta in a VirtualBox virtual
machine, so that I can try converting my Python 2 programs for MythTV
to Python 3. When I did:

apt install mythtv

I got these warnings when installing libmyth-python:

Setting up libmyth-python (2:31.0+fixes.20200323.9579662cdc-0ubuntu1)
...
/usr/lib/python3/dist-packages/MythTV/database.py:1170: SyntaxWarning:
"is" with a literal. Did you mean "=="?
if host is 'NULL':
/usr/lib/python3/dist-packages/MythTV/system.py:134: SyntaxWarning:
"is" with a literal. Did you mean "=="?
if self.path is '':
/usr/lib/python3/dist-packages/MythTV/system.py:168: SyntaxWarning:
"is" with a literal. Did you mean "=="?
if self.path is '':
/usr/lib/python3/dist-packages/MythTV/system.py:444: SyntaxWarning:
"is" with a literal. Did you mean "=="?
if self.path is '':

Is there any real problem here? Will it have installed correctly?
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Problem installing libmyth-python on Ubuntu 20.04 beta [ In reply to ]
On 4/16/20 5:37 AM, Stephen Worthington wrote:
> I have just installed Ubuntu 20.04 beta in a VirtualBox virtual
> machine, so that I can try converting my Python 2 programs for MythTV
> to Python 3. When I did:
>
> apt install mythtv
>
> I got these warnings when installing libmyth-python:
>
> Setting up libmyth-python (2:31.0+fixes.20200323.9579662cdc-0ubuntu1)
> ...
> /usr/lib/python3/dist-packages/MythTV/database.py:1170: SyntaxWarning:
> "is" with a literal. Did you mean "=="?
> if host is 'NULL':
> /usr/lib/python3/dist-packages/MythTV/system.py:134: SyntaxWarning:
> "is" with a literal. Did you mean "=="?
> if self.path is '':
> /usr/lib/python3/dist-packages/MythTV/system.py:168: SyntaxWarning:
> "is" with a literal. Did you mean "=="?
> if self.path is '':
> /usr/lib/python3/dist-packages/MythTV/system.py:444: SyntaxWarning:
> "is" with a literal. Did you mean "=="?
> if self.path is '':
>
> Is there any real problem here? Will it have installed correctly?


It's truly just a warning, and it will install correctly. There's a pull request in
the pipeline, but it just hasn't been implemented yet.

--
Bill
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Problem installing libmyth-python on Ubuntu 20.04 beta [ In reply to ]
On Thu, Apr 16, 2020 at 3:38 PM Bill Meek <keemllib@gmail.com> wrote:
>
> On 4/16/20 5:37 AM, Stephen Worthington wrote:
> > I have just installed Ubuntu 20.04 beta in a VirtualBox virtual
> > machine, so that I can try converting my Python 2 programs for MythTV
> > to Python 3. When I did:
> >
> > apt install mythtv
> >
> > I got these warnings when installing libmyth-python:
> >
> > Setting up libmyth-python (2:31.0+fixes.20200323.9579662cdc-0ubuntu1)
> > ...
> > /usr/lib/python3/dist-packages/MythTV/database.py:1170: SyntaxWarning:
> > "is" with a literal. Did you mean "=="?
> > if host is 'NULL':
> > /usr/lib/python3/dist-packages/MythTV/system.py:134: SyntaxWarning:
> > "is" with a literal. Did you mean "=="?
> > if self.path is '':
> > /usr/lib/python3/dist-packages/MythTV/system.py:168: SyntaxWarning:
> > "is" with a literal. Did you mean "=="?
> > if self.path is '':
> > /usr/lib/python3/dist-packages/MythTV/system.py:444: SyntaxWarning:
> > "is" with a literal. Did you mean "=="?
> > if self.path is '':
> >
> > Is there any real problem here? Will it have installed correctly?
>
>
> It's truly just a warning, and it will install correctly. There's a pull request in
> the pipeline, but it just hasn't been implemented yet.
>
> --
> Bill




It is already implemented on master, see commit 12f44c7.

Bill, could you please cherry-pick this commit to fixes/31 ?
Currently, I do not have the correct setup to do this.

Thx
Roland
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Problem installing libmyth-python on Ubuntu 20.04 beta [ In reply to ]
On 4/17/20 11:32 AM, Roland Ernst wrote:
> It is already implemented on master, see commit 12f44c7.
>
> Bill, could you please cherry-pick this commit to fixes/31 ?
> Currently, I do not have the correct setup to do this.

Just did it pushed it. Also PR175 (on master and v31).

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