Superb quality and spec AB-Com PULSe 4K SE. Crazy offer! Only £99! FREE UK DELIVERY! 4K UHD, Enigma 2, Multiboot 4 images & more!...
Superb quality and spec AB-Com PULSe 4K Rev II Twin Satellite tuner only £149! FREE UK DELIVERY! 4K UHD, Enigma 2, SATA HDD facility, Multiboot 4 images & more!...

[ABM-MISC] sat and cable custom mix updater plugin (BETA)

Status
Not open for further replies.
putting the sh in tmp and running the above commend with talnet I get sh: dsayers.sh: No such file or directory
 
Is the script actually named dsayers.sh

Also check that the script is in Unix/linux format not windows. Within Notepad++, it's in bottom right hand side what format it's in. It's possible it's in windows format so if that's true just click on windows and you can change to unit/linux.
 
Still getting sh: dsayers.sh: No such file or directory

I used the preinst on post 131 and created the ipk then renamed abm and installed the ipk and no errors occurred it also works with the correct name to abm. To be honest im confused as to why dizzler had an error because I already have try and except in the py when it attempts to download the xml file.
 
Try the command cd /tmp before issuing the sh command.

sh dsayers.sh means run the shell script found in the file dsayers.sh

There isn't a file called dsayers.sh in the current directory (probably root), it's in /tmp

Another way would be sh /tmp/dsayers.sh which would work whatever directory you were currently in.
 
Last edited:
Thanks I'll have another look at this over the weekend

@dizzler can you confirm that you tried ipk 2.9 because that already has try and except within the pyo file so it should not attempt to download the xml if the path doesn't exist or it cannot connect to the server. If you tried 2.8 that's probably why.

I would still like to have the plugin not install if autobouqetesmaker doesn't exist.
 
Try the command cd /tmp before issuing the sh command.

sh dsayers.sh means run the shell script found in the file dsayers.sh

There isn't a file called dsayers.sh in the current directory (probably root), it's in /tmp

Another way would be sh /tmp/dsayers.sh which would work whatever directory you were currently in.

Thanks ive just tried this with talnet and using sh /tmp/dsayers.sh works so will see how it works with preinst over the weekend
 
so something like this should do

Have the ipk in tmp folder and run the script within a separate py

Code:
#!/bin/sh
echo "Checking for AutoBouguetsMaker in the system..."
if [ -d /usr/lib/enigma2/python/Plugins/SystemPlugins/AutoBouquetsMaker ] ; then
	echo "AutoBouquetsMaker found."
	echo
	echo "Checking for an older version of customupdater in the system..."
	if [ -d /usr/lib/enigma2/python/Plugins/Extensions/customupdater ] ; then
		rm -rf /usr/lib/enigma2/python/Plugins/Extensions/customupdater > /dev/null 2>&1
		echo "An older version of customupdater was found and removed"
	else
		echo "customupdater was not found in the system"
	fi
	echo
	echo "Proceeding to installation..."
	opkg install /tmp/enigma2-plugin-extensions-customupdater_2.9_all.ipk
	exit 0
else
	echo "AutoBouguetsMaker was not found in the system"
	echo
	echo "Please install AutoBouguetsMaker before installing the plugin"
	echo
	read -n 1 -s -p "Press any key to continue..."
	echo
	exit 1
fi
]
 
In theory it should work fine in your preinst script but just make sure that the script file is a linux/unix and not windows format (default).

The plugin should hopefully read the return code and if exit 0 then everything ok so install plugin but on exit 1 it should error out and hopefully not install plugin.
 
So would I be best having opkg uninstall under echo "Please install AutoBouguetsMaker before installing the plugin"
 
So would I be best having opkg uninstall under echo "Please install AutoBouguetsMaker before installing the plugin"
To uninstall your plugin? In theory, with exit code 1 it shouldn't actually continue and exit out. Test it
 
Ok I'll have a look over the weekend stuck with silly hours so won't get chance till the weekend thanks

Sent from my SM-G925F using Tapatalk
 
Code:
https://raw.githubusercontent.com/davesayers2014/AutoBouquetsMaker/master/AutoBouquetsMaker/custom/sat_282_sky_uk_CustomMix.xml
How often is that file updated. It is dated: <!-- DATE 20170201 -->

BTW, I still don't understand why you lot are messing around with bash scripts.
 
Code:
https://raw.githubusercontent.com/davesayers2014/AutoBouquetsMaker/master/AutoBouquetsMaker/custom/sat_282_sky_uk_CustomMix.xml
How often is that file updated. It is dated: <!-- DATE 20170201 -->

BTW, I still don't understand why you lot are messing around with bash scripts.

I've done the format incorrectly it's meant to be 01/02/2017 even though I last edited the file 11 days ago to delete channel 276 AMC from BT HD the file is updated when needed. The script is part of the preinst what I'm wanting to do is stop the plugin installing if autobouqetesmaker doesn't exist
 
