|
| Author |
Message |
rdian06
Joined: 12 Apr 2008 Posts: 1182
|
Posted: Sun Oct 19, 2008 1:03 am Post subject: Updated Windows Installer - 2009-03-21 |
|
|
Last Updated: 2009-08-27 1:55PM EDT
MOST RECENT INSTALLER:
pyTivo-wmcbrine-2009.03.19-RC1
Download: http://pytivo.sourceforge.net/forum/post3957.html#3957
RECENT CHANGES:
The installers below have the following common changes from krkeegan's base (any fork specific differences will be described in the fork specific posts):
2009-08-27 1:55PM EDT
- Added instructions for upgrading pyTivo-wmcbrine-2009.03.19-RC1 to latest wmcbrine git snapshot. See http://pytivo.sourceforge.net/forum/post7536.html#7536
2009-08-21 8:04PM EDT
- Moved pyTivo-wmcbrine-2009.03.19-RC1 to Stable
- Moved pyTivo-wmcbrine-2008.08.20-RC1 to Archive
2009-03-21 10:51PM EDT
INFORMATION BELOW APPLIES TO:
pyTivo-wmcbrine-2009.03.19-RC1
I've been restructuring the installer for quite some time now mainly to play nicer with Vista and 64 bit OSes and have some more improvements planned, but I know a lot of you wanted to test out the MP4 Push support so I'm making this available now rather than later.
- Added BETA pyTivo-wmcbrine-2009.03.19-RC1 for wmcbrine fork based on http://repo.or.cz/w/pyTivo/wmcbrine.git?a=log;h=52bd2e20ead1626e546dc07240d311bde03c128e
- Really fixed Python detection on Windows 64 bit OSes. Tested working with 32 and 64 bit Python on Vista 64 bit
- Relocated ffmpeg.exe to pyTivo\bin directory and updated to ffmpeg-SVN-15216-rdian06-0.96-x86_32 to properly recognize ac3 inside an mp4 container for Push
- Fixed logging configuration issues with Python 2.4 and 2.5.
- Fixed Start Menu shortcut creation to be under "All Users" area instead of "Current User"
- Installer calls "python -m compileall" to pre-compile Python files in case running pyTivo from non-privileged user account cannot write compiled files at runtime)
- Added "X-Advanced - Recompile Python files" script and shortcut to Start Menu. When performing a manual upgrade using a git download, run this AFTER extracting the git files over the existing files and BEFORE launching pyTivo for the first time to ensure that stale compiled Python files are removed and the new ones are compiled. This should be run with Administrator rights (i.e. on Vista, Right-click and "Run as Administrator".
- Relocated pyTivo.conf, debug.log, and temp videotest files to the Windows Common Documents folder:
XP - C:\Documents and Settings\All Users\Documents\pyTivo\
Vista - C:\Users\Public\Documents\pyTivo
- Added "pyTivo Data Folder" shortcut to the Start Menu to easily open pyTivo's Windows Common Documents folder
- Made Windows Firewall modification open the port to the local SUBNET ONLY instead of completely open.
- Made Windows Firewall modification optional and selected by default for install. If you are using a different firewall, you'll have to configure it manually.
- Added removing Windows Firewall action to uninstall (optional, selected by default)
- Renamed "Configuration" Start Menu shortcut to "Configure - Admin Web"
- Added "Configure - pyTivo.conf" Start Menu shortcut to open the pyTivo.conf
- Renamed "pyTivo - Console" Start Menu shortcut to "pyTivo - Start on Console"
- Changed URL of "Version" link to point to git log headed by the actual pyTivo code commit version
- Added "Web Forum" Start Menu shortcut point to the pyTivo web forum
2008-10-20 10:34PM EDT
INFORMATION BELOW APPLIES TO:
pyTivo-wgw-2008.10.15-RC1
pyTivo-wmcbrine-2008.08.20-RC1
- Checking for Python on 64 bit OSes does NOT work properly on these installers. If you are running 64 bit Windows, use pyTivo-wmcbrine-2009.03.19-RC1 or newer.
- Fixed the Python check so that it accepts Python 2.6.
- Updated the version info to show the fork maintainer and date instead of just the date on the Start Menu. Also pointed the version info url to the appropriate post in http://pytivo.sourceforge.net/forum/new-users-about-pytivo-versions-t86.html
- Modified the install and delete code to properly handle the file differences in wgw and wmcbrine's forks.
- Cleaned up the delete code to properly remove everything on uninstall including waiting for the service to shutdown fully
- Added python logging module configuration to the pyTivo.conf file to log DEBUG information both to the console and to a rotating file (debug.log in the pyTivo directory) by default. However, python logging module support only records output generated by log statements. Unfortunately GET requests and ffmpeg output goes directly to stdout and will NOT be logged by this config currently. (Hopefully we can fix the code eventually to log them properly.) The config used is:
| Code: |
[loggers]
keys=root
[handlers]
keys=console,rotfile
[formatters]
keys=basicform
[logger_root]
level=DEBUG
handlers=console,rotfile
[handler_console]
class=StreamHandler
formatter=basicform
args=(sys.stdout,)
[handler_rotfile]
class=logging.handlers.RotatingFileHandler
formatter=basicform
args=('C:\Program Files\pyTivo\debug.log', 'a', 10485760, 5)
[formatter_basicform]
format=%(asctime)s %(levelname)-5s %(name)s: %(message)s
class=logging.Formatter
|
The rotfile part rotates the file whenever it reaches 10MB (if you don't like that, change 10485760 to some other value in bytes) and will maintain 5 backup copies as debug.log.1 up through debug.log.5 (if you want to maintain fewer copies, change the 5 above to another number. 0 will effectively limit the debug.log file to 10MB without any backup copies.)
- Added pyTivo-wgw-2008.10.15-RC1.exe for wgw fork.
- Added pyTivo-wmcbrine-2008.08.20-RC1.exe for wmcbrine fork.[/url]
Last edited by rdian06 on Thu Aug 27, 2009 6:10 pm; edited 19 times in total |
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 1182
|
Posted: Tue Oct 21, 2008 3:12 am Post subject: |
|
|
wmcbrine Fork Windows Installers
Inside the zip file is an exe installer. The forum doesn't allow me to post exe files directly, so I had to zip it.
MAKE SURE YOU UNINSTALL OLDER WINDOWS INSTALLER VERSIONS BEFORE INSTALLING THIS VERSION. IF YOU DECIDE TO KEEP YOUR OLD pyTivo.conf, THEN YOU'LL HAVE TO ADD THE LOGGING CONFIG MANUALLY IF YOU WANT IT.
STABLE:
pyTivo-wmcbrine-2009.03.19-RC1.zip
** This installer uses an obsolete snapshot of the pyTivo code even though it is the latest one available. You MUST UPDATE IT MANUALLY with wmcbrine's latest git snapshot after completing the automated installation and before posting about any bugs to the Support forum. For instructions, see http://pytivo.sourceforge.net/forum/post7536.html#7536
NOTE: The location of ffmpeg.exe has changed to pyTivo\bin\ffmpeg.exe. If you are reusing an old conf file, you MUST update it manually to reflect the new location. Given the way this installer restructures the pyTivo install locations, it would be best to start over with a fresh conf file generated from the installer and recustomize.
- Based on http://repo.or.cz/w/pyTivo/wmcbrine.git?a=log;h=52bd2e20ead1626e546dc07240d311bde03c128e
- Has known issues with sending .tivo files back to the Tivo. Will be fixed in the next release.
- Windows 64 bit install issues fixed.
- First Windows installer release with working mp4 push without transcoding
- Modified config.py to look for pyTivo.conf in Windows Common Document pyTivo folder when running on Windows and add "temp" config option.
- "temp" config option defaults to the Windows Common Document pyTivo folder.
- Modified transcode.py to use "temp" path for videotest file
BETA RELEASE CANDIDATE:
None at this time.
ARCHIVE:
pyTivo-wmcbrine-2008.08.20-RC1.zip
- Removed pyTivo\plugins\video\pthreadGC2.dll because the ffmpeg_mp2.exe included with this fork already has it statically compiled in making the dll file extraneous.
- Has known issues installing on 64 bit Windows. Use the newer pyTivo-wmcbrine-2009.03.19-RC1 instead if you are running Windows 64 bit.
| Description: |
|
 Download |
| Filename: |
pyTivo-wmcbrine-2009.03.19-RC1.zip |
| Filesize: |
2.82 MB |
| Downloaded: |
10122 Time(s) |
| Description: |
|
 Download |
| Filename: |
pyTivo-wmcbrine-2008.08.20-RC1.zip |
| Filesize: |
3.43 MB |
| Downloaded: |
1082 Time(s) |
Last edited by rdian06 on Tue Oct 20, 2009 10:08 pm; edited 16 times in total |
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 1182
|
Posted: Tue Oct 21, 2008 3:12 am Post subject: |
|
|
wgw Fork Windows Installers
Inside the zip file is an exe installer. The forum doesn't allow me to post exe files directly, so I had to zip it.
MAKE SURE YOU UNINSTALL OLDER WINDOWS INSTALLER VERSIONS BEFORE INSTALLING THIS VERSION. IF YOU DECIDE TO KEEP YOUR OLD pyTivo.conf, THEN YOU'LL HAVE TO ADD THE LOGGING CONFIG MANUALLY IF YOU WANT IT.
STABLE:
pyTivo-wgw-2008.10.15-RC1.zip
- No fork specific changes
- Has known issues installing on 64 bit Windows. Use the newer pyTivo-wmcbrine-2008.03.19-RC1 instead if you are running Windows 64 bit.
BETA RELEASE CANDIDATES:
None at this time.
ARCHIVE:
None at this time.
| Description: |
|
 Download |
| Filename: |
pyTivo-wgw-2008.10.15-RC1.zip |
| Filesize: |
3.34 MB |
| Downloaded: |
375 Time(s) |
Last edited by rdian06 on Tue Mar 24, 2009 1:58 am; edited 10 times in total |
|
| Back to top |
|
 |
Iluvatar
Joined: 29 Feb 2008 Posts: 35
|
Posted: Tue Oct 21, 2008 2:36 pm Post subject: |
|
|
I tried the wgw version and it seemed to work just great. Thanks.
Are you including your updated FFMPEG or using the original included?
|
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 1182
|
Posted: Tue Oct 21, 2008 4:59 pm Post subject: |
|
|
| Iluvatar wrote: | I tried the wgw version and it seemed to work just great. Thanks.
Are you including your updated FFMPEG or using the original included? |
I'm trying to maintain maximum sync with the two forks for maintainability and troubleshooting so I'm refraining from adding any additional patches beyond dealing with Windows installer and logging configuration issues.
So at present, the wgw fork version uses the original ffmpeg while the wmcbrine fork uses my ffmpeg-SVN-r14196-rdian06-0.93 with the 5.1 channel mapping fix. wgw reverted the ffmpeg in his fork back to the original because there was some evidence that certain xvid encoded files were failing to transcode completely with ffmpeg-SVN-r14196-rdian06-0.93.
Once October is over and I have more free time, I'll be updating the ffmpeg builds again (think I found a fix for the xvid issue) and hopefully finish building for the other platforms.
|
|
| Back to top |
|
 |
pjschaffer
Joined: 07 May 2008 Posts: 9
|
Posted: Wed Jan 07, 2009 12:50 am Post subject: |
|
|
Is there any tricks to installing a new snapshot over the windows installer. I am currently using the WGW-2008.10.15 RC1 installer and am trying to update to the latest snapshot from WGW.
I'm running on 32 bit Vista Ultimate
What I have tried:
Stopped service
Renamed pyTivo directory to pyTivoold
Renamed downloaded snapshot to pyTivo
Copied pytivoservice.exe, pytivo.conf, config and pytivo shortcuts, and pytivo.bat from pytivoold to pytivo.
I then try to start the service. Windows reports that the service is started but when I try to perform a config, nothing is found on localhost:9032. If I stop the service and try the console, I get a couple of errors which I haven't copied down yet and the console never starts.
Any suggestions?
Phil
|
|
| Back to top |
|
 |
ebf
Joined: 22 Mar 2008 Posts: 118
|
Posted: Mon Jan 26, 2009 4:02 am Post subject: |
|
|
| pjschaffer wrote: | Is there any tricks to installing a new snapshot over the windows installer. I am currently using the WGW-2008.10.15 RC1 installer and am trying to update to the latest snapshot from WGW. ... |
Me too. Help please.
|
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 1182
|
Posted: Mon Jan 26, 2009 4:54 pm Post subject: |
|
|
I haven't had enough free time to build the updated installers. But if you're trying to update manually after having installed from an older version, I'd avoid renaming the existing directory.
Better to copy and paste the new files from the tar.gz snapshots into the current directory and let it auto-overwrite whatever it feels like (with the exception of your conf file of course.)
I'm hoping work finally lets up a bit this week and I'll have time to do some pyTivo catchup.
|
|
| Back to top |
|
 |
ebf
Joined: 22 Mar 2008 Posts: 118
|
Posted: Mon Jan 26, 2009 5:21 pm Post subject: |
|
|
| rdian06 wrote: | ... Better to copy and paste the new files from the tar.gz snapshots into the current directory and let it auto-overwrite whatever it feels like (with the exception of your conf file of course.) ... |
That is the method I had already tried, but I got the same result. I noticed your installer placed .pyc files in the install directory, where the normal snapshots have just .py files:
beacon.pyc
config.pyc
httpserver.pyc
lrucache.pyc
mind.pyc
plugin.pyc
Could that be the problem?
|
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 1182
|
Posted: Mon Jan 26, 2009 5:47 pm Post subject: |
|
|
| ebf wrote: | | rdian06 wrote: | ... Better to copy and paste the new files from the tar.gz snapshots into the current directory and let it auto-overwrite whatever it feels like (with the exception of your conf file of course.) ... |
That is the method I had already tried, but I got the same result. I noticed your installer placed .pyc files in the install directory, where the normal snapshots have just .py files:
beacon.pyc
config.pyc
httpserver.pyc
lrucache.pyc
mind.pyc
plugin.pyc
Could that be the problem? |
The Python interpreter generates the .pyc files (compiled Python) from the .py (text code) files automatically.
It's possible that the Python interpreter is confused by the presence of the old .pyc files (based on the old .py files) and is re-using them rather than generating new ones based on the new .py files.
After you do the copy/paste/overwrite, you should go through and delete all .pyc files before you startup pyTivo again.
I guess I'll add a Start Menu choice to the next version of the installers to do that automatically for the future.
|
|
| Back to top |
|
 |
ebf
Joined: 22 Mar 2008 Posts: 118
|
Posted: Mon Jan 26, 2009 6:02 pm Post subject: |
|
|
| rdian06 wrote: | ...
The Python interpreter generates the .pyc files (compiled Python) from the .py (text code) files automatically.
It's possible that the Python interpreter is confused by the presence of the old .pyc files (based on the old .py files) and is re-using them rather than generating new ones based on the new .py files.
After you do the copy/paste/overwrite, you should go through and delete all .pyc files before you startup pyTivo again.
I guess I'll add a Start Menu choice to the next version of the installers to do that automatically for the future. |
No luck. After trying overwrite and delete .pyc files. I can successfully run the pyTiVo Start Service option from the start menu, but when I try to connect to the web config page I immediately get "Firefox can't establish a connection to the server at 192.168.xx.xx:9032." I do get new .pyc files, but the service does not actually respond (nor do shares appear in the NPL).
I am trying to upgrade to wgw 2009-01-25. There seem to be a lot more files in that snapshot than in the installer from October.
|
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 1182
|
Posted: Mon Jan 26, 2009 6:20 pm Post subject: |
|
|
| ebf wrote: |
No luck. After trying overwrite and delete .pyc files. I can successfully run the pyTiVo Start Service option from the start menu, but when I try to connect to the web config page I immediately get "Firefox can't establish a connection to the server at 192.168.xx.xx:9032." I do get new .pyc files, but the service does not actually respond (nor do shares appear in the NPL).
I am trying to upgrade to wgw 2009-01-25. There seem to be a lot more files in that snapshot than in the installer from October. |
Don't run as a service. Run from Console and see what pyTivo outputs to the command window.
|
|
| Back to top |
|
 |
ebf
Joined: 22 Mar 2008 Posts: 118
|
Posted: Tue Jan 27, 2009 12:41 am Post subject: |
|
|
| rdian06 wrote: | | ebf wrote: |
No luck. After trying overwrite and delete .pyc files. I can successfully run the pyTiVo Start Service option from the start menu, but when I try to connect to the web config page I immediately get "Firefox can't establish a connection to the server at 192.168.xx.xx:9032." ... |
Don't run as a service. Run from Console and see what pyTivo outputs to the command window. |
OK, just got home and tried again... Trying to run pyTivo.py and a command window just flashes up and closes too quickly for me to read the result.
edit: I figured out how to run it from the command line to see the result:
| Code: | C:\Program Files\TiVo\pyTiVo>pytivo.py
Traceback (most recent call last):
File "C:\Program Files\TiVo\pyTiVo\pyTivo.py", line 18, in <module>
httpd.add_container(section, settings)
File "C:\Program Files\TiVo\pyTiVo\httpserver.py", line 31, in add_container
settings['content_type'] = GetPlugin(settings['type']).CONTENT_TYPE
File "C:\Program Files\TiVo\pyTiVo\plugin.py", line 21, in GetPlugin
module = __import__(module_name, globals(), locals(), name)
File "C:\Program Files\TiVo\pyTiVo\plugins\video\video.py", line 32, in <module>
if config.getHack83():
AttributeError: 'module' object has no attribute 'getHack83' |
|
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 1182
|
Posted: Tue Jan 27, 2009 12:58 am Post subject: |
|
|
There is a "Run in Console" choice from the pyTivo program group you can use.
As for that error, it seems you failed to overwrite pyTiVo\plugins\video\video.py with the newer version or delete pyTiVo\plugins\video\video.pyc because it's running the old code that has Hack83 support. The newer wgw and wmcbrine versions drop Hack83 because Tivo finally fixed the sub-folder issues.
|
|
| Back to top |
|
 |
ebf
Joined: 22 Mar 2008 Posts: 118
|
Posted: Tue Jan 27, 2009 1:02 am Post subject: |
|
|
| rdian06 wrote: | There is a "Run in Console" choice from the pyTivo program group you can use.
As for that error, it seems you failed to overwrite pyTiVo\plugins\video\video.py with the newer version or delete pyTiVo\plugins\video\video.pyc because it's running the old code that has Hack83 support. The newer wgw and wmcbrine versions drop Hack83 because Tivo finally fixed the sub-folder issues. |
Ah. I was only looking for .pyc files at the root level of the pyTivo folder. I'll try again...
|
|
| Back to top |
|
 |
|