Beispiel #1
0
    def __init__(self, filename):

        self.filename=filename
        if os.path.exists(filename):
            self.parseFile()
        else:
            logger.error( "filename %s not found" % filename)
Beispiel #2
0
from talkshowLogger import logger
# function alias
debug = logger.debug
info = logger.info
warn = logger.warn
error = logger.error
import talkshowUtils
info("Initialising talkshow. Version of Python: %s" % str(sys.version))
info("Your filesystem is using this encoding: %s" % str(sys.getfilesystemencoding()))


try:
    import pyglet
    info("pyglet seems installed and working fine.")
except:
    logger.error("Pyglet (a python library) is not installed. Talkshow cannot work. Please install pyglet")

try:
    import tinycss
    info("tinyCSS seems installed and working fine.")
except:
    logger.error("TinyCSS (a python library) is not installed. Talkshow cannot work. Please install tinyCSS")

try:
    import vlc
    vlc_test_instance = vlc.Instance()
    info("VLC seems available and working fine. Audio playback should work.")
except:
    logger.error("There is a problem with VLC. Either you are using the wrong version of talkshow (32/64 bit), or there is a bug in the code, or you can try and install VLC.")