Jump to content


Photo

OpenPLi-py3


  • Please log in to reply
1139 replies to this topic

Re: OpenPLi-py3 #701 Dimitrij

  • PLi® Core member
  • 10,262 posts

+347
Excellent

Posted 20 November 2022 - 16:33

 

Is it in feed ?

yes


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


Re: OpenPLi-py3 #702 ims

  • PLi® Core member
  • 13,764 posts

+214
Excellent

Posted 20 November 2022 - 16:42

 

 

Is it in feed ?

yes

 

I have only emailclient for IMAP ...


Kdo nic nedělá, nic nezkazí!

Re: OpenPLi-py3 #703 Dimitrij

  • PLi® Core member
  • 10,262 posts

+347
Excellent

Posted 21 November 2022 - 06:34

Help.

 

15:08:10.8284   File "/usr/lib/enigma2/python/Plugins/SystemPlugins/NumberZapExt/NumberZapExt.py", line 522, in printLabels
15:08:10.8292     self.setTitle(str(self.field) + (" ") + name)
15:08:10.8292 TypeError: can only concatenate str (not "bytes") to str

				if name == 'N/A':
					if not service is None:
						name = _("service not found")
					else:
						name = _("invalid channel number")
						self.action = self.getHotkeyAction(int(self.field))
						if self.action:
							name = _(ACTIONLIST[self.action]['title'])
							channel = _("Action:")
							bouquet = bqname = ""
							service = None

self.setTitle(str(self.field) + (" ") + name)
def getActions(xmlfile, hotkeys={}):
	result = {}
	try:
		import xml.etree.cElementTree
		root = xml.etree.cElementTree.parse(xmlfile).getroot()
	except:
		root = None
	if not root is None:
		for item in root.findall('action'):
			id = item.get('id')
			if id:
				result[id] = item.attrib.copy()
				result[id]['title'] = (result[id].get('title', '') or id.replace('_', ' ').title()).encode('UTF-8')
				result[id]['hotkey'] = int(result[id].get('hotkey', 0)) or hotkeys.get(id, 0)
				if result[id].get('type', '') in ('screen', 'code'):
					result[id]['args'] = item.text or ''
				result[id].pop('id')
	return result

ACTIONLIST = getActions('%s/actions.xml' % (PLUGIN_PATH), eval(config.plugins.NumberZapExt.hotkeys.value))

 

https://github.com/D...ended-NumberZap


Edited by Dimitrij, 21 November 2022 - 06:37.

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


Re: OpenPLi-py3 #704 ims

  • PLi® Core member
  • 13,764 posts

+214
Excellent

Posted 21 November 2022 - 12:24

@Dima - how can I simulate pass to this line ?

 

