←  [EN] Test Feedback

Forums

»

OpenPLi-py3

WanWizard's Photo WanWizard 10 Aug 2022

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.

Quote

littlesat's Photo littlesat 10 Aug 2022

Might be not there but why do you need it?
Quote

balkanac's Photo balkanac 11 Aug 2022

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

Quote

WanWizard's Photo WanWizard 11 Aug 2022

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

Quote

balkanac's Photo balkanac 11 Aug 2022

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

Quote

WanWizard's Photo WanWizard 11 Aug 2022

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

Quote

balkanac's Photo balkanac 11 Aug 2022

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

Quote

HPPli's Photo HPPli 13 Aug 2022

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?

 
Quote

littlesat's Photo littlesat 13 Aug 2022

Here image but with ultimo4k
Quote

HPPli's Photo HPPli 13 Aug 2022

Here image but with ultimo4k

 

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

Quote

littlesat's Photo littlesat 13 Aug 2022

No idea? Do the drivers load?
Quote

WanWizard's Photo WanWizard 13 Aug 2022

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.

Quote

foxbob's Photo foxbob 14 Aug 2022

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

Huevos's Photo Huevos 14 Aug 2022

 

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

Beeker's Photo Beeker 14 Aug 2022

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'

 

Quote

Huevos's Photo Huevos 14 Aug 2022

 

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

Beeker's Photo Beeker 14 Aug 2022

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

HPPli's Photo HPPli 14 Aug 2022

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.

Quote

Beeker's Photo Beeker 14 Aug 2022

Update dreamexplorer

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

 

Should be OK now.

Quote