 |
pyTivo Discussion Forum Answers and the development of pyTivo a TiVo transcoding server
|
|
| Author |
Message |
Royal2000H
Joined: 23 Feb 2008 Posts: 5
|
Posted: Sat Feb 23, 2008 3:55 pm Post subject: NoSectionError |
|
|
i downloaded the latest snapshot from the wmcbrine site..
I put it in C:\Program Files\pyTivo\
I edited the pyTivo.conf.dist and renamed it to pyTivo.conf
i double clicked pyTivo.py
and it flashes command prompt and closes... I managed to screenshot it and find this error
| Code: |
Traceback (most recent call last):
File "C:\Program Files\pyTivo\pyTivo.py", line 3, in <module>
import beacon, httpserver, os, sys
File "C:\Program Files\pyTivo\httpserver.py", line 12, in <module>
debug = config.getDebug()
File "C:\Program Files\pyTivo\config.py", line 80, in getDebug
return config.getboolean('Server', 'debug')
File "C:\Program Files\Python25\lib\ConfigParser.py", line 330, in getboolean
v = self.get(section, option)
File "C:\Program Files\Python25\lib\ConfigParser.py", line 511, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No Section: 'Server' |
|
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 514
|
Posted: Sat Feb 23, 2008 4:58 pm Post subject: |
|
|
So, like it says, you need a "Server" section in your pyTivo.conf. If you want more than that, post your pyTivo.conf.
_________________ My pyTivo fork |
|
| Back to top |
|
 |
Royal2000H
Joined: 23 Feb 2008 Posts: 5
|
Posted: Sat Feb 23, 2008 5:33 pm Post subject: |
|
|
thats the problem...
i do have the server section...
ill also upload a snapshot of my PyTivo folder so you can see it's actually called pyTivo.conf and not .conf.dist
| Code: |
# This is an example config file, showing all the options. You probably
# won't need most of them. Your working config file will be named
# "pyTivo.conf". '#' starts a comment.
[Server]
port=9032
# Full path to ffmpeg including filename
# For windows: ffmpeg=c:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
# For linux: ffmpeg=/usr/bin/ffmpeg
ffmpeg=c:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
#ffmpeg=/usr/bin/ffmpeg
# This will make a large debug.txt file in your base directory. It only
# debugs transcode.py right now.
#debug=false
# Max video bitrate, default 17408k
# sets ffmpeg -maxrate setting to minimize bitrate peak playback issues.
# mpegs with video bitrate above this setting will also be transcoded.
#MAX_VIDEO_BR=17408k
# Audio bit-rate, defaults to 192K for S2, 384K for S3/HD
#audio_br=320K
# Video bit-rate, defaults to 4096K for S2, 8192K for S3/HD
#video_br=12Mi
# Beacon broadcast address(es)
# The default is 255.255.255.255, but on some multihomed machines you
# may need to specify the subnet broadcast address(es) of your Tivo
# boxes. You can also specify "listen" to listen for direct connection
# attempts on port 2190, for use with the "Manually add a server..."
# function. (And if you set beacon to listen _only_, it turns off
# broadcasts.)
#beacon=192.168.1.255 listen
# Output Pixel Width:
# Width, defaults to 544 for S2, 1280 for S3/HD
# Height, defaults to 480 for S2, 720 for S3/HD
# Valid widths: [S3/HD = 1920, 1440, 1280], [S2/S3/HD = 720, 704, 544, 480, 352]
# Valid heights: [S3/HD = 1080, 720], [S2/S3/HD = 480]
#width=1280
#height=720
#ffmpeg_prams=-vcodec mpeg2video -r 29.97 -b %(video_br)s -maxrate %(max_video_br)s -bufsize %(buff_size)s %(aspect_ratio)s -comment pyTivo.py -ab %(audio_br)s %(audio_fr)s %(audio_codec)s -f vob -
# Per tivo options
# section named _tivo_TSN with the tsn in all caps
#[_tivo_00000DEADBEEF]
# If you want to use 16:9 or 4:3 on this tivo
#aspect169=true
#width=1440
#height=720
#audio_br=320K
#video_br=12Mi
#ffmpeg_prams=-vcodec mpeg2video -r 29.97 -b %(video_br)s -maxrate %(max_video_br)s -bufsize %(buff_size)s %(aspect_ratio)s -comment pyTivo.py -ab %(audio_br)s %(audio_fr)s %(audio_codec)s -f vob -
[Movies]
# Type can be 'video', 'music', or 'photo'
type=video
# Path is the full path to your files (No trailing slash needed)
# For windows: path=c:\videos
# For linux: path=/media
#path=/home/armooo/Videos
path=c:\Users\Roy\Videos
# Make all subfolders in to top level shares
#auto_subshares=True
# You can have more than one share
#[MyTelevision]
#type=video
#path=d:\television
|
| Description: |
|
| Filesize: |
94.16 KB |
| Viewed: |
220 Time(s) |

|
|
|
| Back to top |
|
 |
billdog79
Joined: 04 Jan 2008 Posts: 40 Location: Gulf Breeze, FL
|
Posted: Sat Feb 23, 2008 7:19 pm Post subject: |
|
|
You could simplify your config file so that any problem might be easier to spot. The sample dist file is meant to guide you in the making of a new file named pyTivo.conf.
| Quote: |
[Server]
port = 9032
ffmpeg=c:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
[Movies]
type = video
path=c:\Users\Roy\Videos
|
|
|
| Back to top |
|
 |
Royal2000H
Joined: 23 Feb 2008 Posts: 5
|
Posted: Sat Feb 23, 2008 7:43 pm Post subject: |
|
|
i know...
but shortening it doesnt solve any problems....
i tried krkeegan's installer from this site too.. 2-21 version..
also doesn't work- same error
|
|
| Back to top |
|
 |
billdog79
Joined: 04 Jan 2008 Posts: 40 Location: Gulf Breeze, FL
|
Posted: Sat Feb 23, 2008 8:24 pm Post subject: |
|
|
Are you sure that port 9032 isn't being used by another program? This is unlikely but doesn't hurt to check.
Last edited by billdog79 on Sat Feb 23, 2008 8:51 pm; edited 1 time in total |
|
| Back to top |
|
 |
PaulS
Joined: 04 Jan 2008 Posts: 148
|
Posted: Sat Feb 23, 2008 8:30 pm Post subject: |
|
|
| I'd suggest trying billdog79's simplified config first. If that works, then there's likely a parsing or end-of-line problem with your config file. If it doesn't work, then you've likely got a problem outside of your config file that we can help you troubleshoot.
|
|
| Back to top |
|
 |
Royal2000H
Joined: 23 Feb 2008 Posts: 5
|
Posted: Sat Feb 23, 2008 8:55 pm Post subject: |
|
|
it cant be the config file because like i said i tried krkeegan's installer which set up the file for me (short version) and it still errors with the same error...
tried a bunch of other ports... no go...
by the way- i have vista home premium with UAC on..could the be the problem?
edit:
turned off UAC and rebooted... one of them solved it... works now
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|