Mailing List Archive

libmyth-python: mythbuntu master ppa install error
I'm seeing an error while trying to update to lasting nights mythbuntu
autobuilds:

Setting up libmyth-python
(2:33.0~master.202301200203.5337925bde~ubuntu22.10.1) ...
File
"/usr/lib/python3/dist-packages/MythTV/services_api/mythversions.py", line 9
MYTHTV_VERSION_LIST = @MYTHTV_PYTHON_VERSION_LIST@
^
SyntaxError: invalid syntax


Is is safe to assume this comes from this recent commit:
https://github.com/MythTV/mythtv/commit/fef61c9b159f14600001dc3150681d86b4814c99

Any suggestions on how to fix it?
Re: libmyth-python: mythbuntu master ppa install error [ In reply to ]
On Fri, Jan 20, 2023 at 4:47 PM John Hoyt <john.hoyt@gmail.com> wrote:

> I'm seeing an error while trying to update to lasting nights mythbuntu
> autobuilds:
>
> Setting up libmyth-python
> (2:33.0~master.202301200203.5337925bde~ubuntu22.10.1) ...
> File
> "/usr/lib/python3/dist-packages/MythTV/services_api/mythversions.py", line 9
> MYTHTV_VERSION_LIST = @MYTHTV_PYTHON_VERSION_LIST@
> ^
> SyntaxError: invalid syntax
>
>
> Is is safe to assume this comes from this recent commit:
> https://github.com/MythTV/mythtv/commit/fef61c9b159f14600001dc3150681d86b4814c99
>
> Any suggestions on how to fix it?
>

I fixed the installation error by manually editing
/usr/lib/python3/dist-packages/MythTV/services_api/mythversions.py

changing

MYTHTV_VERSION_LIST = @MYTHTV_PYTHON_VERSION_LIST@"

to

MYTHTV_VERSION_LIST = '33'
Re: libmyth-python: mythbuntu master ppa install error [ In reply to ]
On Fri, 2023-01-20 at 16:47 -0500, John Hoyt wrote:
> I'm seeing an error while trying to update to lasting  nights
> mythbuntu autobuilds:
>
> > Setting up libmyth-python
> > (2:33.0~master.202301200203.5337925bde~ubuntu22.10.1) ...
> >   File "/usr/lib/python3/dist-
> > packages/MythTV/services_api/mythversions.py", line 9
> >     MYTHTV_VERSION_LIST = @MYTHTV_PYTHON_VERSION_LIST@
> >                           ^
> > SyntaxError: invalid syntax
> >
> >
> Is is safe to assume this comes from this recent
> commit: https://github.com/MythTV/mythtv/commit/fef61c9b159f14600001d
> c3150681d86b4814c99


I made a last minute change to the name of one of my value
substitutions, and missed changing it in one location.

I've committed a fix. If you update and rerun configure, the
MYTHTV_VERSION_LIST value should return to its prior value of:

('0.27', '0.28', '29', '30', '31', '32', '33')

Sorry about that.

David

_______________________________________________
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: libmyth-python: mythbuntu master ppa install error [ In reply to ]
On Sat, Jan 21, 2023 at 12:39 AM David Hampton via mythtv-users <
mythtv-users@mythtv.org> wrote:

> On Fri, 2023-01-20 at 16:47 -0500, John Hoyt wrote:
> > I'm seeing an error while trying to update to lasting nights
> > mythbuntu autobuilds:
> >
> > > Setting up libmyth-python
> > > (2:33.0~master.202301200203.5337925bde~ubuntu22.10.1) ...
> > > File "/usr/lib/python3/dist-
> > > packages/MythTV/services_api/mythversions.py", line 9
> > > MYTHTV_VERSION_LIST = @MYTHTV_PYTHON_VERSION_LIST@
> > > ^
> > > SyntaxError: invalid syntax
> > >
> > >
> > Is is safe to assume this comes from this recent
> > commit: https://github.com/MythTV/mythtv/commit/fef61c9b159f14600001d
> > c3150681d86b4814c99
>
>
> I made a last minute change to the name of one of my value
> substitutions, and missed changing it in one location.
>
> I've committed a fix. If you update and rerun configure, the
> MYTHTV_VERSION_LIST value should return to its prior value of:
>
> ('0.27', '0.28', '29', '30', '31', '32', '33')
>
> Sorry about that.
>
> David
>

Thanks for the quick fix! I just checked and everything is back to working.