Hi Takeshi,
We're having some problems building the sympy docs with 3.1.1 and if
this is something that should be fixed in sympy or in sphinx:
https://github.com/sympy/sympy/issues/19551
https://github.com/sympy/sympy/pull/19554
It seems that where there is a function that has the same name as a
module the py:func etc references won't work. For example there is a
class Order with fully qualified name sympy.series.order.Order but a
reference to the fully qualified name fails to find it. It seems this
is because there is also a function called series which is available
in sympy/__init__.py that conflicts with the package name.
>>> from sympy.series.order import Order
>>> Order
<class 'sympy.series.order.Order'>
However:
>>> import sympy
>>> sympy.series.order.Order
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'function' object has no attribute 'order'
>>> sympy.series
<function series at 0x1108b4790>
I think that sphinx 3.1.1 is doing something analogous:
WARNING: autodoc: failed to import class 'series.order.Order' from
module 'sympy'; the following exception was raised:
Traceback (most recent call last):
File "/Users/enojb/current/sympy/38venv/lib/python3.8/site-packages/sphinx/util/inspect.py",
line 324, in safe_getattr
return getattr(obj, name, *defargs)
AttributeError: 'function' object has no attribute 'order'
These are the references:
$ git grep sympy.series.order.Order
doc/src/gotchas.rst:<sympy.core.evalf.N>`, ``C``, :obj:`O
<sympy.series.order.Order>`, or :obj:`Q
doc/src/modules/series/series.rst:.. autoclass:: sympy.series.order.Order
Oscar