Post-processing script - NoSection Error help...
Posted: April 26th, 2012, 4:48 pm
Hey,
I'm a noob here, and trying to get my setup up and running with Sickbeard. I'm running Sab version 0.6.7 on unRAID 5.0b13. I'm trying to get Sab to move the downloaded files to the appropriate folders after they download. I've configured Sab to point to the directory where the autoprocessTV.cfg and scripts are located, and it seems all is well.
But, once a download completes, and the script runs, it gives me the following error:
Loading config from /mnt/user/Videos/NZBs/Scripts/autoProcessTV.cfg
Traceback (most recent call last):
File "/mnt/user/Videos/NZBs/Scripts/sabToSickBeard.py", line 29, in <module>
autoProcessTV.processEpisode(sys.argv[1], sys.argv[2])
File "/mnt/user/Videos/NZBs/Scripts/autoProcessTV.py", line 56, in processEpisode
host = config.get("SickBeard", "host")
File "/usr/lib/python2.6/ConfigParser.py", line 531, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'SickBeard'
My autoProcessTV.cfg (which was renamed from autoProcessTV.cfg.sample) is below. From some very basic troubleshooting, it seems that it is finding the file and recognizing it, since when i change the name of the file to something else (like autoPro.cfg), it gives me an error to rename and edit the .sample file. So it seems to recognize the file, just not the [SickBeard] section of the file.
[SickBeard]
host=127.0.0.1
port=8082
username=
password=
web_root=
ssl=0
Sickbeard is on the same server, port 8082.
No matter what I do, I get the error "Exit(1) ConfigParser.NoSectionError: No section: ’SickBeard’" and can't get it to work.
Any other things I can try?? Thanks in advance.
I'm a noob here, and trying to get my setup up and running with Sickbeard. I'm running Sab version 0.6.7 on unRAID 5.0b13. I'm trying to get Sab to move the downloaded files to the appropriate folders after they download. I've configured Sab to point to the directory where the autoprocessTV.cfg and scripts are located, and it seems all is well.
But, once a download completes, and the script runs, it gives me the following error:
Loading config from /mnt/user/Videos/NZBs/Scripts/autoProcessTV.cfg
Traceback (most recent call last):
File "/mnt/user/Videos/NZBs/Scripts/sabToSickBeard.py", line 29, in <module>
autoProcessTV.processEpisode(sys.argv[1], sys.argv[2])
File "/mnt/user/Videos/NZBs/Scripts/autoProcessTV.py", line 56, in processEpisode
host = config.get("SickBeard", "host")
File "/usr/lib/python2.6/ConfigParser.py", line 531, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'SickBeard'
My autoProcessTV.cfg (which was renamed from autoProcessTV.cfg.sample) is below. From some very basic troubleshooting, it seems that it is finding the file and recognizing it, since when i change the name of the file to something else (like autoPro.cfg), it gives me an error to rename and edit the .sample file. So it seems to recognize the file, just not the [SickBeard] section of the file.
[SickBeard]
host=127.0.0.1
port=8082
username=
password=
web_root=
ssl=0
Sickbeard is on the same server, port 8082.
No matter what I do, I get the error "Exit(1) ConfigParser.NoSectionError: No section: ’SickBeard’" and can't get it to work.
Any other things I can try?? Thanks in advance.