Piotrek Byzia napisaƂ(a):

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 :)


-- 
Regards,
Wojtek Walczak,
http://tosh.pl/gminick/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to