if self.action:
                            name = _(ACTIONLIST[self.action]['title']
<class 'dict'> {'infobar_extensions': {'weight': '10', 'title': b'Extensions Menu', 'type': 'code', 'hotkey': 0, 'args': 'self.showExtensionSelection()'}
 

 

'title' item in ACTIONLIST dictionary is bytes, In this case you must use there:

 

name = _(ACTIONLIST[self.action]['title'].decode())

or

name = _(str(ACTIONLIST[self.action]['title']))

 

 

 


Edited by ims, 21 November 2022 - 12:36.

Kdo nic nedělá, nic nezkazí!

Re: OpenPLi-py3 #705 Dimitrij

  • PLi® Core member
  • 10,262 posts

+347
Excellent

Posted 21 November 2022 - 14:41

 

@Dima - how can I simulate pass to this line ?

"Enable number hotkeys"


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


Re: OpenPLi-py3 #706 ims

  • PLi® Core member
  • 13,764 posts

+214
Excellent

Posted 21 November 2022 - 16:56

In NumberZapExt.py on line 62 - why this encode ? => bytes ?

 

result[id]['title'] = (result[id].get('title', '') or id.replace('_', ' ').title()).encode('UTF-8')

 

remove encode and it coud work without next changes...


Kdo nic nedělá, nic nezkazí!

Re: OpenPLi-py3 #707 Dimitrij

  • PLi® Core member
  • 10,262 posts

+347
Excellent

Posted 21 November 2022 - 18:31

In NumberZapExt.py on line 62 - why this encode ? => bytes ?

 

result[id]['title'] = (result[id].get('title', '') or id.replace('_', ' ').title()).encode('UTF-8')

 

remove encode and it coud work without next changes...

ver 1.22 - fix python3(str bytes)


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


Re: OpenPLi-py3 #708 display name

  • Senior Member
  • 626 posts

+26
Good

Posted 17 December 2022 - 18:32

Hi,

Positioner Setup crashes; can someone please test this ?

Thanks

 

 

MENU  →  Setup  →  Tuners & scanning  →  Positioner setup  →  Tune  →  OK
 
 
sourcedate=2022-12-13
branch=develop
rev=4c7457a
component=Enigma2
 
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/StartEnigma.py", line 223, in processDelay
    callback(*retval)
  File "/usr/lib/enigma2/python/Plugins/SystemPlugins/PositionerSetup/ui.py", line 798, in tune
  File "/usr/lib/enigma2/python/Components/TuneTest.py", line 14, in tune
TypeError: in method 'eDVBFrontendParametersSatellite_frequency_set', argument 2 of type 'unsigned int'
[ePyObject] (CallObject(<bound method Session.processDelay of <__main__.Session object at 0xb28726d0>>,()) failed)


Re: OpenPLi-py3 #709 WanWizard

  • PLi® Core member
  • 70,220 posts

+1,798
Excellent

Posted 17 December 2022 - 19:25

Can you do the same in debug mode, and then post the line starting with "[TuneTest] tuning to transponder with data..." ?


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: OpenPLi-py3 #710 ims

  • PLi® Core member
  • 13,764 posts

+214
Excellent

Posted 17 December 2022 - 21:14

Problem will be in "float" there on this line and this line.

 

There must be divide as  // 1000 (int) instead / 1000 (in py2 it is int, in py3 it is float)

 

I cannot test it now, my box with motor will recording long time.


Kdo nic nedělá, nic nezkazí!

Re: OpenPLi-py3 #711 display name

  • Senior Member
  • 626 posts

+26
Good

Posted 17 December 2022 - 22:43

Problem will be in "float" there on this line and this line.

 

There must be divide as  // 1000 (int) instead / 1000 (in py2 it is int, in py3 it is float)

 

I cannot test it now, my box with motor will recording long time.

Thanks, no more crash after changing  lines 1487, 1489 and 1669

 

defaultSat["frequency"] = frontendData.get("frequency", 0) // 1000

 
defaultSat["symbolrate"] = frontendData.get("symbol_rate", 0) // 1000
 

returnvalue = (transponder[1] // 1000, transponder[2] // 1000,


Edited by Amai, 17 December 2022 - 22:46.


Re: OpenPLi-py3 #712 ims

  • PLi® Core member
  • 13,764 posts

+214
Excellent

Posted 17 December 2022 - 22:50

there must be more changes ... I will fix it soon


Kdo nic nedělá, nic nezkazí!

Re: OpenPLi-py3 #713 WanWizard

  • PLi® Core member
  • 70,220 posts

+1,798
Excellent

Posted 17 December 2022 - 22:54

Fix committed.


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: OpenPLi-py3 #714 ims

  • PLi® Core member
  • 13,764 posts

+214
Excellent

Posted 17 December 2022 - 23:10

Next fix for Positioner commited too.

 

There must be fix for 'logfile' too ... I will see on it.


Kdo nic nedělá, nic nezkazí!

Re: OpenPLi-py3 #715 WanWizard

  • PLi® Core member
  • 70,220 posts

+1,798
Excellent

Posted 17 December 2022 - 23:14

Thanks! :thumbs-up:


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: OpenPLi-py3 #716 ims

  • PLi® Core member
  • 13,764 posts

+214
Excellent

Posted 17 December 2022 - 23:34

work with logfile is fixed too...


Kdo nic nedělá, nic nezkazí!

Re: OpenPLi-py3 #717 antrabe

  • Senior Member
  • 199 posts

0
Neutral

Posted 30 December 2022 - 19:09

kodi 19.4 can be installed from feed but doesnt run. Something is wrong?



Re: OpenPLi-py3 #718 rantanplan

  • PLi® Contributor
  • 1,857 posts

+87
Good

Posted 31 December 2022 - 17:19

kodi 19.4 can be installed from feed but doesnt run. Something is wrong?

And that is well known.
Unfortunately, the statement alone is no help.
What exactly happened would be important to know.
It builds and the principal installation is also intact.
But unfortunately there is no more information about what exactly happens then.
We simply need exact logs of installation and program calls, which then happens.
If that doesn't happen, then Kodi is certainly not part of the next newer version, since unfortunately it hasn't worked yet.



Re: OpenPLi-py3 #719 mike-nl

  • Member
  • 13 posts

0
Neutral

Posted 16 January 2023 - 14:46

openpli-develop ,the timeshift does not work automaticlly when the vuduo4k is restarted
Let's assume that you are watching the BBC channel , restart the receiver. After switching on, you will find that the timeshift does not work automaticlly on the same channel, but when you change it, it does.
regards


Re: OpenPLi-py3 #720 Tech

  • Forum Moderator
    PLi® Core member
  • 14,888 posts

+485
Excellent

Posted 16 January 2023 - 16:02

What do you mean by "but when you change it" ?

 

What do you change, the settings for the time-shift function or do you mean that it will work after you zapped to another channel?


Aan de rand van de afgrond is een stap voorwaarts niet altijd vooruitgang....

On the edge of the abyss, a step forward is not always progress....

Hardware: 2x Daily used Vu+ Ultimo 4K - Vu+ Duo 4K SE and a lot more.... - VisioSat BiBigsat - Jultec Unicable Multiswitch 4 positions: 19.2/23.5/28.2 East - Diseqc motorized flatdish antenna

Software : HomeBuild OpenPLi Develop and Scarthgap builds, local cards driven by OsCam

Press the Posted Image button on the buttom right of this message ;)

Have you tried our wiki yet? Many answers can be found in our OpenPLi wiki



20 user(s) are reading this topic

0 members, 20 guests, 0 anonymous users