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
When doing the tutorial with Python version 3.11, encountered the following error when running invoke build debug:
File "...\Lib\site-packages\invoke\tasks.py", line 153, in argspec
spec = inspect.getargspec(func)
^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
Error is related to this issue (pyinvoke/invoke#833) in the 'invoke' Python library where the function getargspec (deprecated and now removed in Python 3.11) for the 'inspect' module is being called.
As a workaround until the 'invoke' library is updated to handle the new function, getfullargspec (https://docs.python.org/3.11/library/inspect.html), you can just modify the line in "...\Lib\site-packages\invoke\tasks.py" to:
spec = inspect.getfullargspec(func)
The text was updated successfully, but these errors were encountered:
DistantVoyager
changed the title
'AttributeError' in the 'invoke' dependency when using Python >=3.11
AttributeError in the 'invoke' dependency when using Python >=3.11
Nov 3, 2022
When doing the tutorial with Python version 3.11, encountered the following error when running
invoke build debug
:Error is related to this issue (pyinvoke/invoke#833) in the 'invoke' Python library where the function
getargspec
(deprecated and now removed in Python 3.11) for the 'inspect' module is being called.As a workaround until the 'invoke' library is updated to handle the new function,
getfullargspec
(https://docs.python.org/3.11/library/inspect.html), you can just modify the line in "...\Lib\site-packages\invoke\tasks.py" to:The text was updated successfully, but these errors were encountered: