Skip to content

module 'inspect' has no attribute 'getargspec' #377

@Timoses

Description

@Timoses
ERROR:castervoice.ContextManager:Error while applying plugin specific context in context 'caster_timoses.tmux'. Unable to get context for plugin caster_timoses.tmux: module 'inspect' has no attribute 'getargspec'
Traceback (most recent call last):
  File "/opt/code/voice/caster-core/castervoice/core/context.py", line 71, in load
    .get_plugin_context(self._plugin_id,
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/code/voice/caster-core/castervoice/core/context_manager.py", line 85, in get_plugin_context
    .get_context(plugin_id, desired_state)
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/code/voice/caster-core/castervoice/core/plugin/plugin_manager.py", line 160, in get_context
    get(plugin_id, None).get_context(desired_state)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/code/voice/caster-timoses/caster_timoses/tmux/__init__.py", line 104, in get_context
    context = FuncContext(pane_cmd, **defaults)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/code/voice/venv3/lib/python3.11/site-packages/dragonfly/grammar/context.py", line 393, in __init__
    (args, _, varkw, defaults) = inspect.getargspec(self._function)
                                 ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'

According to inspect documentation (python 3.11) getargspec is legacy.

> pip list | grep dragon
dragonfly2           0.35.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions