Jump to content


Photo

develop: python3 transition


  • Please log in to reply
371 replies to this topic

Re: develop: python3 transition #21 littlesat

  • PLi® Core member
  • 57,224 posts

+701
Excellent

Posted 24 September 2021 - 15:54

Let’s invite the owif people here… as this seems also being a factor here ;)

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: develop: python3 transition #22 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

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 40H3X

  • Forum Moderator
    PLi® Contributor
  • 5,959 posts

+191
Excellent

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 rep_up.png 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

Note: I do not provide support via PM !.


Re: develop: python3 transition #24 littlesat

  • PLi® Core member
  • 57,224 posts

+701
Excellent

Posted 24 September 2021 - 18:33

The question is what is the move forward….?


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: develop: python3 transition #25 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

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 40H3X

  • Forum Moderator
    PLi® Contributor
  • 5,959 posts

+191
Excellent

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 rep_up.png 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

Note: I do not provide support via PM !.


Re: develop: python3 transition #27 Pr2

  • PLi® Contributor
  • 6,182 posts

+261
Excellent

Posted 25 September 2021 - 08:27

I totally agree you should move forward, people are still use old no longer maintained plugins or skins. I read so many times that you cannot develop a proper solution because it will break plugin or some skins.
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 littlesat

  • PLi® Core member
  • 57,224 posts

+701
Excellent

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 A.A.

  • Senior Member
  • 391 posts

+8
Neutral

Posted 25 September 2021 - 20:56

My opinion is that with the actual resources/developers most of the work should be done on enigma2.

All other deviations from OE can be postponed.

 

My 2 cents

A.A.



Re: develop: python3 transition #30 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

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 littlesat

  • PLi® Core member
  • 57,224 posts

+701
Excellent

Posted 26 September 2021 - 07:52

+1….


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: develop: python3 transition #32 MCelliotG

  • Senior Member
  • 443 posts

+35
Good

Posted 26 September 2021 - 09:14

Plugin developers or skin creators should also be ready to adapt there code, otherwise you cannot go forward.

I already have!!! :D
 



Re: develop: python3 transition #33 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

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!!


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: develop: python3 transition #34 littlesat

  • PLi® Core member
  • 57,224 posts

+701
Excellent

Posted 26 September 2021 - 12:31

List as variable name should be forbidden… I suggest to modify them al to list_description of listDescription or so… so also an indication of the content is given….

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: develop: python3 transition #35 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 26 September 2021 - 13:10

Yes, would be the preferred solution, but I fear list is used “everywhere”.
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.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: develop: python3 transition #36 littlesat

  • PLi® Core member
  • 57,224 posts

+701
Excellent

Posted 26 September 2021 - 17:12

Thanks….


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: develop: python3 transition #37 40H3X

  • Forum Moderator
    PLi® Contributor
  • 5,959 posts

+191
Excellent

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 rep_up.png 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

Note: I do not provide support via PM !.


Re: develop: python3 transition #38 dreamce

  • Senior Member
  • 43 posts

0
Neutral

Posted 7 October 2021 - 11:50

Yes Openli 9.0 python3

Re: develop: python3 transition #39 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

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 Huevos

  • PLi® Contributor
  • 4,692 posts

+167
Excellent

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

  • Attached File  1.jpg   99.21KB   15 downloads

Edited by Huevos, 15 October 2021 - 22:44.



6 user(s) are reading this topic

0 members, 6 guests, 0 anonymous users