Sphinx / sys.path

mining.facts at googlemail.com mining.facts at googlemail.com
Sat Oct 27 10:02:30 EDT 2012


So now it works, but taking my project get some trouble. I use in MyData my ConfigParser Class for configuration issues. The project.ini file is in /project and has some entries. 

[Logging]
my_data:MyData.py#/tmp/MyData.log#logging.WARN

I guess Sphinx has trouble to load the ini-file!?

Thanks for help
Christian

File "/usr/local/lib/python2.7/site-packages/Sphinx-1.1.3-py2.7.egg/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/home/chris/projekte/dev/my/module/project/MyData.py", line 17, in <module>
    vec = conf.ConfigSectionMap('Logging')['my_data'].split('#')

/home/chris/projekte/dev/my/module/doc/source/index.rst:42: WARNING: autodoc can't import/find module 'MyData', it reported error: "No section: 'Logging'", please check your spelling and sys.path



More information about the Python-list mailing list