Jump to content


Photo

OpenPLi-py3


  • Please log in to reply
1139 replies to this topic

Re: OpenPLi-py3 #681 Beeker

  • PLi® Contributor
  • 1,602 posts

+203
Excellent

Posted 4 November 2022 - 06:04

Gigablue and Uclan didn't need the -ipk file workaround- patch.

https://github.com/O...f50b05603f1e285

 

But need the -multiple times displayed - patch.

https://github.com/O...22f3e3abd4efdb0

 

With dm8000 and dm920 and VS1500(?) it's the other way around.

 

Have something in mind for first patch.

Still on TODO list.


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 #682 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 4 November 2022 - 09:19

Gigablue and Uclan didn't need the -ipk file workaround- patch.

https://github.com/O...f50b05603f1e285

 

With dm8000 and dm920 and VS1500(?) it's the other way around.

arch depending? python mimetypes doesn't recognize ipks as x-debian-package for some umnknown reason? (just a wild giuess)


True sarcasm doesn't need green font...

Re: OpenPLi-py3 #683 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 4 November 2022 - 09:36

The software management plugin does:

def filescan(**kwargs):
        from Components.Scanner import Scanner, ScanPath
        return \
                Scanner(mimetypes=["application/x-debian-package"],
                        paths_to_scan=[
                                        ScanPath(path="ipk", with_subdirs=True),
                                        ScanPath(path="", with_subdirs=False),
                                ],
                        name="Opkg",
                        description=_("Install extensions"),
                        openfnc=filescan_open, )


in fact all media scan activity is performed by external plugins (ancient) media player and software manager...

