PDA

View Full Version : Sundtek control center python 3



dsayers
05-06-21, 14:39
These are files ive changed for python 3 on openatv 6.5

Please note these are py3 only I havent had chance to look at py2 compatiblity. Install IPK from here http://www.sundtek.de/media/enigma2-plugin-extensions-sundtekcontrolcenter_current_all.ipk . Backup existing files first then send files to to \usr\lib\enigma2\python\Plugins\Extensions\Sundtek ControlCenter.


Ive created a ticket for Sundtek to update the plugin for py3/2

twol
06-06-21, 22:10
These are files ive changed for python 3 on openatv 6.5

Please note these are py3 only I havent had chance to look at py2 compatiblity. Install IPK from here http://www.sundtek.de/media/enigma2-plugin-extensions-sundtekcontrolcenter_current_all.ipk . Backup existing files first then send files to to \usr\lib\enigma2\python\Plugins\Extensions\Sundtek ControlCenter.


Ive created a ticket for Sundtek to update the plugin for py3/2

Thanks for doing this and posting

ccs
07-06-21, 09:43
These are files ive changed for python 3 on openatv 6.5

Please note these are py3 only I havent had chance to look at py2 compatiblity. Install IPK from here http://www.sundtek.de/media/enigma2-plugin-extensions-sundtekcontrolcenter_current_all.ipk . Backup existing files first then send files to to \usr\lib\enigma2\python\Plugins\Extensions\Sundtek ControlCenter.


Ive created a ticket for Sundtek to update the plugin for py3/2

Crashes when selecting "Install or Update sundtek Driver" running P3 image.


09:37:00.7446 Traceback (most recent call last):
09:37:00.7447 File "/usr/lib/enigma2/python/StartEnigma.py", line 252, in processDelay
09:37:00.7453 callback(*retval)
09:37:00.7454 File "/usr/lib/enigma2/python/Plugins/Extensions/SundtekControlCenter/SundtekControlCenter.py", line 538, in thismenuCallback
09:37:00.7465 ret and ret[1]()
09:37:00.7466 File "/usr/lib/enigma2/python/Plugins/Extensions/SundtekControlCenter/SundtekControlCenter.py", line 809, in checkdriverversion
09:37:00.7479 match = pattern.search(netdriver)
09:37:00.7480 TypeError: cannot use a string pattern on a bytes-like object
09:37:00.7481 [ePyObject] (CallObject(<bound method Session.processDelay of <__main__.Session object at 0xb19cba48>>,()) failed)
09:37:04.3195 [gRC] main thread is non-idle! display spinner!
09:37:09.7800 [eEPGChannelData] schedule finished(1623055029)

dsayers
07-06-21, 10:53
Oops I don't think I tested update drivers just installed plugin to run my tuner. I don't have ATV 6.5 on my vu anymore I just wanted to do some testing on py3.

Edit I think it asks to auto install so I would have had the crash. I'll reload ATV 6.5 and test when I get chance.

twol
07-06-21, 11:00
@ccs .......try this change:

ccs
07-06-21, 11:15
@ccs .......try this change:

Cheers, now working fine, loaded the driver, tuner configured and now recording a programme. :)

dsayers
07-06-21, 11:23
This might work for py2/py3 compatibly



# Python 2 and 3: easiest option
from future.standard_library import install_aliases
install_aliases()

from urllib.parse import urlparse, urlencode
from urllib.request import urlopen, Request
from urllib.error import HTTPError


http://python-future.org/compatible_idioms.html?highlight=urllib#urllib-module

twol
07-06-21, 12:02
This might work for py2/py3 compatibly



# Python 2 and 3: easiest option
from future.standard_library import install_aliases
install_aliases()

from urllib.parse import urlparse, urlencode
from urllib.request import urlopen, Request
from urllib.error import HTTPError


http://python-future.org/compatible_idioms.html?highlight=urllib#urllib-module
handled in code in post #5

dsayers
07-06-21, 13:13
I noticed version in feeds is higher sundtekcontrolcenter_version = "20200915-2" but in the link in the first post its sundtekcontrolcenter_version = "20161212-2"

ccs
07-06-21, 13:46
Maybe this helps.....


http://sundtek.de/media/

dsayers
07-06-21, 13:52
Maybe this helps.....


http://sundtek.de/media/

Thats where the current ipk link comes from and the one above current is 1.4.1-20150628-r1

