Feb 8, 2013

[sphinx] autodoc soleved importing compiled module

I sometime got same error when I used sphinx-build with automodule.
like this..
Traceback (most recent call last):
  File "C:\Python26\lib\site-packages\sphinx-1.1.3-py2.6.egg\sphinx\ext\autodoc.
py", line 321, in import_object
    __import__(self.modname)
  File "c:/home/ikuta/projects/nuke/scripts\yi\replacePath.py", line 28, in <mod
ule>
    import nuke
  File "C:/Program Files/Nuke6.3v5/plugins\nuke\__init__.py", line 23, in <modul
e>
    from _nuke import *
ImportError: No module named _nuke
I soleved this error. It cause from compiled module.
so, I made a dummy module for sphinx-build with automodule.
for example:

Make dummy dir "c:/home/doc/source"
Make nuke dirctory and __init__.py
Added sys.path.append(c:/home/doc/source) for conf.py
Then execute sphinx-build

Feb 7, 2013

[memo][Maya-Python] Useing Sphinx