Jump to content


Photo

develop: python3 transition


  • Please log in to reply
371 replies to this topic

Re: develop: python3 transition #321 Pr2

  • PLi® Contributor
  • 6,073 posts

+257
Excellent

Posted 7 April 2022 - 12:52

Plugin SlowZap is not yet Python3 compatible:

[Skin] Processing screen 'MessageBox', position=(0, 0), size=(1920 x 1080) for module 'MessageBox'.


[Screen] Warning: Skin is missing element 'autoresize' in <class 'Screens.MessageBox.MessageBox'>(Certains plugins ne sont pas disponibles:
SystemPlugins/SlowZap (Missing parentheses in call to 'print'. Did you mean print("[newPlayService] Failed to start", currentlyServiceReference)? (plugin.py, line 214))
).


[Skin] Parsing embedded skin '<embedded-in-SimpleSummary>'.
[Skin] Processing screen '<embedded-in-SimpleSummary>' from list 'MessageBox_summary, SimpleSummary', position=(0, 0), size=(132 x 64) for module 'SimpleSummary'.
[Screen] Showing screen '['MessageBox_summary', 'SimpleSummary']'.


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 #322 Dimitrij

  • PLi® Core member
  • 9,993 posts

+338
Excellent

Posted 7 April 2022 - 12:53

Plugin SlowZap is not yet Python3 compatible

 

todo


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: develop: python3 transition #323 midoo

  • Member
  • 5 posts

0
Neutral

Posted 30 April 2022 - 01:05

sorry for posting this here but i couldn't find any place else

i'm building teamblue (openpli fork) for sf8008 and image booted ok but still minor issue related to full hd skin 

 
p_2310887f11.png

like in picture the listhight is not working properly

my source code repo is here

https://github.com/a...ree/python3-old

Edited by midoo, 30 April 2022 - 01:06.


Re: develop: python3 transition #324 Huevos

  • PLi® Contributor
  • 4,244 posts

+158
Excellent

Posted 30 April 2022 - 09:43

Probably "ChoiceList" alias missing from skin.

 

https://github.com/O...ty/skin.xml#L20



Re: develop: python3 transition #325 midoo

  • Member
  • 5 posts

0
Neutral

Posted 30 April 2022 - 14:40

Probably "ChoiceList" alias missing from skin.


hello @Huevos this is my skin used for hotkey for example :

 
github.com/ahmedmoselhi/enigma2/blob/python3-old/lib/python/Screens/Hotkey.py#L262

my skin.xml in attachments

Attached Files



Re: develop: python3 transition #326 Huevos

  • PLi® Contributor
  • 4,244 posts

+158
Excellent

Posted 30 April 2022 - 22:02

It is not even present in your skin.xml file.



Re: develop: python3 transition #327 midoo

  • Member
  • 5 posts

0
Neutral

Posted 30 April 2022 - 22:13

It is not even present in your skin.xml file.

it's there in line 385 :

<alias name="ChoiceList" font="Regular" size="32" height="45" />


Re: develop: python3 transition #328 midoo

  • Member
  • 5 posts

0
Neutral

Posted 1 May 2022 - 02:49

@Huevos thank you for help , was fixed by updating skin_default xml from pli

 

https://github.com/a...701bfa95d4133e2



Re: develop: python3 transition #329 Huevos

  • PLi® Contributor
  • 4,244 posts

+158
Excellent

Posted 1 May 2022 - 11:11

In python3 branch there is a commit that has not been rebased properly.

 

In python3 branch there is this: https://github.com/O...ries.py#L79-L81

 

But the rest of the commit is missing: https://github.com/O...ededa617da51570



Re: develop: python3 transition #330 dreamce

  • Senior Member
  • 43 posts

0
Neutral

Posted 20 May 2022 - 19:05

Openpli pyt.3 openpli 8.2 zgemma h9 twin
where???

Re: develop: python3 transition #331 WanWizard

  • PLi® Core member
  • 68,555 posts

+1,737
Excellent

Posted 20 May 2022 - 19:55