Thanks will check it tomorrow morning. What amendments have you made

Sent from my SM-G925F using Tapatalk

Edit unpacked it before going to work looks great thank you Huevos
 
Last edited:
First crash

Code:
06:53:07.5608 { D }
 Traceback (most recent call last):
06:53:07.5611 { D }   File "/usr/lib/enigma2/python/Components/ActionMap.py", line 68, in action
06:53:07.5617 { D }   File "/usr/lib/enigma2/python/Components/ActionMap.py", line 48, in action
06:53:07.5621 { D }   File "/usr/lib/enigma2/python/Screens/Menu.py", line 77, in okbuttonClick
06:53:07.5625 { D }   File "/usr/lib/enigma2/python/Tools/BoundFunction.py", line 9, in __call__
06:53:07.5631 { D }   File "/usr/lib/enigma2/python/Plugins/SystemPlugins/DsayersCustomMixImporter/plugin.py", line 284, in DsayersCustomMixImporterMain
06:53:07.5647 { D }     session.open(DsayersCustomMixImporterScreen, 'dsayerscustommiximporter', 'SystemPlugins/DsayersCustomMixImporter', menu_path, PluginLanguageDomain)
06:53:07.5650 { D }   File "/usr/lib/enigma2/python/mytest.py", line 326, in open
06:53:07.5665 { D }     dlg = self.current_dialog = self.instantiateDialog(screen, *arguments, **kwargs)
06:53:07.5669 { D }   File "/usr/lib/enigma2/python/mytest.py", line 264, in instantiateDialog
06:53:07.5681 { D }     return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop)
06:53:07.5684 { D }   File "/usr/lib/enigma2/python/mytest.py", line 286, in doInstantiateDialog
06:53:07.5696 { D }     dlg = screen(self, *arguments, **kwargs)
06:53:07.5699 { D }   File "/usr/lib/enigma2/python/Plugins/SystemPlugins/DsayersCustomMixImporter/plugin.py", line 53, in __init__
06:53:07.5707 { D }     Setup.__init__(self, session, setup, plugin, menu_path, PluginLanguageDomain)
06:53:07.5720 { D } TypeError: __init__() takes at most 4 arguments (6 given)
06:53:07.5729 [ E ] python/python.cpp:209 call (PyObject_CallObject(<bound method NumberActionMap.action of <Components.ActionMap.NumberActionMap instance at 0x6ef82fa8>>,('OkCancelActions', 'ok')) failed)
]]>

The crash happens as soon as I choose Dsayers CustomMIX


Debug log

View attachment Enigma2-debug-19700101_01-00-25pjjoc.log
 
Last edited:
If I delete line 53 I get

Code:
07:20:18.8417 { D } 
Traceback (most recent call last):
07:20:18.8419 { D }   File "/usr/lib/enigma2/python/Components/ActionMap.py", line 68, in action
07:20:18.8425 { D }   File "/usr/lib/enigma2/python/Components/ActionMap.py", line 48, in action
07:20:18.8429 { D }   File "/usr/lib/enigma2/python/Screens/Menu.py", line 77, in okbuttonClick
07:20:18.8433 { D }   File "/usr/lib/enigma2/python/Tools/BoundFunction.py", line 9, in __call__
07:20:18.8437 { D }   File "/usr/lib/enigma2/python/Plugins/SystemPlugins/DsayersCustomMixImporter/plugin.py", line 283, in DsayersCustomMixImporterMain
07:20:18.8463 { D }     session.open(DsayersCustomMixImporterScreen, 'dsayerscustommiximporter', 'SystemPlugins/DsayersCustomMixImporter', menu_path, PluginLanguageDomain)
07:20:18.8468 { D }   File "/usr/lib/enigma2/python/mytest.py", line 326, in open
07:20:18.8482 { D }     dlg = self.current_dialog = self.instantiateDialog(screen, *arguments, **kwargs)
07:20:18.8485 { D }   File "/usr/lib/enigma2/python/mytest.py", line 264, in instantiateDialog
07:20:18.8497 { D }     return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop)
07:20:18.8499 { D }   File "/usr/lib/enigma2/python/mytest.py", line 293, in doInstantiateDialog
07:20:18.8511 { D }     dlg.applySkin()
07:20:18.8514 { D }   File "/usr/lib/enigma2/python/Components/GUISkin.py", line 87, in applySkin
07:20:18.8519 { D }   File "/usr/lib/enigma2/python/Components/GUISkin.py", line 75, in getTitle
07:20:18.8526 { D } KeyError: 'Title'
07:20:18.8529 [ E ] python/python.cpp:209 call (PyObject_CallObject(<bound method NumberActionMap.action of <Components.ActionMap.NumberActionMap instance at 0x6f0ab210>>,('OkCancelActions', 'ok')) failed)
]]>
 
Openatv 6.0

Sent from my SM-G925F using Tapatalk
 
Status
Not open for further replies.

OpenViX Feeds Status

Back
Top