Twols edit works fine anyway in both py2/py3 ill leave it to sundtek to update the plugin.

ccs
07-06-21, 13:53
I noticed version in feeds is higher sundtekcontrolcenter_version = "20200915-2" but in the link in the first post its sundtekcontrolcenter_version = "20161212-2"

Yes my et10k.P2 is using 20200915-2, but the vu.P3 shows as 20161212-2.

dsayers
07-06-21, 13:57
Yes my et10k.P2 is using 20200915-2, but the vu.P3 shows as 20161212-2.

I dont think theyve updated to latest version on the website tbh

ccs
07-06-21, 14:13
Latest is here.....


https://github.com/oe-alliance/3rdparty-plugins/blob/master/enigma2-plugin-extensions-sundtekcontrolcenter_20200915-2_all.ipk

ccs
07-06-21, 14:31
I've just reinstalled previous post after reflashing, and it still says 20161212-2.

Line 107 of SundtekControlCenter.py has it hardwired in.....


## version string ################################################## #######

sundtekcontrolcenter_version = "20161212-2"
testOK = None

################################################## #########################

ccs
07-06-21, 15:43
There's an even newer Version "20210221-2" add support automatic detection second tuner.

No idea who it belongs to.



https://github.com/Dima73/enigma2-plugin-extensions-sundtekcontrolcenter/commit/108224e2cecc04c959c2d0ce3517091da08c0d92#diff-7c9a301e06b54bdce579a009028e5d86e9b9b11e8bb5d90fe8 3e0ec05c1cdffd

dsayers
07-06-21, 15:56
The urllib checks dont need adding I ran the py though a converter when I made the first post, it just uses import urllib.

This time I manauly edited version on feeds I just edited the print statements.

This seems to work for PY2/PY3 for me, What I did notice that it doesnt seem to detect remote driver version when choosing Install or Update sundtek Driver on PY3 it shows latest sundtek driver version: n/a but it does on PY2. It still downloads the driver.

twol
07-06-21, 18:00
The urllib checks dont need adding I ran the py though a converter when I made the first post, it just uses import urllib.

This time I manauly edited version on feeds I just edited the print statements.

This seems to work for PY2/PY3 for me, What I did notice that it doesnt seem to detect remote driver version when choosing Install or Update sundtek Driver on PY3 it shows latest sundtek driver version: n/a but it does on PY2. It still downloads the driver.
Version is I think because you need to change it to string (six.ensure_str) from binary (after urlopen) with py3
- that handles py2 & py3

For some reason the version checking etc is repeated in 2 different sections of code -would be better to change it to a callable routine. Also the version info should be updated after a successful download.

I updated your zipped version if you want to try, just let me know

dsayers
07-06-21, 18:16
Version is I think because you need to change it to string (six.ensure_str) from binary (after urlopen) with py3
- that handles py2 & py3

For some reason the version checking etc is repeated in 2 different sections of code -would be better to change it to a callable routine. Also the version info should be updated after a successful download.

I updated your zipped version if you want to try, just let me know

I've gone back to vix 5.4.012. I only wanted to test custommix on ATV 6.5 py3 but I couldn't without sundtek control center plugin working. I'll leave it for sundtek to update.

Upload it here if you want and I'll add a link to my support ticket for sundtek to check. Thanks

ccs
07-06-21, 21:14
There's an even newer Version "20210221-2" add support automatic detection second tuner.

No idea who it belongs to.



https://github.com/Dima73/enigma2-plugin-extensions-sundtekcontrolcenter/commit/108224e2cecc04c959c2d0ce3517091da08c0d92#diff-7c9a301e06b54bdce579a009028e5d86e9b9b11e8bb5d90fe8 3e0ec05c1cdffd

Probably hidden away somewhere in here....


https://github.com/OpenPLi/openpli-oe-core/pull/876

Huevos
16-06-21, 21:50
I've gone back to vix 5.4.012. I only wanted to test custommix on ATV 6.5 py3 but I couldn't without sundtek control center plugin working. I'll leave it for sundtek to update.

Upload it here if you want and I'll add a link to my support ticket for sundtek to check. ThanksIs there any sign of Sundtek fixing this.

dsayers
16-06-21, 23:25
Is there any sign of Sundtek fixing this.

I haven't had a reply back to my ticket. Last week they said they was busy with something else and said they will check Tuesday

