Jump to content


Photo

OpenPLi-py3


  • Please log in to reply
1139 replies to this topic

Re: OpenPLi-py3 #461 WanWizard

  • PLi® Core member
  • 68,790 posts

+1,743
Excellent

Posted 10 August 2022 - 16:21

Tryed to install swapmanager but I didn't find it.

 

It was an ipk in the 3rd party feed, which is not python3 compatible. So we need a compatible ipk, or better, a link to source so we can build it.


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: OpenPLi-py3 #462 littlesat

  • PLi® Core member
  • 56,415 posts

+692
Excellent

Posted 10 August 2022 - 20:34

Might be not there but why do you need it?

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


Re: OpenPLi-py3 #463 balkanac

  • Senior Member
  • 85 posts

+6
Neutral

Posted 11 August 2022 - 18:09

This is log for X-Streamity plugin.

The plugin starts, however, when I try to start some of the portals, the screen green.
Does anyone else have a similar experience?I use ZGEMMA H7, OpenPli PY3 in Multiboot.
Also, I have OpenPlo PY2 in Multiboot, with it X-Streamity plugin works perfectly.

Attached Files



Re: OpenPLi-py3 #464 WanWizard

  • PLi® Core member
  • 68,790 posts

+1,743
Excellent

Posted 11 August 2022 - 18:19

Looks like you're using some downloaded version, instead of the plugin fromt the feed?


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: OpenPLi-py3 #465 balkanac

  • Senior Member
  • 85 posts

+6
Neutral

Posted 11 August 2022 - 18:54

Looks like you're using some downloaded version, instead of the plugin fromt the feed?

 

This is latest version 3.70 and not installed from feed. 

I will try latter from feed...

Thanks



Re: OpenPLi-py3 #466 WanWizard

  • PLi® Core member
  • 68,790 posts

+1,743
Excellent

Posted 11 August 2022 - 19:14

That is what I mean. The version you installed is compiled with an old Pyhon version.


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: OpenPLi-py3 #467 balkanac

  • Senior Member
  • 85 posts

+6
Neutral

Posted 11 August 2022 - 22:47

That is what I mean. The version you installed is compiled with an old Pyhon version.

 

I install X-Streamity 3.69 from feed and working fine. 

Thank you!!



Re: OpenPLi-py3 #468 HPPli

  • Senior Member
  • 1,882 posts

+36
Good

Posted 13 August 2022 - 16:23

Weeks ago, curious as I was about the Python3 version, I installed this develop software in a Zgemma H9.2H SE and experienced no problems so just a pleasure to watch.

 

So this weekend I also fitted my Vu+Duo4K with the test/develop Python3 firmware. What outlines my surprise after a positive experience with the Zgemma. The Vu+Duo4K

works as usual, shows everything whether in the various menus and also the test images or screens are shown. But normal image from any FTA channel is NOT shown (yes audio).

 

Is there known more about this deviation in a(n) (old) Vu+Duo4K, so no image?

 


Re: OpenPLi-py3 #469 littlesat

  • PLi® Core member
  • 56,415 posts

+692
Excellent

Posted 13 August 2022 - 16:32

Here image but with ultimo4k

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


Re: OpenPLi-py3 #470 HPPli

  • Senior Member
  • 1,882 posts

+36
Good

Posted 13 August 2022 - 16:44

Here image but with ultimo4k

 

And here NO image from FTA channels with a Vu+Duo4K. ………. Did you know why ??



Re: OpenPLi-py3 #471 littlesat

  • PLi® Core member
  • 56,415 posts

+692
Excellent

Posted 13 August 2022 - 17:50

No idea? Do the drivers load?

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


Re: OpenPLi-py3 #472 WanWizard

  • PLi® Core member
  • 68,790 posts

+1,743
Excellent

Posted 13 August 2022 - 18:31

Had that issue on the Solo 4K after the first flash, but havent seen it again after that. Never found out what the issue was.


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: OpenPLi-py3 #473 foxbob

  • Senior Member
  • 615 posts

+18
Neutral

Posted 14 August 2022 - 04:18

Dreamexplorer plugin, I want to sort.

 

  File "/usr/lib/enigma2/python/StartEnigma.py", line 223, in processDelay
    callback(*retval)
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/plugin.py", line 485, in SysExecution
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/plugin.py", line 719, in sortDate
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/myFileList.py", line 357, in sortDate
TypeError: sort() takes no positional arguments

Attached Files


Edited by foxbob, 14 August 2022 - 04:19.


Re: OpenPLi-py3 #474 Huevos

  • PLi® Contributor
  • 4,293 posts

+158
Excellent

Posted 14 August 2022 - 09:19

 

Dreamexplorer plugin, I want to sort.

 

  File "/usr/lib/enigma2/python/StartEnigma.py", line 223, in processDelay
    callback(*retval)
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/plugin.py", line 485, in SysExecution
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/plugin.py", line 719, in sortDate
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/myFileList.py", line 357, in sortDate
TypeError: sort() takes no positional arguments

 

This and this:

self.list.sort(self.byNameFunc)
self.list.sort(self.byDateFunc)

Should be:

self.list.sort(key=self.byNameFunc)
self.list.sort(key=self.byDateFunc)

Also, cmp() needs removing... it is not a valid Py3 method.


Edited by Huevos, 14 August 2022 - 09:27.


Re: OpenPLi-py3 #475 Beeker

  • PLi® Contributor
  • 1,477 posts

+198
Excellent

