Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32270 > unrolled thread
| Started by | mining.facts@googlemail.com |
|---|---|
| First post | 2012-10-27 03:18 -0700 |
| Last post | 2012-10-27 07:02 -0700 |
| Articles | 4 — 2 participants |
Back to article view | Back to comp.lang.python
Sphinx / sys.path mining.facts@googlemail.com - 2012-10-27 03:18 -0700
Re: Sphinx / sys.path mining.facts@googlemail.com - 2012-10-27 03:33 -0700
Re: Sphinx / sys.path Dave Angel <d@davea.name> - 2012-10-27 06:33 -0400
Re: Sphinx / sys.path mining.facts@googlemail.com - 2012-10-27 07:02 -0700
| From | mining.facts@googlemail.com |
|---|---|
| Date | 2012-10-27 03:18 -0700 |
| Subject | Sphinx / sys.path |
| Message-ID | <15bad12d-5806-48f8-89dd-47e9df3de9e8@googlegroups.com> |
Hi, I figure out how it works with sphinx documentation. But I'm stucked in the sys.path issue? sys.path.insert(0, '/home/chris/projekte/dev/testmodule') /home/chris/projekte/dev/testmodule/doc/source/code.rst:4: WARNING: autodoc can't import/find module 'myproject', it reported error: "No module named useful_1", please check your spelling and sys.path Thanks in advance Christian +-- doc | +-- build | | +-- doctrees | | | +-- code.doctree | | | +-- environment.pickle | | | +-- index.doctree | | +-- genindex.html | | +-- html | | | +-- code.html | | | +-- genindex.html | | | +-- index.html | | | +-- objects.inv | | | +-- py-modindex.html | | | +-- search.html | | | +-- searchindex.js | | | +-- _sources | | | | +-- code.txt | | | | +-- index.txt | | | +-- _static | | | +-- ajax-loader.gif | | | +-- basic.css | | | +-- comment-bright.png | | | +-- comment-close.png | | | +-- comment.png | | | +-- default.css | | | +-- doctools.js | | | +-- down.png | | | +-- down-pressed.png | | | +-- file.png | | | +-- jquery.js | | | +-- minus.png | | | +-- plus.png | | | +-- pygments.css | | | +-- searchtools.js | | | +-- sidebar.js | | | +-- underscore.js | | | +-- up.png | | | +-- up-pressed.png | | | +-- websupport.js | | +-- index.html | | +-- objects.inv | | +-- search.html | | +-- searchindex.js | | +-- _sources | | | +-- index.txt | | +-- _static | | +-- ajax-loader.gif | | +-- basic.css | | +-- comment-bright.png | | +-- comment-close.png | | +-- comment.png | | +-- default.css | | +-- doctools.js | | +-- down.png | | +-- down-pressed.png | | +-- file.png | | +-- jquery.js | | +-- minus.png | | +-- plus.png | | +-- pygments.css | | +-- searchtools.js | | +-- sidebar.js | | +-- underscore.js | | +-- up.png | | +-- up-pressed.png | | +-- websupport.js | +-- make.bat | +-- Makefile | +-- source | +-- code.rst | +-- conf.py | +-- index.rst | +-- _static | +-- _templates +-- myproject | +-- __init__.py | +-- __init__.pyc | +-- usefuel1.py | +-- usefuel1.pyc | +-- usefuel2.py | +-- usefuel2.pyc +-- README +-- setup.py +-- tests
[toc] | [next] | [standalone]
| From | mining.facts@googlemail.com |
|---|---|
| Date | 2012-10-27 03:33 -0700 |
| Message-ID | <4d8ede81-b3f0-4002-93c9-2b89205ce4e4@googlegroups.com> |
| In reply to | #32270 |
Got it spelling error!
[toc] | [prev] | [next] | [standalone]
| From | Dave Angel <d@davea.name> |
|---|---|
| Date | 2012-10-27 06:33 -0400 |
| Message-ID | <mailman.2932.1351334032.27098.python-list@python.org> |
| In reply to | #32270 |
On 10/27/2012 06:18 AM, mining.facts@googlemail.com wrote: > Hi, > > I figure out how it works with sphinx documentation. But I'm stucked > in the sys.path issue? > > sys.path.insert(0, '/home/chris/projekte/dev/testmodule') > > /home/chris/projekte/dev/testmodule/doc/source/code.rst:4: WARNING: autodoc can't import/find module 'myproject', it reported error: "No module named useful_1", please check your spelling and sys.path I have no idea if it's the ONLY problem, but the module below isn't called useful_1, it's called usefuel1. Notice there are two differences. > Thanks in advance > Christian > > > +-- doc > | +-- build > | | +-- doctrees > | | | +-- code.doctree > | | | +-- environment.pickle > | | | +-- index.doctree > | | +-- genindex.html > | | +-- html > | | | +-- code.html > | | | +-- genindex.html > | | | +-- index.html > | | | +-- objects.inv > | | | +-- py-modindex.html > | | | +-- search.html > | | | +-- searchindex.js > | | | +-- _sources > | | | | +-- code.txt > | | | | +-- index.txt > | | | +-- _static > | | | +-- ajax-loader.gif > | | | +-- basic.css > | | | +-- comment-bright.png > | | | +-- comment-close.png > | | | +-- comment.png > | | | +-- default.css > | | | +-- doctools.js > | | | +-- down.png > | | | +-- down-pressed.png > | | | +-- file.png > | | | +-- jquery.js > | | | +-- minus.png > | | | +-- plus.png > | | | +-- pygments.css > | | | +-- searchtools.js > | | | +-- sidebar.js > | | | +-- underscore.js > | | | +-- up.png > | | | +-- up-pressed.png > | | | +-- websupport.js > | | +-- index.html > | | +-- objects.inv > | | +-- search.html > | | +-- searchindex.js > | | +-- _sources > | | | +-- index.txt > | | +-- _static > | | +-- ajax-loader.gif > | | +-- basic.css > | | +-- comment-bright.png > | | +-- comment-close.png > | | +-- comment.png > | | +-- default.css > | | +-- doctools.js > | | +-- down.png > | | +-- down-pressed.png > | | +-- file.png > | | +-- jquery.js > | | +-- minus.png > | | +-- plus.png > | | +-- pygments.css > | | +-- searchtools.js > | | +-- sidebar.js > | | +-- underscore.js > | | +-- up.png > | | +-- up-pressed.png > | | +-- websupport.js > | +-- make.bat > | +-- Makefile > | +-- source > | +-- code.rst > | +-- conf.py > | +-- index.rst > | +-- _static > | +-- _templates > +-- myproject > | +-- __init__.py > | +-- __init__.pyc > | +-- usefuel1.py > | +-- usefuel1.pyc > | +-- usefuel2.py > | +-- usefuel2.pyc > +-- README > +-- setup.py > +-- tests -- DaveA
[toc] | [prev] | [next] | [standalone]
| From | mining.facts@googlemail.com |
|---|---|
| Date | 2012-10-27 07:02 -0700 |
| Message-ID | <e62867e9-2e7c-4b66-88cf-0b5333f03735@googlegroups.com> |
| In reply to | #32270 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web