[SOLVED] How to get sphinx to ignore Maya specific modules?
2 2

5 posts in this topic

Hello! I'm starting to figure out how to use sphinx for my own documentation. I'm using autodoc and building the documentation from the command line. I keep getting import errors for modules such as Qt.py and maya.cmds whenever I try to build my code.  

I'm using the correct virtual env, the modules are installed in the venv. I'm at a loss! I've seen that you guys use sphinx for your documentation, any tips?

Thanks!

 

Share this post


Link to post
Share on other sites

Thanks guys! I've tried using the auto_mock_imports variable and it's doing the trick for the most part. There are a couple of stragglers but I think I can figure it out from here. I'll try to let you know how it goes.

 

Share this post


Link to post
Share on other sites

The solution Mattias linked to worked perfectly. Not sure what went wrong with your suggestion, Marin, but it just didn't pick up everything. Thanks for the help!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
2 2