Posted 14 August 2022 - 09:24

Then

Traceback (most recent call last):
  File "/usr/lib/enigma2/python/StartEnigma.py", line 223, in processDelay
    callback(*retval)
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/plugin.py", line 485, in SysExecution
    list = self.sortDate()
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/plugin.py", line 719, in sortDate
    list = self["filelist"].sortDate()
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/myFileList.py", line 358, in sortDate
    self.list.sort(key=self.byDateFunc)
TypeError: FileList.byDateFunc() missing 1 required positional argument: 'b'

 


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: OpenPLi-py3 #476 Huevos

  • PLi® Contributor
  • 4,293 posts

+158
Excellent

Posted 14 August 2022 - 10:26

 

Then

Traceback (most recent call last):
  File "/usr/lib/enigma2/python/StartEnigma.py", line 223, in processDelay
    callback(*retval)
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/plugin.py", line 485, in SysExecution
    list = self.sortDate()
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/plugin.py", line 719, in sortDate
    list = self["filelist"].sortDate()
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/myFileList.py", line 358, in sortDate
    self.list.sort(key=self.byDateFunc)
TypeError: FileList.byDateFunc() missing 1 required positional argument: 'b'

In Py3 sort() doesn't work like that so needs a bit of a rewrite...

>>> def byDateFunc(*args, **kwargs):
...     print("args", args)
...     print("kwargs", kwargs)
...     return 0
...
>>> s = [1, 2]
>>> s.sort(key=byDateFunc)
args (1,)
kwargs {}
args (2,)
kwargs {}
>>>

It execute the function on the value of a single key and returns the output as the basis for the sort.


Edited by Huevos, 14 August 2022 - 10:29.


Re: OpenPLi-py3 #477 Beeker

  • PLi® Contributor
  • 1,477 posts

+198
Excellent

Posted 14 August 2022 - 11:14

Yeah sorting name can be fixed with:

diff --git a/dreamexplorer/src/myFileList.py b/dreamexplorer/src/myFileList.py
index e42dc56c..ba199a9b 100644
--- a/dreamexplorer/src/myFileList.py
+++ b/dreamexplorer/src/myFileList.py
@@ -336,8 +336,8 @@ class FileList(MenuList):
 				tslen = ""
 		return tslen
 
-	def byNameFunc(self, a, b):
-		return cmp(b[0][1], a[0][1]) or cmp(a[1][7], b[1][7])
+	def byNameFunc(self, a):
+		return a[0][0]
 
 	def sortName(self):
 		self.list.sort(self.byNameFunc)

Sorting date fails at:

Traceback (most recent call last):
  File "/usr/lib/enigma2/python/StartEnigma.py", line 223, in processDelay
    callback(*retval)
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/plugin.py", line 485, in SysExecution
    list = self.sortDate()
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/plugin.py", line 719, in sortDate
    list = self["filelist"].sortDate()
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/myFileList.py", line 359, in sortDate
    self.list.sort(key=self.byDateFunc)
TypeError: '<' not supported between instances of 'str' and 'os.stat_result'

With:

@@ -345,13 +345,13 @@ class FileList(MenuList):
 		self.l.setList(self.list)
 		self.moveToIndex(0)
 
-	def byDateFunc(self, a, b):
+	def byDateFunc(self, a):
 		try:
 			stat1 = os_stat(self.current_directory + a[0][0])
-			stat2 = os_stat(self.current_directory + b[0][0])
+			# stat2 = os_stat(self.current_directory + b[0][0])
 		except:
 			return 0
-		return cmp(b[0][1], a[0][1]) or cmp(stat2.st_ctime, stat1.st_ctime)
+		return stat1
 
 	def sortDate(self):
 		self.list.sort(self.byDateFunc)

That's because of this when I bypass try except/block:

Traceback (most recent call last):
  File "/usr/lib/enigma2/python/StartEnigma.py", line 223, in processDelay
    callback(*retval)
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/plugin.py", line 485, in SysExecution
    list = self.sortDate()
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/plugin.py", line 719, in sortDate
    list = self["filelist"].sortDate()
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/myFileList.py", line 359, in sortDate
    self.list.sort(key=self.byDateFunc)
  File "/usr/lib/enigma2/python/Plugins/Extensions/DreamExplorer/myFileList.py", line 352, in byDateFunc
    stat1 = os_stat(self.current_directory + a[0][0])
FileNotFoundError: [Errno 2] No such file or directory: '/hdd//hdd/.Trash/'

Return a string doesn't work either, must be instances of os.stat_result.

 

When the files exist, it works.


Edited by Beeker, 14 August 2022 - 11:17.

Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: OpenPLi-py3 #478 Beeker

  • PLi® Contributor
  • 1,477 posts

+198
Excellent

Posted 14 August 2022 - 16:21

Some start

https://github.com/O...9fffa8a82e6afc6


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: OpenPLi-py3 #479 HPPli

  • Senior Member
  • 1,882 posts

+36
Good

Posted 14 August 2022 - 16:25

Had that issue on the Solo 4K after the first flash, but havent seen it again after that. Never found out what the issue was.

 

Send me that wizard too, 4 times a fresh flash with the Vu+Duo4K gives the same results. No image on all FTA channels.



Re: OpenPLi-py3 #480 Beeker

  • PLi® Contributor
  • 1,477 posts

+198
Excellent

Posted 14 August 2022 - 16:52

Update dreamexplorer

https://github.com/O...commits/python3

 

Should be OK now.


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