develop: python3 transition
Re: develop: python3 transition #41
Re: develop: python3 transition #42
Posted 16 October 2021 - 11:09
Using list as variable is in fact not done….
Of course it is not done, that is why PLi is full of it. LOL.
One piece of code I changed in PLi recently was using "False" as a variable name. Unbelievable!
https://github.com/O...bdcaaed1543e4a7
The problem is those "list" are keyword arguments to functions that are used by code that you are not in control of.
Anyway list comprehension works around the problem
Edited by Huevos, 16 October 2021 - 11:15.
Re: develop: python3 transition #43
Re: develop: python3 transition #44
Posted 16 October 2021 - 21:25
@Liitlesat,
https://github.com/O...ssageBox.py#L17
https://github.com/O...hoiceBox.py#L16
Messagebox and Choicebox are 2 modules that every developer has used for the last 15 years and both have "list" as a keyword argument. If you change that now you are going to break things. So you need to work around it.
I am not sure why you are focusing on this now when PLi has been like this for the last 15 years. It is nothing to do with the Py3 discussion.
Edited by Huevos, 16 October 2021 - 21:26.
Re: develop: python3 transition #45
Posted 17 October 2021 - 01:21
Just to let you guys know recent OE upgrade brought Python 3.10.x and OpenSSL 3.0.0, after Python 3.10.x so many things are different and this is not just the end of py2 but even some py3 versions.
There may not be possible to have both py compatible code anymore, only time will tell and future versions of python-six
For now it's better not to go after Python 3.9.x for e2 teams.
Open Vision sources: https://github.com/OpenVisionE2
Re: develop: python3 transition #46
Posted 17 October 2021 - 07:22
And indeed py >3.10 is another border…. And also extra work..:
Edited by littlesat, 17 October 2021 - 07:25.
WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W
Re: develop: python3 transition #47
Posted 17 October 2021 - 16:11
As an old chinese proverb says: the more work you postpone, the more work you have catching up...
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Re: develop: python3 transition #48
Re: develop: python3 transition #49
Posted 11 December 2021 - 01:15
Ask the guys that are in favour of anarchie...
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Re: develop: python3 transition #50
Posted 11 December 2021 - 07:14
Well we have abandoned our Py2 image. Only Py3 available now.
No real problems from users.
We have helped a lot of plugin developers to upgrade.
Craziest thing is some plugin developers have moaned that their plugins no longer run on our image but refuse to accept tested suggested changes to get them working.
------------------------------------------------
Pli have it easy. So many examples for them to look at, at other distros when they run into problems with the conversion.
Edited by Huevos, 11 December 2021 - 07:16.
Re: develop: python3 transition #51
Posted 11 December 2021 - 08:43
WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W
Re: develop: python3 transition #52
Posted 11 December 2021 - 08:55
Nice you did the job…. Here it is simple due to the situation I’m in I do not have the energy and time to do it proven by the commits I made in the last two years. If I could do it it it was done…. But ot also sounds a bit like saying who good you are instead of really helping….
I think have helped PLi a lot over the years.
But a project like this is for the team, and as always it doesn't even seem to be able to get through the discussion stage, so no one has any idea what to do.
Re: develop: python3 transition #53
Posted 13 December 2021 - 02:31
I want to help OpenPli to port Enigma2 to python 3 and plugins which are not ported to python 3 already in January, 2022 (when I have more time).
Only, I need full support of OpenPli team.
Well that could be a problem.Anyway I've offered it.
I've already startied with enigma2-plugins(which are not ported to python3 already AFAIK).
https://github.com/H...commits/python3
Python 2 is dead. More and more python plugins like Cryptography, Twisted, Mutagan etc.. has dropped python 2.
So updating OE core will be more useless when time goes by.
Only third-party3 PY2 plugins, yes that could be a problem..
Edited by Beeker, 13 December 2021 - 02:35.
Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.
Re: develop: python3 transition #54
Posted 13 December 2021 - 12:34
I want to help OpenPli to port Enigma2 to python 3 and plugins which are not ported to python 3 already in January, 2022 (when I have more time).
Only, I need full support of OpenPli team.
Well that could be a problem.Anyway I've offered it..
You're more than welcome, the more hands, the quicker its done .
What do you want or need from us in terms of "full support" ?
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Re: develop: python3 transition #55
Posted 13 December 2021 - 17:40
Edited by littlesat, 13 December 2021 - 17:50.
WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W
Re: develop: python3 transition #56
Posted 13 December 2021 - 18:00
I think that Beeker is senior enough to know how to deal with it...
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Re: develop: python3 transition #57
Posted 13 December 2021 - 18:06
https://github.com/H...5cf20855d5837d2
And now the PLi complaint about not having .py files on the receiver should get resolved.
Edited by Huevos, 13 December 2021 - 18:07.
Re: develop: python3 transition #58
Posted 13 December 2021 - 18:33
For Python 3 those are pyc files, not pyo files, that need to be checked for.
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Re: develop: python3 transition #59
Re: develop: python3 transition #60
Posted 13 December 2021 - 18:47
I want to help OpenPli to port Enigma2 to python 3 and plugins which are not ported to python 3 already in January, 2022 (when I have more time).
Only, I need full support of OpenPli team.
Well that could be a problem.Anyway I've offered it..
You're more than welcome, the more hands, the quicker its done .
What do you want or need from us in terms of "full support" ?
Oh I just meant that OpenPLi is interested in PY3.
Regarding py, pyc and pyo files.
With PY3 you need the py files anyway.
That will increase the image size.
When you don't ship the pyc files to the image, the image size should be the same as with python 2.
Not tried by myself.
Edited by Beeker, 13 December 2021 - 18:48.
Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users