dsayers
20-06-21, 09:43
Version is I think because you need to change it to string (six.ensure_str) from binary (after urlopen) with py3
- that handles py2 & py3

For some reason the version checking etc is repeated in 2 different sections of code -would be better to change it to a callable routine. Also the version info should be updated after a successful download.

I updated your zipped version if you want to try, just let me know

Hi I'm testing python 3 openvix image if you still have it can you post your updated version or pm me it please?

My version seems to crash on vix
< 277.0768> Traceback (most recent call last):
< 277.0768> File "/usr/lib/enigma2/python/StartEnigma.py", line 252, in processDelay
< 277.0775> callback(*retval)
< 277.0775> File "/usr/lib/enigma2/python/Plugins/Extensions/SundtekControlCenter/SundtekControlCenter.py", line 556, in thismenuCallback
< 277.0786> ret and ret[1]()
< 277.0786> File "/usr/lib/enigma2/python/Plugins/Extensions/SundtekControlCenter/SundtekControlCenter.py", line 848, in checkdriverversion
< 277.0799> self.session.openWithCallback(self.disclaimer, MessageBox, _("latest sundtek driver version:\n")+netdriver+"\n"+_("\nyour driver version:\n")+installeddriver+_("\nUpdate to current sundtek driver version?"), MessageBox.TYPE_YESNO)
< 277.0799> File "/usr/lib/enigma2/python/StartEnigma.py", line 332, in openWithCallback
< 277.0805> dlg = self.open(screen, *arguments, **kwargs)
< 277.0805> File "/usr/lib/enigma2/python/StartEnigma.py", line 342, in open
< 277.0811> dlg = self.current_dialog = self.instantiateDialog(screen, *arguments, **kwargs)
< 277.0811> File "/usr/lib/enigma2/python/StartEnigma.py", line 279, in instantiateDialog
< 277.0815> return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop)
< 277.0816> File "/usr/lib/enigma2/python/StartEnigma.py", line 309, in doInstantiateDialog
< 277.0820> dlg.applySkin()
< 277.0821> File "/usr/lib/enigma2/python/Screens/Screen.py", line 246, in applySkin
< 277.0825> self.createGUIScreen(self.instance, self.desktop)
< 277.0826> File "/usr/lib/enigma2/python/Screens/Screen.py", line 274, in createGUIScreen
< 277.0830> exec(f, globals(), locals()) # Python 3
< 277.0830> File "skin applet", line 49, in <module>
< 277.0833> File "/usr/lib/enigma2/python/enigma.py", line 1211, in __init__
< 277.0850> _enigma.ePoint_swiginit(self, _enigma.new_ePoint(*args))
< 277.0851> TypeError: in method 'new_ePoint', argument 1 of type 'int'
Additional information:
Wrong number or type of arguments for overloaded function 'new_ePoint'.
Possible C/C++ prototypes are:
ePoint::ePoint()
ePoint::ePoint(int,int)
< 277.0851>
< 277.0852> [ePyObject] (CallObject(<bound method Session.processDelay of <__main__.Session object at 0xb0a57f28>>,()) failed)

Edit this seems to crash on various screens including image manager then choosing a backup

I think this was a skin error using default skin seems ok

twol
20-06-21, 10:15
I will have to look not sure if I kept my updated version… can you post me the version you are currently using - either I will update or if I find the other will run a compare and post back

..or are using code in post #17?

dsayers
20-06-21, 10:18
I will have to look not sure if I kept my updated version… can you post me the version you are currently using - either I will update or if I find the other will run a compare and post back

..or are using code in post #17?

It was this version https://www.world-of-satellite.com/showthread.php?64409-Sundtek-control-center-python-3&p=514446&viewfull=1#post514446 the crash is a skin issue

twol
20-06-21, 10:36
Hi I'm testing python 3 openvix image if you still have it can you post your updated version or pm me it please?

