You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[BUG]when I followed Contributing guildline ,found scripts/generate_release_notes.py:82: error: Module has no attribute "BooleanOptionalAction" [attr-defined]
#1603
Closed
peter-ni-noob opened this issue
Dec 22, 2023
· 5 comments
[env]linux unbuntu 18,python=3.8.raw conda envirionment.
I just follow the CONTRIBUTING.rst,and dont change anything,after "make setup","make pre-commit" is not passed because :
scripts/generate_release_notes.py:82: error: Module has no attribute "BooleanOptionalAction" [attr-defined]
Found 1 error in 1 file (checked 339 source files)
rst code is two backticks............................................Passed
rstcheck.................................................................Failed
hook id: rstcheck
exit code: 1
WARNING:rstcheck_core.checker:An AttributeError error occured. This is most probably due to a code block directive (code/code-block/sourcecode) without a specified language. This may result in a false negative for source: 'docs/source/contributing.rst'. The reason can also be another directive. For more information see the FAQ (https://rstcheck-core.rtfd.io/en/latest/faq) or the corresponding github issue: rstcheck/rstcheck-core#3.
WARNING:rstcheck_core.checker:An AttributeError error occured. This is most probably due to a code block directive (code/code-block/sourcecode) without a specified language. This may result in a false negative for source: 'docs/source/changelog.rst'. The reason can also be another directive. For more information see the FAQ (https://rstcheck-core.rtfd.io/en/latest/faq) or the corresponding github issue: rstcheck/rstcheck-core#3.
WARNING:rstcheck_core.checker:An AttributeError error occured. This is most probably due to a code block directive (code/code-block/sourcecode) without a specified language. This may result in a false negative for source: 'docs/source/index.rst'. The reason can also be another directive. For more information see the FAQ (https://rstcheck-core.rtfd.io/en/latest/faq) or the corresponding github issue: rstcheck/rstcheck-core#3.
docs/source/api.rst:4: (INFO/1) No directive entry for "automodule" in module "docutils.parsers.rst.languages.en".
docs/source/api.rst:4: (ERROR/3) Unknown directive type "automodule".
docs/source/api.rst:5: (INFO/1) No directive entry for "automodule" in module "docutils.parsers.rst.languages.en".
docs/source/api.rst:5: (ERROR/3) Unknown directive type "automodule".
docs/source/modules.rst:4: (INFO/1) No directive entry for "autosummary" in module "docutils.parsers.rst.languages.en".
docs/source/modules.rst:4: (ERROR/3) Unknown directive type "autosummary".
Error! Issues detected.
The text was updated successfully, but these errors were encountered:
Hi @peter-ni-noob, it seems you're right as BooleanOptionalAction is not available for python3.8
The issue is with our internal script that supports our release process. I guess it'd be fine just suppress the error if possible.
[env]linux unbuntu 18,python=3.8.raw conda envirionment.
I just follow the CONTRIBUTING.rst,and dont change anything,after "make setup","make pre-commit" is not passed because :
scripts/generate_release_notes.py:82: error: Module has no attribute "BooleanOptionalAction" [attr-defined]
Found 1 error in 1 file (checked 339 source files)
rst
code
is two backticks............................................Passedrstcheck.................................................................Failed
WARNING:rstcheck_core.checker:An
AttributeError
error occured. This is most probably due to a code block directive (code/code-block/sourcecode) without a specified language. This may result in a false negative for source: 'docs/source/contributing.rst'. The reason can also be another directive. For more information see the FAQ (https://rstcheck-core.rtfd.io/en/latest/faq) or the corresponding github issue: rstcheck/rstcheck-core#3.WARNING:rstcheck_core.checker:An
AttributeError
error occured. This is most probably due to a code block directive (code/code-block/sourcecode) without a specified language. This may result in a false negative for source: 'docs/source/changelog.rst'. The reason can also be another directive. For more information see the FAQ (https://rstcheck-core.rtfd.io/en/latest/faq) or the corresponding github issue: rstcheck/rstcheck-core#3.WARNING:rstcheck_core.checker:An
AttributeError
error occured. This is most probably due to a code block directive (code/code-block/sourcecode) without a specified language. This may result in a false negative for source: 'docs/source/index.rst'. The reason can also be another directive. For more information see the FAQ (https://rstcheck-core.rtfd.io/en/latest/faq) or the corresponding github issue: rstcheck/rstcheck-core#3.docs/source/api.rst:4: (INFO/1) No directive entry for "automodule" in module "docutils.parsers.rst.languages.en".
docs/source/api.rst:4: (ERROR/3) Unknown directive type "automodule".
docs/source/api.rst:5: (INFO/1) No directive entry for "automodule" in module "docutils.parsers.rst.languages.en".
docs/source/api.rst:5: (ERROR/3) Unknown directive type "automodule".
docs/source/modules.rst:4: (INFO/1) No directive entry for "autosummary" in module "docutils.parsers.rst.languages.en".
docs/source/modules.rst:4: (ERROR/3) Unknown directive type "autosummary".
Error! Issues detected.
The text was updated successfully, but these errors were encountered: