Hello,
> logging.config.fileConfig(os.getcwd() + "/log/logconf.ini")
>
> and this is where Sphinx stops:
>
> Exception occurred:[ 33%]
> developer_guide
> File "/Library/Frameworks/Python.framework/Versions/4.0.30002/lib/
> python2.5/ConfigParser.py", line 511, in get
> raise NoSectionError(section)
> NoSectionError: No section: 'formatters'
This error happens when fileConfig can't find ini file.
Make sure that 'os.getcwd() + "/log/logconf.ini"' really
exists.
HTH,
--
Regards,
Wojtek Walczak,
http://tosh.pl/gminick/
Hi,
>>> logging.config.fileConfig(os.getcwd() + "/log/logconf.ini")
...
>>> NoSectionError: No section: 'formatters'
>> This error happens when fileConfig can't find ini file.
>> Make sure that 'os.getcwd() + "/log/logconf.ini"' really
>> exists.
...
> Yes, this log file really exists and it's working as expected.
> Problem is showing up only when I want to build documentation with
> Sphinx :(
I believe that the file exists and that there is no syntax errors
in this file. My point is that: what if Sphinx is changing
the current working directory to one of its subdirectories
before running this:
logging.config.fileConfig(os.getcwd() + "/log/logconf.ini")
...and in result the path you are providing is not correct.
What about printing the path right before using fileConfig
to make sure that it's correct?
> BTW, good luck with your GSOC project, Wojtek!
Thanks, a bit of luck might help, really :)