1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New install of pytivo

Discussion in 'TiVo Home Media Features & TiVoToGo' started by caddyroger, Sep 13, 2013.

  1. caddyroger

    caddyroger New Member

    Mar 14, 2005
    Some where...
    I am using the older version pytivo from 2009. I trying to use the newer version but I do not understand some of it.
    This is what what i have for tivodecode ffmpeg


    4. Grab a 32 or 64 bit build of FFmpeg for pyTivo: Recent builds of FFmpeg for Windows are available at: http://ffmpeg.zeranoe.com/builds/. The FFmpeg 1.1 (08-Jan-2013) Static build appears to work well. An older build of FFmpeg known to work well with pyTivo is also available at: http://pytivo.sourceforge.net/forum/download.php?id=323.

    5. Copy the ffmpeg.exe file from step 5 to \<install folder>\bin\. If the directory does not exist, create it.

    6. To properly handle .tivo files grab the special version of tivodecode: http://pytivo.sourceforge.net/forum/download.php?id=196

    7. Drop the tivodecode files into \<install folder>\bin\.

    8. If you are using Windows Firewall, add a Windows Firewall exception for UDP 5353 so that Windows won’t block pyTivo’s new zeroconf share announcements. (The most common reason pyTivo shares don’t show up or disappear from the Now Playing list on the Tivo is firewall blockages)

    9. Start pyTivo by executing the file \<install folder>\pytivo.py.

    10. Now that it's running, point your browser to http://localhost:9032. You should get the pyTivo home page:

    what does it mean by this" 9. Start pyTivo by executing the file \<install folder>\pytivo.py."? How do start it I tried run and from a cmd window?
  2. dlfl

    dlfl Cranky old novice

    Jul 6, 2006
    Dayton OH
    Double-click pyTivo.py in Windows Explorer. Might require you to set up a program association for the .py extension with python.exe for this to work. Once you have that working, you can create a shortcut to it if desired.

    I think in a command window you can launch it with:

    python pytivo.py

    (Provided python.exe is in your path, and your command window is already logged to the folder containing pytivo.py.)
  3. caddyroger

    caddyroger New Member

    Mar 14, 2005
    Some where...
    I get this I try and pytivo\ptivo.py in cmd or run.

    #!/usr/bin/env python

    import logging
    import os
    import platform
    import sys
    import time

    if sys.version_info[0] != 2 or sys.version_info[1] < 5:
    print ('ERROR: pyTivo requires Python >= 2.5, < 3.0.\n')

    import beacon
    import config
    import httpserver

    def exceptionLogger(*args):
    sys.excepthook = sys.__excepthook__
    logging.getLogger('pyTivo').error('Exception in pyTivo', exc_info=args)

    def last_date():
    lasttime = -1
    path = os.path.dirname(__file__)
    if not path:
    path = '.'
    for root, dirs, files in os.walk(path):
    for name in files:
    if name.endswith('.py'):
    tm = os.stat(os.path.join(root, name)).st_mtime
    if tm > lasttime:
    lasttime = tm

    return time.asctime(time.localtime(lasttime))

    def setup(in_service=False):
    sys.excepthook = exceptionLogger

    port = config.getPort()

    httpd = httpserver.TivoHTTPServer(('', int(port)),

    logger = logging.getLogger('pyTivo')
    logger.info('Last modified: ' + last_date())
    logger.info('Python: ' + platform.python_version())
    logger.info('System: ' + platform.platform())

    for section, settings in config.getShares():
    httpd.add_container(section, settings)

    b = beacon.Beacon()
    b.add_service('TiVoMediaServer:%s/http' % port)
    if 'listen' in config.getBeaconAddresses():


    logger.info('pyTivo is ready.')
    return httpd

    def serve(httpd):
    except KeyboardInterrupt:

    def mainloop():
    httpd = setup()
    return httpd.restart

    if __name__ == '__main__':
    while mainloop():
  4. gonzotek

    gonzotek tivo_xml developer

    Sep 24, 2004
    Do you have python installed? Step 1 from http://pytivo.sourceforge.net/wiki/index.php/Windows_Install#Install_Instructions_for_Windows is to install python. Verify that you have a version of python installed that pytivo is compatible with (python versions greater than 2.4.x and less than 3.0).

    You're seeing the source code of the pytivo.py file, which means you're opening the file for editing, not executing it as a program. This can happen because python isn't installed, isn't installed correctly, or if the file associations the python windows installer sets up have been altered after installation.

    Try opening a command prompt then:
    cd c:\pytivo
    python pytivo.py
    This assumes you followed the directions to place pytivo at the root of the C drive, change that part if you have placed it somewhere else to match your pytivo location.

    If you get an error message, copy and paste(you'll need to use the "mark" function in the windows command prompt, see here) the entire message to this thread.
  5. caddyroger

    caddyroger New Member

    Mar 14, 2005
    Some where...
    Ok I redid every thing again. I get the command box to open. When I open Internet explorer I get the programs from my now playing ok. If I click my videos to push I get "this page can not be displayed" error.

    Here is the command page readings. I had to has a file attachment. I also posted my conf file
    here is a copy of my conf


    tivo_password = xxxxxxxxx
    tivo_mak = xxxxxxxxxxx
    ffmpeg = C:\pyTivo\bin\ffmpeg.exe
    tivodecode = C:\pyTivo\bin\TIVODECODE.EXE
    tdcat = C:\pyTivo\bin\tdcat.exe
    beacon =
    togo_path = D:\FROM THE TIVO
    tivo_username = xxxxxxxxxxxxxxxxxxxxx


    [My Videos]
    path = E:\FOR THE TIVO
    type = video

    Attached Files:

  6. wmcbrine

    wmcbrine Ziphead

    Aug 2, 2003
    WindowsError: [Error 2] The system cannot find the file specified: u'E:\\FOR THE
    Seems self-explanatory?

Share This Page