develop: python3 transition
Re: develop: python3 transition #21
Re: develop: python3 transition #22
Posted 24 September 2021 - 16:31
It was just an example, the same is true for every other plugin.
The point is the remark works both ways: you can say "we can't upgrade to Py3 because some plugin won't work anymore", or "we can't stay on Py2 because some plugin won't work anymore".
My personal view is that actively maintained and used plugins (of which OWIF is a prime exampe) will move to Py3 because images will, and non-maintained plugins will stay at Py2.
Which of these plugins are more important to us and to our users?
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 #23
Posted 24 September 2021 - 17:31
Precisely, we'll have to move forward.
Hardware: Vu+ Uno 4K SE - Vu+ Duo 4K - Fuba 78 cm - Tripleblock LNB Quad 19.2/23.5/28.2 - DS918+
Software : OpenPLi - OSCam - Settings van Hans - Autotimer - EPGImport
---------------------------------------------------------------------------------------------------------------------------------------
Remember: Upvote with the button for any user/post you find to be helpful, informative, or deserving of recognition!
---------------------------------------------------------------------------------------------------------------------------------------
Many answers to your question can be found in our new and improved wiki
Re: develop: python3 transition #24
Re: develop: python3 transition #25
Posted 24 September 2021 - 18:47
Not sure that is really a question.
If we don't move forward and phase out Py2, we'll end up either having to maintain all plugins ourselfs (as they will move on), or we will no longer exist due to lack of functionality (and possibly no team members left).
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 #26
Posted 24 September 2021 - 19:38
Precisely, we'll have to move forward.
I ment try to move over to Py3 and what stays behind stays behind.
Hardware: Vu+ Uno 4K SE - Vu+ Duo 4K - Fuba 78 cm - Tripleblock LNB Quad 19.2/23.5/28.2 - DS918+
Software : OpenPLi - OSCam - Settings van Hans - Autotimer - EPGImport
---------------------------------------------------------------------------------------------------------------------------------------
Remember: Upvote with the button for any user/post you find to be helpful, informative, or deserving of recognition!
---------------------------------------------------------------------------------------------------------------------------------------
Many answers to your question can be found in our new and improved wiki
Re: develop: python3 transition #27
Posted 25 September 2021 - 08:27
Switching to Python 3 is the good time to get rid of all of this old stuff.
Plugin developers or skin creators should also be ready to adapt there code, otherwise you cannot go forward.
NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.
Wanna help with OpenPLi Translation? Please read our Wiki Information for translators
Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)
AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
Re: develop: python3 transition #28
Posted 25 September 2021 - 19:39
First we need manpower, mood, time and passion to fix this together… And when we have devs that can and are willing to fix this the second smart step is to freeze further development… I speculate this is a process that might take up to 3-6 months… and then indeed accept old stuff does stop working while new free stuff will work for free later …. Then first go for python3 and when this is completed the second step is update oe…. So a kind of roadmap…
It is a big project so most important is concentrate on get it working… don’t go for improvements or other changes in e2 (except for put it on the todo list).
This does also mean that improve offline decoding should be on that todo list… as making bigger changes to e2 is difficult while transferring to python3…
during transition it is helpful to only accept bugfixes that do not interfere with the py3 process…
Edited by littlesat, 25 September 2021 - 20:12.
WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W
Re: develop: python3 transition #29
Re: develop: python3 transition #30
Posted 25 September 2021 - 21:43
+1.
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 #31
Re: develop: python3 transition #32
Re: develop: python3 transition #33
Posted 26 September 2021 - 10:33
I have started a new branch python3.
All commits from me until now should be compatible with Python2. As they are compatible I would like to merge them into develop branch in near future. If we wait weeks/months with the merge e.g. new "print 'abc' " are added in develop which have to be converted again.
Important:
I have used futurize (similar to 2to3). Not all changes are compatible with OpenPLi. E.g. the cmp fix adds
from past.builtins import cmp
We don't have that module.
Or the fix zip does this:
- list=zip(selection[1].description, selection[1].choices), + list=list(zip(selection[1].description, selection[1].choices)),
As the use list as variable name, the fix won't work as far as I know.
So be careful with such automatic tools. They are nice, but not all changes will work!!
Re: develop: python3 transition #34
Re: develop: python3 transition #35
Posted 26 September 2021 - 13:10
There are also other solutions to fix it.
I try to continue adapting the code in the next days/weeks, but I don’t know how much time I will have.
Re: develop: python3 transition #36
Re: develop: python3 transition #37
Posted 27 September 2021 - 09:46
Nice we move forward
Hardware: Vu+ Uno 4K SE - Vu+ Duo 4K - Fuba 78 cm - Tripleblock LNB Quad 19.2/23.5/28.2 - DS918+
Software : OpenPLi - OSCam - Settings van Hans - Autotimer - EPGImport
---------------------------------------------------------------------------------------------------------------------------------------
Remember: Upvote with the button for any user/post you find to be helpful, informative, or deserving of recognition!
---------------------------------------------------------------------------------------------------------------------------------------
Many answers to your question can be found in our new and improved wiki
Re: develop: python3 transition #38
Re: develop: python3 transition #39
Posted 10 October 2021 - 01:43
The first reported issue: https://forums.openp...13#entry1392874
Python-pycurl doesn't support python2 anymore.
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 #40
Posted 15 October 2021 - 22:32
- list=zip(selection[1].description, selection[1].choices), + list=[x for x in zip(selection[1].description, selection[1].choices)],
It would be a nightmare if you changed those "list" variables as they are used in function keyword arguments by plugins, etc. Just use list comprehension instead. It shouldn't have been allowed in the first place.
For me option 1 is correct. Most mainstream plugins are already converted, e.g. OpenWebIF and I don't suppose Pli users have even noticed. All plugins at oe-alliance are converted and compatible with Py2 and Py3.
At OpenViX we have had a Py3 image for more than a year, with a limited public release of 6 months. The majority of the work was done by one team member on his laptop in hospital where he was having a knee operation. Then the rest was just polishing it all up.
From the user point of view they wouldn't have any idea what Python version is being used. It is just a nice stable image.
BTW, it is not just converting *.py code. CPP code has to be made compatible with Py3 in places.
Also, right now forget about end-of-line... the factories are still producing 100s of thousands of units every year.
https://github.com/O...hon3-compatible
Attached Files
Edited by Huevos, 15 October 2021 - 22:44.
5 user(s) are reading this topic
0 members, 5 guests, 0 anonymous users