hi,
we use working maya mocs modules, too.
Useful for testing, too, in some cases.
What is defined in your OpenMayaUI module?
Regards,
katrin
 
Gesendet: Mittwoch, 29. Juli 2015 um 12:27 Uhr
Von: "Justin Israel" <justinisr...@gmail.com>
An: "Python Programming for Autodesk Maya" <python_inside_maya@googlegroups.com>
Betreff: Re: [Maya-Python] Sphinx - autodoc import error

I've never tried to mock Maya's modules. Is it a seg fault crash, or a python crash? I forget if Mock needs to import and inspect it. Does it import properly even?

 
On Thu, 30 Jul 2015 12:05 AM johan Borgström <jo...@petfactory.se> wrote:
Hi,
 
I am using Sphinx to create documentation and I get import errors when building. I use Mock in the conf.py file:
 
import mock
 
for mod in ['maya', 'maya.cmds', 'maya.OpenMaya', 'maya.api.OpenMaya', 'pymel', 'pymel.core', 'maya.mel', 'pm']:
    sys.modules[mod] = mock.MagicMock()

 
It works fine for most of the modules but when I add maya.OpenMayaUI to the list the build process crashes. I am really new to Sphinx, so any tips or ideas are welcomed!
 
Best,
Johan

 

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/9916ae08-7d47-44f7-876f-feb3af7014b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2q18hVyKhEYcy4p%2BqTGTovSqN85X_d2DYDGgY1-nWktg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/trinity-fdabedd5-41eb-49d8-8659-11b401992387-1438226378576%403capp-gmx-bs11.
For more options, visit https://groups.google.com/d/optout.

Reply via email to