Hi Justin and Katrin,

Thanks for your replies!

The error was in one of my scripts that were using the maya.OpenMayaUI 
module. When I removed that script the import of all the modules works fine.

Best Regards,
Johan


On Wednesday, July 29, 2015 at 2:05:17 PM UTC+2, johan Borgström 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/e8f00986-129d-4313-bf74-a020588478f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to