def filescan(**kwargs):
	from Components.Scanner import Scanner, ScanPath
	return [
		Scanner(mimetypes=["video/mpeg", "video/mp2t", "video/x-msvideo", "video/mkv", "video/x-ms-wmv", "video/x-matroska", "video/ogg", "video/dvd", "video/mp4", "video/avi", "video/divx", "video/x-mpeg", "video/x-flv", "video/quicktime", "video/x-ms-asf", "video/3gpp", "video/3gpp2", "application/vnd.rn-realmedia", "application/vnd.rn-realmedia-vbr", "video/mts"],
			paths_to_scan=[
					ScanPath(path="", with_subdirs=False),
					ScanPath(path="PRIVATE/AVCHD/BDMV/STREAM", with_subdirs=False),
				],
			name="Movie",
			description=_("Watch movies..."),
			openfnc=movielist_open,
		),
		Scanner(mimetypes=["video/x-vcd"],
			paths_to_scan=[
					ScanPath(path="mpegav", with_subdirs=False),
					ScanPath(path="MPEGAV", with_subdirs=False),
				],
			name="Video CD",
			description=_("View video CD..."),
			openfnc=filescan_open,
		),
		Scanner(mimetypes=["audio/mpeg", "audio/x-wav", "audio/dts", "audio/ogg", "audio/flac", "audio/mp4", "audio/x-ms-wma", "audio/ac3", "audio/x-matroska", "audio/x-aac", "audio/x-monkeys-audio"],
			paths_to_scan=[
					ScanPath(path="", with_subdirs=False),
				],
			name="Music",
			description=_("Play music..."),
			openfnc=filescan_open,
		),
		Scanner(mimetypes=["audio/x-cda"],
			paths_to_scan=[
					ScanPath(path="", with_subdirs=False),
				],
			name="Audio-CD",
			description=_("Play audio-CD..."),
			openfnc=audioCD_open,
		),

videos are opened in 'our' emebdded player, but audio files in obsolete mediaplayer

So, for now I'd suggest softwaremanager should probably be restored to image, until someone will embed functionality of linking scanned files to our player / opkg installer in the image (some small plugin is and option?)


True sarcasm doesn't need green font...

Re: OpenPLi-py3 #684 Dimitrij

  • PLi® Core member
  • 10,262 posts

+347
Excellent

Posted 4 November 2022 - 15:19

My plugin enigma2-plugin-extensions-installipk_0.5_all.ipk

def filescan_open(list, session, **kwargs):
	filelist = [x.path for x in list]
	session.open(OpkgInstaller, filelist)

def filescan(**kwargs):
	return \
		Scanner(mimetypes = ["application/x-debian-package"],
			paths_to_scan =
				[
					ScanPath(path = "ipk", with_subdirs = True),
					ScanPath(path = "", with_subdirs = False),
				],
			name = "Ipk Install",
			description = _("Install package ipk"),
			openfnc = filescan_open, )

 


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


Re: OpenPLi-py3 #685 WanWizard

  • PLi® Core member
  • 70,220 posts

+1,798
Excellent

Posted 4 November 2022 - 19:36

So, for now I'd suggest softwaremanager should probably be restored to image, until someone will embed functionality of linking scanned files to our player / opkg installer in the image (some small plugin is and option?)

 

Why? Those that need it can install it from the feed?


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 #686 WanWizard

  • PLi® Core member
  • 70,220 posts

+1,798
Excellent

Posted 4 November 2022 - 19:37

My plugin enigma2-plugin-extensions-installipk_0.5_all.ipk

 

Available in the feed? If so, problem solved.


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 #687 mrvica

  • Senior Member
  • 1,258 posts

+86
Good

Posted 4 November 2022 - 19:46

https://forums.openp...dpost&p=1451141



Re: OpenPLi-py3 #688 nikos100

  • Senior Member
  • 25 posts

0
Neutral

Posted 4 November 2022 - 22:26

good evening, can someone fix it? Develop. for updates to come out



Re: OpenPLi-py3 #689 littlesat

  • PLi® Core member
  • 57,062 posts

+698
Excellent

Posted 5 November 2022 - 07:46

It should be standard in the image…. Usb insert and the. Ipg install.

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


Re: OpenPLi-py3 #690 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 5 November 2022 - 14:45

 

So, for now I'd suggest softwaremanager should probably be restored to image, until someone will embed functionality of linking scanned files to our player / opkg installer in the image (some small plugin is and option?)

 

Why? Those that need it can install it from the feed?

 

because now you can't simply install ipk from usb, and only few know that you necessarily have to have it* installed it to make make this handy feature work?

*either softwaremanager or Dimitrij's installipk - a lighter alternative


True sarcasm doesn't need green font...

Re: OpenPLi-py3 #691 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 5 November 2022 - 14:52

 

My plugin enigma2-plugin-extensions-installipk_0.5_all.ipk

def filescan_open(list, session, **kwargs):
	filelist = [x.path for x in list]
	session.open(OpkgInstaller, filelist)

def filescan(**kwargs):
	return \
		Scanner(mimetypes = ["application/x-debian-package"],
			paths_to_scan =
				[
					ScanPath(path = "ipk", with_subdirs = True),
					ScanPath(path = "", with_subdirs = False),
				],
			name = "Ipk Install",
			description = _("Install package ipk"),
			openfnc = filescan_open, )

yup, installing your plugin also restores "install scanned ipk form usb" feature

 

one thing, could you consider to output installation execution log in pip window, and not in separate popup? now you need to close popup first and then pip (see screnshots from below - with software manager and installipk)

Attached Files


True sarcasm doesn't need green font...

Re: OpenPLi-py3 #692 WanWizard

  • PLi® Core member
  • 70,220 posts

+1,798
Excellent

Posted 5 November 2022 - 15:27

It is becoming urgent to integratie the few pieces of the software management plugin that are still relevant into the image, so it can be retired,


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 #693 littlesat

  • PLi® Core member
  • 57,062 posts

+698
Excellent

Posted 5 November 2022 - 15:34

As far I remember we had a hotplug for usb insertion that scanners for usb…. This should be fixed when it is not working in py3. As far I remember this was not part of a software management plug-in.


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


Re: OpenPLi-py3 #694 Dimitrij

  • PLi® Core member
  • 10,262 posts

+347
Excellent

Posted 19 November 2022 - 15:56

Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Components/PluginComponent.py", line 55, in readPluginList
  File "/usr/lib/enigma2/python/Tools/Import.py", line 2, in my_import
  File "/usr/lib/enigma2/python/Plugins/SystemPlugins/vps/plugin.py", line 3, in <module>
ModuleNotFoundError: No module named 'Vps'
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Components/PluginComponent.py", line 55, in readPluginList
  File "/usr/lib/enigma2/python/Tools/Import.py", line 2, in my_import
  File "/usr/lib/enigma2/python/Plugins/SystemPlugins/BluetoothSetup/plugin.py", line 2, in <module>
    from .bt_setup import BluetoothSetupScreen
  File "/usr/lib/enigma2/python/Plugins/SystemPlugins/BluetoothSetup/bt_setup.py", line 12, in <module>
    from .bt import pybluetooth_instance
  File "/usr/lib/enigma2/python/Plugins/SystemPlugins/BluetoothSetup/bt.py", line 33, in <module>
    from . import gbbt
  File "/usr/lib/enigma2/python/Plugins/SystemPlugins/BluetoothSetup/gbbt.py", line 28, in <module>
    _gbbt = swig_import_helper()
  File "/usr/lib/enigma2/python/Plugins/SystemPlugins/BluetoothSetup/gbbt.py", line 24, in swig_import_helper
    _mod = imp.load_module('_gbbt', fp, pathname, description)
  File "/usr/lib/python3.9/imp.py", line 242, in load_module
  File "/usr/lib/python3.9/imp.py", line 342, in load_dynamic
ImportError: dynamic module does not define module export function (PyInit__gbbt)

 


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


Re: OpenPLi-py3 #695 ims

  • PLi® Core member
  • 13,764 posts

+214
Excellent

Posted 19 November 2022 - 16:23

@Dimo ... I will fix VPS


Kdo nic nedělá, nic nezkazí!

Re: OpenPLi-py3 #696 Dimitrij

  • PLi® Core member
  • 10,262 posts

+347
Excellent

Posted 19 November 2022 - 17:31

@Dimo ... I will fix VPS

Work.

When apply your two patch :) .