You need to build it yourself, we only build test images for people working on the project.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (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 #332 WanWizard

  • PLi® Core member
  • 68,555 posts

+1,737
Excellent

Posted 20 May 2022 - 19:55

In python3 branch there is a commit that has not been rebased properly.

 

In python3 branch there is this: https://github.com/O...ries.py#L79-L81

 

But the rest of the commit is missing: https://github.com/O...ededa617da51570

 

That is not going to be easy, looks like a lot of refactoring took place after that date.

elif scope in (SCOPE_CURRENT_SKIN, SCOPE_ACTIVE_SKIN):

this entire section doesn't exist anymore.

 

The other "elseif's" are there, but the code is refactored (still looks quite similar though).


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (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 #333 Huevos

  • PLi® Contributor
  • 4,244 posts

+158
Excellent

Posted 21 May 2022 - 08:34

 

In python3 branch there is a commit that has not been rebased properly.

 

In python3 branch there is this: https://github.com/O...ries.py#L79-L81

 

But the rest of the commit is missing: https://github.com/O...ededa617da51570

 

That is not going to be easy, looks like a lot of refactoring took place after that date.

elif scope in (SCOPE_CURRENT_SKIN, SCOPE_ACTIVE_SKIN):

this entire section doesn't exist anymore.

 

The other "elseif's" are there, but the code is refactored (still looks quite similar though).

 

Ok, I'll do this.

 

But, any time there are new commits in Develop, Python 3 branch should be rebased on top. If you do this as you go along it is so little work.



Re: develop: python3 transition #334 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 21 May 2022 - 08:43

Personally I prefer to freeze develop and go for py3 to avoid the merge conflict workload. but in between py3 is currently somehow on hold (again)

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


Re: develop: python3 transition #335 Huevos

  • PLi® Contributor
  • 4,244 posts

+158
Excellent

Posted 21 May 2022 - 08:49

By the way the real problem is that the branch started as a python 3 feature branch and then someone started to add commits completely unrelated to the python 3 conversion. i.e. use it as their playground. This can be seen if you do a diff of the 2 branches. Things added not related to the conversion, and partial commits.



Re: develop: python3 transition #336 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 21 May 2022 - 09:45

That is even more terrible indeed…

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


Re: develop: python3 transition #337 Huevos

  • PLi® Contributor
  • 4,244 posts

+158
Excellent

Posted 21 May 2022 - 10:45

That is even more terrible indeed…

Yes, it is true... like changing all the SCOPE names to the "better" IanSav versions.



Re: develop: python3 transition #338 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 21 May 2022 - 11:31

Iansav has good intended suggestions… but it means it breaks thinks cross image and offers a lot of extra work for all devs… without adding real added technical value… we can better accept that enigma2 has crap parts and live with it and only improve parts of them when you try to add value/features and it is required or helpfull… but not at random… so the projects starts into fixing what the good intended stuff did break instead of add value… We should think more effective. An not spend our time on stuff that gains even more work…

Indeed the scope stuff should not be included in py3…

Edited by littlesat, 21 May 2022 - 11:33.

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


Re: develop: python3 transition #339 WanWizard

  • PLi® Core member
  • 68,555 posts

+1,737
Excellent

Posted 21 May 2022 - 16:32

Personally I prefer to freeze develop and go for py3 to avoid the merge conflict workload. but in between py3 is currently somehow on hold (again)

 
That can only work if there is a firm commitment to work on it, and to finish it, because while develop is no updates are possible, and frozen nothing can be fixed either. So the frozen period needs to be as short as possible. And I haven't seen that commitment.
 

But, any time there are new commits in Develop, Python 3 branch should be rebased on top. If you do this as you go along it is so little work.

 
Agreed, the longer you wait with a rebase, the more complex it will be.
 

By the way the real problem is that the branch started as a python 3 feature branch and then someone started to add commits completely unrelated to the python 3 conversion. i.e. use it as their playground. This can be seen if you do a diff of the 2 branches. Things added not related to the conversion, and partial commits.


I'm not sure that is the case, it more looks like code that was already converted to python3 was taken from elsewhere (my guess: OpenVision), and with that came Ian's changes. I don't think it is intentional.
 

we can better accept that enigma2 has crap parts and live with it and only improve parts of them when you try to add value/features and it is required or helpfull

 

I strongly disagree, if only because refactoring improves the quality of the code. So it is always helpful, and a good idea.

 

The root cause of this issue is not doing a daily rebase, not the fact the code was optimized along the way...


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (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 #340 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 21 May 2022 - 16:51



I strongly disagree, if only because refactoring improves the quality of the code. So it is always helpful, and a good idea.
->
When it indeed does improves without breaking other stuff I agree…. But when it breaks other stuff and just add new work in cascade I do not agree.

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



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users