-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sphinx_automodapi.automodsumm doesn't resolve autodoc_mock_imports #148
Comments
I get a similar problem with The error in more detail:
Let me know if I a minimal example would help. Would be great if anyone has an idea how to fix it on my side or how to fit it in the package. |
I don't think Astropy uses Unfortunately, we do not have enough resources to look at this in the near future. So, if you can propose a patch or find a way to work around it, it would be greatly appreciated. Thanks! |
@pllim not sure if my use case is the same, so I'll describe it here and if it's not, then I guess we can move it to a fresh issue I am working on a python package for which 1 module uses PyTorch. This module is for supporting a specific set of operations that many users won't need, so I didn't want to install it everytime and basically created Now for building the docs for my API it seems weird to me that PyTorch needs to be installed in the environment in which I do In fact, I get this,
I also tried to do Is this the same problem? If yes, what is the best course of action? |
@HealthyPear , I am not able to answer this on top of my head and I don't have time to investigate, you could try ask the astropy-dev mailing list or on https://community.openastronomy.org/c/astropy/8 ? Sorry! |
I have a python package module that imports 3rd party modules which aren't included in the sphinx documentation. So I added these modules to mock imports in the
conf.py
While using the mock imports works with the sphinx
automodule
directive without throwing an error.I get the an error when using the module with
automodapi
directive.Error:
The text was updated successfully, but these errors were encountered: