Jump to content


Photo

EPGImport crash


  • Please log in to reply
7 replies to this topic

#1 voniton1

  • Member
  • 6 posts

0
Neutral

Posted 21 February 2017 - 22:39

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 220, in doThreadRead
    for data in self.createIterator(filename):
  File "/usr/lib/enigma2/python/Plugins/Extensions/EPGImport/EPGImport.py", line 132, in createIterator
    return getParser(self.source.parser).iterator(self.fd, self.source.channels.items)
  File "/usr/lib/enigma2/python/Plugins/Extensions/EPGImport/EPGImport.py", line 34, in getParser
    mod = relImport(module)
  File "/usr/lib/enigma2/python/Plugins/Extensions/EPGImport/EPGImport.py", line 27, in relImport
    mod = __import__('.'.join(fullname))
exceptions.ImportError: No module named epg.dat
[EPGImport] Importing /media/usb/epg.dat
TuxTxt: readerror
TuxTxt: readerror
TuxTxt: readerror



Can anybody help with this crash? Source is set to "UK"

 

 



Re: EPGImport crash #2 WanWizard

  • PLi® Core member
  • 68,621 posts

+1,739
Excellent

Posted 21 February 2017 - 22:45

There is something seriously wrong with our setup. I suspect this is not an OpenPLi image, and a customized setup? 


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: EPGImport crash #3 voniton1

  • Member
  • 6 posts

0
Neutral

Posted 21 February 2017 - 23:18

It's OpenPLI, OpenPLi-4.0-beta-et5x00-20170220_usb.zip.



Re: EPGImport crash #4 WanWizard

  • PLi® Core member
  • 68,621 posts

+1,739
Excellent

Posted 21 February 2017 - 23:26

Very weird, according to the code, that error simply can't happen. I download the UK EPG on a daily basis without issues. Are you using some custom channel definition? IPTV maybe?


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: EPGImport crash #5 voniton1

  • Member
  • 6 posts

0
Neutral

Posted 21 February 2017 - 23:42

It's just stock, no custom definitons.

[EPGImport] nextImport, source= UK
[EPGImport] Downloading: http://91.121.106.172/~rytecepg/epg_data/uk/epg.dat.gz to local path: /tmp/epgimport.gz
[EPGImport] afterDownload /tmp/epgimport.gz
[EPGImport] Using twisted thread for DAT file
[EPGImport] unlink /tmp/epgimport.gz         <============ FILE IS DELETED HERE
[EPGImport] Downloading: http://rytecepg.wanwizard.eu/rytec.channels.xml.gz to local path: /tmp/epgimport.gz
[EPGImport] Uncompressing /tmp/epgimport.gz  <============ FILE IS ACCESSED HERE
[EPGImport] Failed to import /tmp/epgimport.gz: [Errno 2] No such file or directory: '/tmp/epgimport.gz'
[EPGImport] imported 0 events
[EPGImport] Save last import date and count event
[EPGImport] Run check deep standby after import
[EPGImport] #### Finished ####
[EPGImport] afterChannelDownload /tmp/epgimport.gz
[EPGImport] Using twisted thread
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 220, in doThreadRead
    for data in self.createIterator(filename):
  File "/usr/lib/enigma2/python/Plugins/Extensions/EPGImport/EPGImport.py", line 131, in createIterator
    self.source.channels.update(self.channelFilter, filename)
exceptions.AttributeError: 'NoneType' object has no attribute 'channels'
[EPGImport] fallback to default translation for  Last: %s %s, %d events

It seems to be a synchronization issue. The file is deleted before the thread processes it.

 



Re: EPGImport crash #6 WanWizard

  • PLi® Core member
  • 68,621 posts

+1,739
Excellent

Posted 21 February 2017 - 23:44

epg.dat importing is expiremental, and not very stable. Import the UK XMLTV file instead.

 

Besides that, you're reading the output wrong:

[EPGImport] Downloading: http://91.121.106.172/~rytecepg/epg_data/uk/epg.dat.gz to local path: /tmp/epgimport.gz
[EPGImport] afterDownload /tmp/epgimport.gz
[EPGImport] Using twisted thread for DAT file
[EPGImport] unlink /tmp/epgimport.gz <============ FILE IS DELETED HERE
[EPGImport] Downloading: http://rytecepg.wanwizard.eu/rytec.channels.xml.gz to local path: /tmp/epgimport.gz
[EPGImport] Uncompressing /tmp/epgimport.gz <============ FILE IS ACCESSED HERE
[EPGImport] Failed to import /tmp/epgimport.gz: [Errno 2] No such file or directory: '/tmp/epgimport.gz'

It actually fails on the second download, which should create the file, but didn't for some reason.


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: EPGImport crash #7 voniton1

  • Member
  • 6 posts

0
Neutral

Posted 21 February 2017 - 23:55

Thanks, UK XMLTV works great.



Re: EPGImport crash #8 doglover

  • Rytec EPG Team
  • 17,013 posts

+639
Excellent

Posted 22 February 2017 - 08:42

Well, you obviously did not read this thread:

https://forums.openpli.org/topic/40285-import-rytec-xmltv-sources-or-epgdat-sources-required-reading-stuff-for-everyone-importing-epgdat-files/

import rytec xmltv sources or epg.dat sources - Required Reading stuff for everyone importing epg.dat files

 

If you had read it, you should have know the above.  Or at least know we just provide the possibility.  If it fails the only thing I can do is remove the possibility for importing epg.dat files.

 

Willy


Edited by doglover, 22 February 2017 - 08:42.

~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users