My version seems to crash on vix
< 277.0768> Traceback (most recent call last):
< 277.0768> File "/usr/lib/enigma2/python/StartEnigma.py", line 252, in processDelay
< 277.0775> callback(*retval)
< 277.0775> File "/usr/lib/enigma2/python/Plugins/Extensions/SundtekControlCenter/SundtekControlCenter.py", line 556, in thismenuCallback
< 277.0786> ret and ret[1]()
< 277.0786> File "/usr/lib/enigma2/python/Plugins/Extensions/SundtekControlCenter/SundtekControlCenter.py", line 848, in checkdriverversion
< 277.0799> self.session.openWithCallback(self.disclaimer, MessageBox, _("latest sundtek driver version:\n")+netdriver+"\n"+_("\nyour driver version:\n")+installeddriver+_("\nUpdate to current sundtek driver version?"), MessageBox.TYPE_YESNO)
< 277.0799> File "/usr/lib/enigma2/python/StartEnigma.py", line 332, in openWithCallback
< 277.0805> dlg = self.open(screen, *arguments, **kwargs)
< 277.0805> File "/usr/lib/enigma2/python/StartEnigma.py", line 342, in open
< 277.0811> dlg = self.current_dialog = self.instantiateDialog(screen, *arguments, **kwargs)
< 277.0811> File "/usr/lib/enigma2/python/StartEnigma.py", line 279, in instantiateDialog
< 277.0815> return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop)
< 277.0816> File "/usr/lib/enigma2/python/StartEnigma.py", line 309, in doInstantiateDialog
< 277.0820> dlg.applySkin()
< 277.0821> File "/usr/lib/enigma2/python/Screens/Screen.py", line 246, in applySkin
< 277.0825> self.createGUIScreen(self.instance, self.desktop)
< 277.0826> File "/usr/lib/enigma2/python/Screens/Screen.py", line 274, in createGUIScreen
< 277.0830> exec(f, globals(), locals()) # Python 3
< 277.0830> File "skin applet", line 49, in <module>
< 277.0833> File "/usr/lib/enigma2/python/enigma.py", line 1211, in __init__
< 277.0850> _enigma.ePoint_swiginit(self, _enigma.new_ePoint(*args))
< 277.0851> TypeError: in method 'new_ePoint', argument 1 of type 'int'
Additional information:
Wrong number or type of arguments for overloaded function 'new_ePoint'.
Possible C/C++ prototypes are:
ePoint::ePoint()
ePoint::ePoint(int,int)
< 277.0851>
< 277.0852> [ePyObject] (CallObject(<bound method Session.processDelay of <__main__.Session object at 0xb0a57f28>>,()) failed)

Edit this seems to crash on various screens including image manager then choosing a backup

I think this was a skin error using default skin seems ok
So which skin? .. and which py3 image version are you using that looks like an old skin issue if 1080

Sundtek .... try this ....

dsayers
20-06-21, 10:46
It was vskin 1080 it crashed on various yes/no screens I'll report it to KiddaC as he hasn't updated that skin for a while.

The py3 version is the vix test version on forum

For the SundtekControlCenter.py it has a tab/spacing error on line 803. I'll have a look when I get the laptop on. Thanks

dsayers
20-06-21, 11:05
Sundtek .... try this ....


That solved the Sundtek driver remote version I just needed to edit line 803. thanks.

twol
20-06-21, 11:05
It was vskin 1080 it crashed on various yes/no screens I'll report it to KiddaC as he hasn't updated that skin for a while.

The py3 version is the vix test version on forum

For the SundtekControlCenter.py it has a tab/spacing error on line 803. I'll have a look when I get the laptop on. Thanksupdate ...##### tabs!

dsayers
20-06-21, 12:08
update ...##### tabs!

That worked. Thanks

dsayers
24-06-21, 20:28
Sundtek have been in touched then I noticed an issue with the Check for a newer version of the plugin. It was saying no internet connection and they fixed it. So here is the final version that should hopefully work on PY2/3


They said they will update the version on github

maxben
25-06-21, 19:34
Installed this ok on my AX61 but the bouquet + button and install/update driver from menu does nothing.

The driver installed from save settings on green button which then offers the option to install drivers.

dsayers
25-06-21, 20:31
Installed this ok on my AX61 but the bouquet + button and install/update driver from menu does nothing.

The driver installed from save settings on green button which then offers the option to install drivers.

Try this version by Sundtek. Bouquet + works fine on py3


https://github.com/Dima73/enigma2-plugin-extensions-sundtekcontrolcenter/blob/master/enigma2-plugin-extensions-sundtekcontrolcenter_20210624-2_all.ipk

maxben
25-06-21, 21:37
Thanks, that's sorted it.

ulas1961
13-12-22, 13:18
hi.
plesae menüsort5 py3

thx

Huevos
14-12-22, 18:13
hi.
plesae menüsort5 py3

thx
Menu sorting is built-in to ViX. No need for plugins.