Jump to content


Photo

Webcam viewer crashes on startup.

webcam

  • Please log in to reply
8 replies to this topic

#1 Loui (PD1LOI)

  • Senior Member
  • 4,589 posts

+146
Excellent

Posted 8 October 2023 - 09:23

I installed webcam viewer, but the plugin crashed as soon as I opened it.

Attached Files



Re: Webcam viewer crashes on startup. #2 Frenske

  • Forum Moderator
    PLi® Core member
  • 27,487 posts

+397
Excellent

Posted 8 October 2023 - 10:14

Net ook even getest op mijn Ultimo 4k met zowel de laatste NB alsook met de laatste RC9 en kan het issue bevestigen.

Geen idee of dit gerelateerd is aan de conversie van Python 2 naar 3.

 

Just tested on my Ultimo 4K with the latest NB and the latest RC 9.0 and can confirm this issue.

No idea whether this is related to the conversion from Python 2 to 3.


Mijn schotel is een T90 met 10 LNB's. Daarnaast voor de fun nog een draaibaar systeem met een Triax TD 78.

Dreamboxen heb ik niet meer echt actief. Verder heb ik ook nog een een VU+ duo2 met 500Gb harddisk + een VU+ Uno, Zero, Solo 4K, Ultimo 4K, Zero 4K, Uno 4Kse. + ook nog een Xtrend ET7x00. Daarnaast heb ik ook nog diverse andere modellen w.o. een Formuler F4, ET8500, ET7500, Mut@nt 2400HD, Xsarius Fusion HD se en verder nog wel het e.e.a. waarmee op verzoek vanalles wordt getest. Iemand moet het tenslotte doen. ;) :)
Los van de eerder genoemde modellen heb ik nog wel een rits aan testsamples als Mut@nt 2400HD, HD60, GB UE4K, GB Trio4K, Maxitec Multibox combo en Twin, Octagon sf8008, sf8008 mini en last but nog least enkele modellen van het Grieks Duitse Edision.

Voor centrale opslag van media gebruik ik een Qnap 219P 
met tweemaal 2 Tb harddisks + een Synology DS414 met 12 Tb Totale opslag.

-------------------------------------------------------------------------------------------
Many answers to your question can be found in our wiki: Just one click away from this "solutioncentre".

Als ik alles al wist hoefde ik ook niets te vragen. If I had all the knowledge I had no questions at all.


Re: Webcam viewer crashes on startup. #3 WanWizard

  • PLi® Core member
  • 70,219 posts

+1,798
Excellent

Posted 8 October 2023 - 15:22

Lijkt een py3 conversie dingetje:

Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Components/ActionMap.py", line 57, in action
  File "/usr/lib/enigma2/python/Screens/PluginBrowser.py", line 145, in save
  File "/usr/lib/enigma2/python/Screens/PluginBrowser.py", line 149, in run
  File "/usr/lib/enigma2/python/Plugins/Plugin.py", line 93, in __call__
  File "/usr/lib/enigma2/python/Plugins/Extensions/WebcamViewer/plugin.py", line 86, in startWebcamviewer
  File "/usr/lib/enigma2/python/StartEnigma.py", line 302, in openWithCallback
    dlg = self.open(screen, *arguments, **kwargs)
  File "/usr/lib/enigma2/python/StartEnigma.py", line 312, in open
    dlg = self.current_dialog = self.instantiateDialog(screen, *arguments, **kwargs)
  File "/usr/lib/enigma2/python/StartEnigma.py", line 255, in instantiateDialog
    return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop)
  File "/usr/lib/enigma2/python/StartEnigma.py", line 272, in doInstantiateDialog
    dlg = screen(self, *arguments, **kwargs)
  File "/usr/lib/enigma2/python/Plugins/Extensions/WebcamViewer/plugin.py", line 480, in __init__
  File "/usr/lib/enigma2/python/Plugins/Extensions/WebcamViewer/plugin.py", line 510, in getMenuData
  File "/usr/lib/enigma2/python/Plugins/Extensions/WebcamViewer/plugin.py", line 652, in getScreenXMLTitle
  File "/usr/lib/enigma2/python/Plugins/Extensions/WebcamViewer/plugin.py", line 649, in get_txt
  File "/usr/lib/enigma2/python/Plugins/Extensions/WebcamViewer/plugin.py", line 642, in node_data
