Jump to content


Photo

xmltvimport plugin update on Github


  • Please log in to reply
71 replies to this topic

Re: xmltvimport plugin update on Github #21 ricki

  • Senior Member
  • 571 posts

+3
Neutral

Posted 10 October 2015 - 10:44

New install of the plugin today,  install man. get nothing after 1 hour,  tryng man button igen,  get messeage import of epg data is still in progress please wait.

There is no crashlog


Edited by ricki, 10 October 2015 - 10:47.


Re: xmltvimport plugin update on Github #22 Dimitrij

  • PLi® Core member
  • 9,967 posts

+335
Excellent

Posted 10 October 2015 - 11:17

I see no error message in that log?

I found a problem.
Now I'll try to fix it.


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


Re: xmltvimport plugin update on Github #23 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 10 October 2015 - 11:35

The only error message is

 

EPGimport failed to start

nonetype object has no attribute type ends with

 

Thats it because if the plugin doesnt start it cannot create any log so thats all we can give you.

 

Ian.


Edited by ian1095, 10 October 2015 - 11:37.


Re: xmltvimport plugin update on Github #24 Lost in Space

  • Senior Member
  • 876 posts

+69
Good

Posted 10 October 2015 - 12:57

Well, feedback is important:

 

The whole changes are a little bit 'strange' - using os.system for an rm -f on a file within try: except:: is NOT what I call good coding practice, so it was my personal amuesement to see that Erik signed it off.

 

BTW despite adding the Bouquet check the last change stil lkept the idiotic idea to check if a channel exists on the box by doing a fak recording ...

 

Therefore I will NOT include these changes in the DreamOS Version of the plugin.


Edited by gutemine, 10 October 2015 - 12:57.


Re: xmltvimport plugin update on Github #25 Lost in Space

  • Senior Member
  • 876 posts

+69
Good

Posted 10 October 2015 - 13:06

def channelFilter(ref):
        channel = ServiceReference(str(ref)).getServiceName()
        if len(channel) > 0:     
                print "[EPGimport] found channel %s" % (channel)
                return True               
        return False                

 

Better than fake recordings ?
 


Edited by gutemine, 10 October 2015 - 13:06.


Re: xmltvimport plugin update on Github #26 MiLo

  • PLi® Core member
  • 14,042 posts

+298
Excellent

Posted 10 October 2015 - 13:49

The only error message is

 

EPGimport failed to start

nonetype object has no attribute type ends with

 

Thats it because if the plugin doesnt start it cannot create any log so thats all we can give you.

 

Ian.

 

Open a telnet session, and run Enigma2 in there:

 

init 4

enigma2

 

Then the error should scroll by in the log. Copy that part and paste it here.


Real musicians never die - they just decompose

Re: xmltvimport plugin update on Github #27 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 10 October 2015 - 14:29

First thing I tried yesterday,but again as the plugin doesnt start no error is created.

But heres what is produced just to prove to you that Ive done it again as instructed.

 

action ->  MsgBoxActions ok
[EPGImport] nextImport, source= Rytec UK XMLTV
[EPGImport] Error at start: 'NoneType' object has no attribute 'endswith'
[EPGImport] fallback to default translation for  EPGImport Plugin
Failed to start:

 

Ian.


Edited by ian1095, 10 October 2015 - 14:33.


Re: xmltvimport plugin update on Github #28 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 10 October 2015 - 14:30

This is already useful information I think.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: xmltvimport plugin update on Github #29 Dimitrij

  • PLi® Core member
  • 9,967 posts

+335
Excellent

Posted 10 October 2015 - 14:40

 

The only error message is

 

EPGimport failed to start

nonetype object has no attribute type ends with

 

Thats it because if the plugin doesnt start it cannot create any log so thats all we can give you.

 

Ian.

 

Open a telnet session, and run Enigma2 in there:

 

init 4

enigma2

 

Then the error should scroll by in the log. Copy that part and paste it here.

 

action ->  ColorActions yellow
action ->  MsgBoxActions ok
[EPGImport] nextImport, source= Linuxsat ExUSSR XMLTV
[EPGImport] Downloading: http://epg.in.ua/epg/tvprogram_ua_ru.gz to local path: /tmp/epgimport.gz
[EPGImport] afterDownload /tmp/epgimport.gz
[EPGImport] unlink /tmp/epgimport.gz
[EPGImport] Downloading: http://epg.in.ua/epg/ls.channels.xml.gz to local path: /tmp/epgimport.gz
[EPGImport] afterChannelDownload /tmp/epgimport.gz
[EPGImport] Using twisted thread
[EPGImport] Parsing channels from 'http://epg.in.ua/epg/ls.channels.xml.gz'
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 524, in __bootstrap

  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner

  File "/usr/lib/python2.7/threading.py", line 504, in run

--- <exception caught here> ---
  File "/usr/lib/python2.7/site-packages/twisted/python/threadpool.py", line 191, in _worker

  File "/usr/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext

  File "/usr/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext

  File "/usr/lib/enigma2/python/Plugins/Extensions/EPGImport/EPGImport.py", line 244, in doThreadRead
    for data in self.createIterator(filename):
  File "/usr/lib/enigma2/python/Plugins/Extensions/EPGImport/EPGImport.py", line 138, in createIterator
    self.source.channels.update(self.channelFilter, filename)
  File "/usr/lib/enigma2/python/Plugins/Extensions/EPGImport/EPGConfig.py", line 73, in update
    return self.parse(filterCallback, downloadedFile)
  File "/usr/lib/enigma2/python/Plugins/Extensions/EPGImport/EPGConfig.py", line 58, in parse
    for event, elem in iterparse(self.openStream(downloadedFile)):
  File "/usr/lib/enigma2/python/Plugins/Extensions/EPGImport/EPGConfig.py", line 49, in openStream
    fd = open(filename, 'rb')
exceptions.IOError: [Errno 2] No such file or directory: '/tmp/epgimport.gz'
1770


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


Re: xmltvimport plugin update on Github #30 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 10 October 2015 - 14:43

I didnt get any of that in my telnet window.

 

I just got exactly what I posted above and nothing more.

Mine doesnt even start to get that far in the log.


Edited by ian1095, 10 October 2015 - 14:46.


Re: xmltvimport plugin update on Github #31 Dimitrij

  • PLi® Core member
  • 9,967 posts

+335
Excellent

Posted 10 October 2015 - 15:18

solved

	def beginImport(self, longDescUntil = None):
		'Starts importing using Enigma reactor. Set self.sources before calling this.'
-		global HDD_EPG_DAT
-		HDD_EPG_DAT = config.misc.epgcache_filename.value
		if config.plugins.epgimport.clear_oldepg.value and hasattr(self.epgcache, 'flushEPG'):
-			unlink_if_exists(HDD_EPG_DAT)
-			unlink_if_exists(HDD_EPG_DAT + '.backup')
+			unlink_if_exists(config.misc.epgcache_filename.value)
+			unlink_if_exists(config.misc.epgcache_filename.value + '.backup')
			self.epgcache.flushEPG()
		if hasattr(self.epgcache, 'importEvents'):

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


Re: xmltvimport plugin update on Github #32 Dimitrij

  • PLi® Core member
  • 9,967 posts

+335
Excellent

Posted 10 October 2015 - 15:31

Milo

please apply this

https://github.com/O...tvimport/pull/3

and

this

https://github.com/O...tvimport/pull/4

 

and update  meta-openpli/recipes-openpli/enigma2-plugins/enigma2-plugin-extensions-xmltvimport.bb

 

Sorry for the troubles not provided.


Edited by Dimitrij, 10 October 2015 - 15:33.

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


Re: xmltvimport plugin update on Github #33 WanWizard

  • PLi® Core member
  • 68,308 posts

+1,719
Excellent

Posted 10 October 2015 - 15:33

These seem to be unrelated issues, the one Dimitri has seems to be simply a failed download, combined with a missing check on the status of the download.

 

If I look at the code and Ian1095's messages, then the first encountered instance of "endsWith" is on line 339 in do_download(). So the error message suggests 'sourcefile' is not set. But, before that, "startsWith" is called on the same variable, so if it wasn't set, you would have a different error message. The same applies if your xml sources file would contain a local file instead of a URL, or if the XML wouldn't contain anything valid at all (you haven't changed that, did you?).

 

So looking at the code, I can't find a path in the code that would produce your sequence of error messages.

 

If I were you Ian, I would de-install the plugin and the rytec sources, reboot the box, install the plugin and the sources again, configure it, and check. Assuming that you haven't installing anything manually (outside the feeds) that would overwrite python files...


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (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: xmltvimport plugin update on Github #34 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 10 October 2015 - 16:35

I give up

 

But thank you for your time and help.

 

Ive done everything you said and also removed the epgimport config file from /etc/enigma2 as well and deleted everything to do with epgimport from my settings file located in the same directory.

 

Rebooted and installed again from the feeds,then rebooted once more rather than just restarting enigma2.

 

Opened and ran the plugin

 

Same error

 

So this one is going to have to remain unsolved unless anyone else has any ideas but I'm completely out of them.

 

Ian.



Re: xmltvimport plugin update on Github #35 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 10 October 2015 - 16:42

I've had a look at the two merge requests of Dimitrij, they're probably useful, but they're not going to solve this problem.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: xmltvimport plugin update on Github #36 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 10 October 2015 - 16:43

Whats infuriating though is the old version works perfectly,if this didnt work I would come to the conclusion that some system files maybe corrupted and reflash.

but as this is working that cannot be the case.

 

Never mind as i say at least the old version works.

 

Ian.



Re: xmltvimport plugin update on Github #37 Dimitrij

  • PLi® Core member
  • 9,967 posts

+335
Excellent

Posted 10 October 2015 - 16:50

Whats infuriating though is the old version works perfectly,if this didnt work I would come to the conclusion that some system files maybe corrupted and reflash.

but as this is working that cannot be the case.

 

Never mind as i say at least the old version works.

 

Ian.

Replace  file EPGImport.py  in the plugin

and

add /etc/epgimport/rytec.sources.xml


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


Re: xmltvimport plugin update on Github #38 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 10 October 2015 - 16:59

Many thanks but I still get the same error after trying your files.

 

I dont think your fix is my problem as I'm not getting as far as where your exception was thrown.

 

In my case the plugin wont even start.

 

Ian.


Edited by ian1095, 10 October 2015 - 17:00.


Re: xmltvimport plugin update on Github #39 WanWizard

  • PLi® Core member
  • 68,308 posts

+1,719
Excellent

Posted 10 October 2015 - 17:05

Ok, so who in the team has a VU+ handy and can check this out?

 

Mine are 600km's from where I am at the moment, and I don't have it on my ET's, I can't debug what I can't reproduce.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (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: xmltvimport plugin update on Github #40 Dimitrij

  • PLi® Core member
  • 9,967 posts

+335
Excellent

Posted 10 October 2015 - 17:30

Many thanks but I still get the same error after trying your files.

 

I dont think your fix is my problem as I'm not getting as far as where your exception was thrown.

 

In my case the plugin wont even start.

 

Ian.

readd url sourse


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



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users