Edited by Dimitrij, 19 November 2022 - 17:32.

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


Re: OpenPLi-py3 #697 Dimitrij

  • PLi® Core member
  • 10,262 posts

+347
Excellent

Posted 20 November 2022 - 14:17

 

Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/StartEnigma.py", line 505, in runScreenTest
    runReactor()
  File "/usr/lib/enigma2/python/StartEnigma.py", line 107, in runReactor
    reactor.run(installSignalHandlers=False)
  File "/usr/lib/python3.9/site-packages/twisted/internet/base.py", line 1423, in run
    
  File "/usr/lib/python3.9/site-packages/twisted/internet/base.py", line 1433, in mainLoop
    
--- <exception caught here> ---
  File "/usr/lib/python3.9/site-packages/twisted/internet/base.py", line 999, in runUntilCurrent
    
  File "/usr/lib/python3.9/site-packages/twisted/internet/protocol.py", line 427, in reconnector
    
  File "/usr/lib/python3.9/site-packages/twisted/internet/base.py", line 1264, in connect
    
builtins.RuntimeError: can't connect in this state

 


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


Re: OpenPLi-py3 #698 ims

  • PLi® Core member
  • 13,764 posts

+214
Excellent

Posted 20 November 2022 - 14:48

how simulate it ?


Kdo nic nedělá, nic nezkazí!

Re: OpenPLi-py3 #699 Dimitrij

  • PLi® Core member
  • 10,262 posts

+347
Excellent

Posted 20 November 2022 - 15:17

how simulate it ?

 new develop image

install plugins emailclient/tmbd/simplerss


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


Re: OpenPLi-py3 #700 ims

  • PLi® Core member
  • 13,764 posts

+214
Excellent

Posted 20 November 2022 - 15:27

 

how simulate it ?

 new develop image

install plugins emailclient/tmbd/simplerss

 

Is it in feed ?


Edited by ims, 20 November 2022 - 15:27.

Kdo nic nedělá, nic nezkazí!


19 user(s) are reading this topic

0 members, 19 guests, 0 anonymous users