TypeError: sequence item 0: expected str instance, bytes found

 


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: Webcam viewer crashes on startup. #4 EnoSat

  • Senior Member
  • 195 posts

+4
Neutral

Posted 6 January 2024 - 20:30

After start in Nightly Build crash  :blink:

Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Components/ActionMap.py", line 57, in action
  File "/usr/lib/enigma2/python/Screens/PluginBrowser.py", line 146, in save
  File "/usr/lib/enigma2/python/Screens/PluginBrowser.py", line 150, in run
  File "/usr/lib/enigma2/python/Plugins/Plugin.py", line 93, in __call__
  File "/usr/lib/enigma2/python/Plugins/Extensions/WebcamViewer/plugin.py", line 86, in startWebcamviewer
  File "/usr/lib/enigma2/python/StartEnigma.py", line 295, in openWithCallback
    dlg = self.open(screen, *arguments, **kwargs)
  File "/usr/lib/enigma2/python/StartEnigma.py", line 305, in open
    dlg = self.current_dialog = self.instantiateDialog(screen, *arguments, **kwargs)
  File "/usr/lib/enigma2/python/StartEnigma.py", line 248, in instantiateDialog
    return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop)
  File "/usr/lib/enigma2/python/StartEnigma.py", line 265, in doInstantiateDialog
    dlg = screen(self, *arguments, **kwargs)
  File "/usr/lib/enigma2/python/Plugins/Extensions/WebcamViewer/plugin.py", line 480, in __init__
  File "/usr/lib/enigma2/python/Plugins/Extensions/WebcamViewer/plugin.py", line 510, in getMenuData
  File "/usr/lib/enigma2/python/Plugins/Extensions/WebcamViewer/plugin.py", line 652, in getScreenXMLTitle
  File "/usr/lib/enigma2/python/Plugins/Extensions/WebcamViewer/plugin.py", line 649, in get_txt
  File "/usr/lib/enigma2/python/Plugins/Extensions/WebcamViewer/plugin.py", line 642, in node_data
TypeError: sequence item 0: expected str instance, bytes found
[ePyObject] (CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap object at 0xb1a7b178>>,('WizardActions', 'ok')) failed)

Attached Files



Re: Webcam viewer crashes on startup. #5 WanWizard

  • PLi® Core member
  • 70,219 posts

+1,798
Excellent

Posted 17 January 2024 - 23:00

Can you try

diff --git a/webcamviewer/src/plugin.py b/webcamviewer/src/plugin.py
index 09777b24..a9365ef9 100644
--- a/webcamviewer/src/plugin.py
+++ b/webcamviewer/src/plugin.py
@@ -639,7 +639,7 @@ class XMLloader:
        def node_data(self, node, tagName, possibleNamespaces=DEFAULT_NAMESPACES):
                children = self.getElementsByTagName(node, tagName, possibleNamespaces)
                node = len(children) and children[0] or None
-               return node and "".join([child.data.encode("utf-8") for child in node.childNodes]) or None
+               return node and "".join([child.data) for child in node.childNodes]) or None
 
        def get_txt(self, node, tagName, default_txt=""):

I don't have a webcam to test.
 


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: Webcam viewer crashes on startup. #6 Loui (PD1LOI)

  • Senior Member
  • 4,589 posts

+146
Excellent

Posted 18 January 2024 - 11:13

Hier ook op OpenPli 9.0.



Re: Webcam viewer crashes on startup. #7 EnoSat

  • Senior Member
  • 195 posts

+4
Neutral

Posted 23 January 2024 - 13:12

I don't have a webcam to test.

The original file has many broken cameras, so I use my own
 

Attached Files



Re: Webcam viewer crashes on startup. #8 littlesat

  • PLi® Core member
  • 57,062 posts

+698
Excellent

Posted 30 January 2024 - 15:25

Helemaal mee eens..... het ziet er na uit dat WanWizard al een fix had voorgesteld in een ander draadje.


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


Re: Webcam viewer crashes on startup. #9 Pr2

  • PLi® Contributor
  • 6,165 posts

+261
Excellent

Posted 30 January 2024 - 16:44

English please.  ;)


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 




Also tagged with one or more of these keywords: webcam

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users