PDA

View Full Version : [ABM-DVB-S/S2] favourites.xml not working in python 3 images



Willo3092
29-08-21, 13:40
I originally posted this in the ViX python 3 testers required thread but didn't get it working.
I have tested on ViX 5.5 and on OpenATV 7.0 and cannot generate a bouquet with ABM from a favourites.xml with a python 3 image.
All works fine on any python 2 image (ViX, ATV, Pli).

62535

62536

62537

Huevos
29-08-21, 15:01
Can you check CustomMix works and I will look into this.

Strange, because my favorites works.

Willo3092
29-08-21, 15:47
Isn't custommix just a method of swapping channels from one bouquet to another? I haven't really used it for years.
I like favourites.xml because it creates customisable bouquets that are totally separate from the standard ones that ABM creates.
I just wondered if the xml file needs to be in a different format with py3.
Maybe if you can upload your working favourites.xml I can try it on my box?

Willo3092
29-08-21, 16:21
Can you check CustomMix works and I will look into this.


I just made a slight edit to sd_sat_282_sky_uk_CustomLCN if that's the same thing?

I swapped BBC1 and BBC2 over and that worked fine.

I may have done the sat_282_sky_uk_CustomMix.xml wrong. I put a few deletes in that worked okay but couldn't move channels about.

Joe_90
29-08-21, 17:03
Does it make a difference if the line endings are MS-DOS rather than unix? The favourites.xml file you posted has DOS line endings (0D0A).

ccs
29-08-21, 17:06
Does it make a difference if the line endings are MS-DOS rather than unix? The favourites.xml file you posted has DOS line endings (0D0A).

... more than likely I'd have thought.

Willo3092
29-08-21, 17:23
Does it make a difference if the line endings are MS-DOS rather than unix? The favourites.xml file you posted has DOS line endings (0D0A).

I have just used the EOL Converter in Notepad++ and changed it to Unix and it still doesn't work. It works fine in ViX 5.4 though.
Some of the files I uploaded were from the previous thread. This is the one I'm currently trying to get working:

62538

BrokenUnusableAccount
29-08-21, 17:46
I have just used the EOL Converter in Notepad++ and changed it to Unix and it still doesn't work. It works fine in ViX 5.4 though.
Some of the files I uploaded were from the previous thread. This is the one I'm currently trying to get working:

62538

The log file attached to message 1 suggests ABM is looking for favorite.xml rather than favourites.xml.

Willo3092
29-08-21, 17:53
The log file attached to message 1 suggests ABM is looking for favorite.xml rather than favourites.xml.

I went through this on the last thread though and makes no difference.
I renamed favourites.xml to favorites.xml, favorite.xml and favourite.xml and none of them made a difference.

I have just compared the ABM scanner folders on machines running OpenATV 7.0 and ViX 5.4 (where the same favourites.xml works) and none of the py files on OpenATV 7.0 are compiled :confused:

62539

ccs
29-08-21, 17:56
.... A bit difficult to read, but p3 .py files are compiled into the folder "__pycache__"

Willo3092
29-08-21, 18:06
.... A bit difficult to read, but p3 .py files are compiled into the folder "_pycache_"

As one door closes another one shuts! :) I was hoping that I was getting somewhere!

I stopped testing the ViX 5.5 image because I couldn't get the favourites.xml working on it as that's the only bouquet I use at home. I set ABM to scan occasionally but not generate the bouquets.
I thought I would try ATV 7.0 but that is exactly the same. I don't know if it's a python 3 issue or ABM?
ABM obviously looks at the file but decides it is zero length for some reason. The same ABM settings and xml file work fine on ViX 5.4.

Huevos
29-08-21, 18:12
I just made a slight edit to sd_sat_282_sky_uk_CustomLCN if that's the same thing?

I swapped BBC1 and BBC2 over and that worked fine.

I may have done the sat_282_sky_uk_CustomMix.xml wrong. I put a few deletes in that worked okay but couldn't move channels about.
No, not CustomLCN. Please don't use that for 28.2E. CustomLCN is for allocating LCNs for providers that don't have them.

https://github.com/oe-alliance/AutoBouquetsMaker/blob/master/AutoBouquetsMaker/custom/README.txt#L17-L34

Please also post the CustomMix file you made.

Also if it worked in Py2, but not Py3, I doubt it is anything you have done wrong.

And I am certain that either line ending is valid in an xml file, whatever system the file is being run on.

Huevos
29-08-21, 18:30
Please try the attached file for both CustomMix and favorites... goes in the scanner folder, inside the plugin folder.

Get the enigma2 debug log, not the abm log.

From both Py2 and Py3 if possible, would be helpful.

Willo3092
29-08-21, 18:32
Please also post the CustomMix file you made.

I've deleted it now! I'm not sure I had done it right anyway. Did you say your favourites.xml works?

I have just set ABM up on 2 boxes with exactly the same settings and favourites.xml - One is ViX 5.4 (which works) and the other ATV 7.0 (which doesn't).

I have attached the ABM logs for both but this seems to be the relevant part:

ViX 5.4:


[ABM-Tools][favourites] Reading favorite.xml file
[ABM-BouquetsWriter] Writing favourites bouquet...
[ABM-BouquetsWriter] Done
[ABM-BouquetsWriter] Writing Last Scanned bouquet...
[ABM-BouquetsWriter] Writing bouquets index...
[ABM-BouquetsWriter] Done
[ABM-Manager][save] write bouquets, Done

ATV 7.0:


[ABM-Tools][favourites] Reading favorite.xml file
[ABM-Tools][favourites] Favourites list is zero length.
[ABM-BouquetsWriter] Writing Last Scanned bouquet...
[ABM-BouquetsWriter] Writing bouquets index...
[ABM-BouquetsWriter] Done
[ABM-Manager][save] write bouquets, Done


62541

62542

Huevos
29-08-21, 18:33
Use my file above, and get enigma2 log, not abm log.

Willo3092
29-08-21, 18:49
Sorry, I hadn't seen your previous post.
ATV 7.0 is with the new tools.py.



The ViX log is 10mb even after rebooting the box and it won't let me upload it because it exceeds the permitted file size.

Will upload the log shortly, made a cockup.

62544

Willo3092
29-08-21, 19:36
Log for ViX 5.4:

62545

Huevos
29-08-21, 22:41
Log for ViX 5.4:

62545

Can you give this a try please.

If it works on Py3, give it a go on Py2 as well.

Willo3092
30-08-21, 09:10
Can you give this a try please.

If it works on Py3, give it a go on Py2 as well.

Yes, it works on both! Fantastic job, thanks for taking the time :thumbsup:
I'm also slightly relieved that it wasn't me doing something stupid!