Jump to content


Photo

OpenPLi-py3


  • Please log in to reply
1139 replies to this topic

Re: OpenPLi-py3 #421 WanWizard

  • PLi® Core member
  • 69,793 posts

+1,780
Excellent

Posted 18 July 2022 - 02:22

Couldn't sleep, Fixed ImportChannels.

 

Must be missing the "." to make the import relative...

https://github.com/o...c/plugin.py#L11

 

Yup, that was it, thanks.


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

  • PLi® Core member
  • 69,793 posts

+1,780
Excellent

Posted 18 July 2022 - 18:56

Attention: due to changes in building plugins, you need to flash the next Python3 build, instead of update (which will no longer update some plugins).

 

Also, enigma2-plugins has been rebased against develop, since a lot of changes where not present in the python3 branch. I hope I got everything, since someone decided to refactor code in the python3 branch, which makes rebasing a pain !

 

Developers: if you make changes to enigma2-plugins, please also rebase the python3 branch, to keep them in sync. Please rebase, DO NOT merge !


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 #423 Solo-2

  • Senior Member
  • 254 posts

0
Neutral

Posted 19 July 2022 - 13:38

Which build will include the fix for the importChannels?

Edited by Solo-2, 19 July 2022 - 13:40.

Vu+Solo2 met OpenPLI Python3 DiSEqC A/B/C/D 2 kabels.

Vu+solo als fallback met OpenPLI Python3.


Re: OpenPLi-py3 #424 WanWizard

  • PLi® Core member
  • 69,793 posts

+1,780
Excellent

Posted 19 July 2022 - 13:44

The currently running one.


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 #425 Solo-2

  • Senior Member
  • 254 posts

0
Neutral

Posted 19 July 2022 - 13:47

That's great.


Vu+Solo2 met OpenPLI Python3 DiSEqC A/B/C/D 2 kabels.

Vu+solo als fallback met OpenPLI Python3.


Re: OpenPLi-py3 #426 Solo-2

  • Senior Member
  • 254 posts

0
Neutral

Posted 20 July 2022 - 07:38

I online flashed both the Solo2 and Solo to the latest build 20/7 python3, but the solo still doesnt import channels from the Solo2 server box.

Clean install no old backup.


Vu+Solo2 met OpenPLI Python3 DiSEqC A/B/C/D 2 kabels.

Vu+solo als fallback met OpenPLI Python3.


Re: OpenPLi-py3 #427 Solo-2

  • Senior Member
  • 254 posts

0
Neutral

Posted 20 July 2022 - 07:57

Debuglog from Solo2 and Solo.

Attached Files


Vu+Solo2 met OpenPLI Python3 DiSEqC A/B/C/D 2 kabels.

Vu+solo als fallback met OpenPLI Python3.


Re: OpenPLi-py3 #428 WanWizard

  • PLi® Core member
  • 69,793 posts

+1,780
Excellent

Posted 20 July 2022 - 14:23

There is no fallback activity in either of these logs...


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 #429 Solo-2

  • Senior Member
  • 254 posts

0
Neutral

Posted 20 July 2022 - 14:29

Fallback works with openpli 8.2 online flash the solo client, enable fallback in the wizard and the channels are imported from the solo2 server to the client at the end of the wizard.

 

This doesnt work with python3.

 

If there is no activity then that is the problem. :)


Edited by Solo-2, 20 July 2022 - 14:37.

Vu+Solo2 met OpenPLI Python3 DiSEqC A/B/C/D 2 kabels.

Vu+solo als fallback met OpenPLI Python3.


Re: OpenPLi-py3 #430 Solo-2

  • Senior Member
  • 254 posts

0
Neutral

Posted 20 July 2022 - 14:55

what steps should i do in debug mode?
 
 
Debuglog openpli 8.2 VUSolo2 and VUSolo with fallback working.
 
 

 

Attached Files


Vu+Solo2 met OpenPLI Python3 DiSEqC A/B/C/D 2 kabels.

Vu+solo als fallback met OpenPLI Python3.


Re: OpenPLi-py3 #431 Solo-2

  • Senior Member
  • 254 posts

0
Neutral

Posted 20 July 2022 - 16:42

Test.

 

Solo2 Server     Solo client

Python3       -      Python3=Fail import channels

Openpli 8.2  -      Python3=OK import channels

Python3       -      Openpli 8.2=Fail import channels

Openpli 8.2  -      Openpli 8.2=OK import channels

 

Without backup.


Vu+Solo2 met OpenPLI Python3 DiSEqC A/B/C/D 2 kabels.

Vu+solo als fallback met OpenPLI Python3.


Re: OpenPLi-py3 #432 Beeker

  • PLi® Contributor
  • 1,586 posts

+202
Excellent

Posted 20 July 2022 - 16:54

Can you post a screenshot of you internet browser from your server with OpenPLi 8.2 image.

 

Type this link, edit IP adress to your server box

http://192.168.178.185/file?dir=/etc/enigma2

WIth OpenPLI Python3 I get this:

Attached Files


Edited by Beeker, 20 July 2022 - 17:01.

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 #433 Solo-2

  • Senior Member
  • 254 posts

0
Neutral

Posted 20 July 2022 - 17:14

The screenshot.

Attached Files


Vu+Solo2 met OpenPLI Python3 DiSEqC A/B/C/D 2 kabels.

Vu+solo als fallback met OpenPLI Python3.


Re: OpenPLi-py3 #434 Huevos

  • PLi® Contributor
  • 4,568 posts

+160
Excellent

Posted 20 July 2022 - 17:38

Can you post a screenshot of you internet browser from your server with OpenPLi 8.2 image.

 

Type this link, edit IP adress to your server box

http://192.168.178.185/file?dir=/etc/enigma2

WIth OpenPLI Python3 I get this:

This is obviously a fault in OpenWebIf. I get the same result on OpenViX.



Re: OpenPLi-py3 #435 Solo-2

  • Senior Member
  • 254 posts

0
Neutral

Posted 20 July 2022 - 18:18

Is this a second problem or the same as import channels?


Vu+Solo2 met OpenPLI Python3 DiSEqC A/B/C/D 2 kabels.

Vu+solo als fallback met OpenPLI Python3.


Re: OpenPLi-py3 #436 Beeker

  • PLi® Contributor
  • 1,586 posts

+202
Excellent

Posted 20 July 2022 - 18:34

Upload file to:

/usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/controllers/

Tested and import channel should work now (got message 'Channels imported from fallbacktuner')

 

Patch for now (python 3 only)

diff --git a/plugin/controllers/file.py b/plugin/controllers/file.py
index 48a16256..8fec9b7f 100644
--- a/plugin/controllers/file.py
+++ b/plugin/controllers/file.py
@@ -108,6 +108,6 @@ class FileController(resource.Resource):
                                                files.remove(x)
                                if nofiles:
                                        files = []
-                               return json.dumps({"result": True, "dirs": directories, "files": files}, indent=2)
+                               return json.dumps({"result": True, "dirs": directories, "files": files}, indent=2).encode()
                        else:
-                               return json.dumps({"result": False, "message": "path %s not exits" % (path)}, indent=2)
+                               return json.dumps({"result": False, "message": "path %s not exits" % (path)}, indent=2).encode()

 

 

 

 

Attached Files

  • Attached File  file.py   3.92KB   3 downloads

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

  • PLi® Core member
  • 69,793 posts

+1,780
Excellent

Posted 20 July 2022 - 18:52

Has this been passed on to Jorg?


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

  • PLi® Core member
  • 69,793 posts

+1,780
Excellent

Posted 20 July 2022 - 18:53

Unbelievable, there is a plugin in the feed that does this:

getPage(
    url='http://www.dreambox-plugins.de/feeds/TVCharts/status.php', 
    agent="Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; en-US)", 
    timeout=60, method='POST', 
    headers={'Content-Type': 'application/x-www-form-urlencoded'}, 
    postdata=urlencode(
        {'boxid': self.BoxID, 'devicename': self.DeviceName, 'imageversion': self.ImageVersion, 'enigmaversion': self.EnigmaVersion, 'lastchannel': channel_name, 'lastevent': event_name, 'eventdescr': event_description, 'lastbegin': event_begin, 'lastserviceref': self.serviceref, 'timerlist': self.timerlist, 'pluginlist': self.pluginlist}))

every 15 minutes....


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 #439 Solo-2

  • Senior Member
  • 254 posts

0
Neutral

Posted 20 July 2022 - 18:53

Upload file only to the server?


Vu+Solo2 met OpenPLI Python3 DiSEqC A/B/C/D 2 kabels.

Vu+solo als fallback met OpenPLI Python3.


Re: OpenPLi-py3 #440 Beeker

  • PLi® Contributor
  • 1,586 posts

+202
Excellent

Posted 20 July 2022 - 18:56

Upload file only to the server?

Yes,


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.



3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users