Closed aryabhatta-dey closed 6 months ago
Building the documentation currently fails on the latest develop branch with the following error:
develop
Traceback (most recent call last): File "/home/arya/Dev/ganga/doc/fill_gpi.py", line 143, in <module> print(' .. method:: {signature}'.format(signature=signature(f)), file=cf) ^^^^^^^^^^^^ File "/home/arya/Dev/ganga/doc/fill_gpi.py", line 69, in signature args, varargs, varkw, defaults = inspect.getargspec(func) ^^^^^^^^^^^^^^^^^^ AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
This error is due to the getargspec method being deprecated and replaced by getfullargspec, as mentioned here.
getargspec
getfullargspec
Replacing inspect.getargspec with inspect.getfullargspec solves the error.
inspect.getargspec
inspect.getfullargspec
I have tested the change on Python 3.7.17 (the oldest version that satisfies the dependencies) and on Python 3.12.3. In both the versions running:
cd doc make html
executes successfully and generates the build as expected.
Building the documentation currently fails on the latest
develop
branch with the following error:This error is due to the
getargspec
method being deprecated and replaced bygetfullargspec
, as mentioned here.Replacing
inspect.getargspec
withinspect.getfullargspec
solves the error.I have tested the change on Python 3.7.17 (the oldest version that satisfies the dependencies) and on Python 3.12.3. In both the versions running:
executes successfully and generates the build as expected.