Skip to content

Module 'inspect' has no attribute 'getargspec' #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
PredictiveManish opened this issue Jan 29, 2025 · 0 comments
Open

Module 'inspect' has no attribute 'getargspec' #1

PredictiveManish opened this issue Jan 29, 2025 · 0 comments

Comments

@PredictiveManish
Copy link

AttributeError: module 'inspect' has no attribute 'getargspec'
Traceback:
File "C:\Users\manis\OneDrive\Desktop\New folder\Finance-Agent-Powered-by-DeepSeek-R1\agent\Lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 88, in exec_func_with_error_handling
    result = func()
File "C:\Users\manis\OneDrive\Desktop\New folder\Finance-Agent-Powered-by-DeepSeek-R1\agent\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 579, in code_to_exec
    exec(code, module.__dict__)
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\manis\OneDrive\Desktop\New folder\Finance-Agent-Powered-by-DeepSeek-R1\app.py", line 2, in <module>
    from phi.agent import Agent
File "C:\Users\manis\OneDrive\Desktop\New folder\Finance-Agent-Powered-by-DeepSeek-R1\agent\Lib\site-packages\phi\__init__.py", line 13, in <module>
    from . import python_builder
File "C:\Users\manis\OneDrive\Desktop\New folder\Finance-Agent-Powered-by-DeepSeek-R1\agent\Lib\site-packages\phi\python_builder.py", line 37, in <module>
    PythonBuilder.Register2(f, "")
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
File "C:\Users\manis\OneDrive\Desktop\New folder\Finance-Agent-Powered-by-DeepSeek-R1\agent\Lib\site-packages\phi\builder.py", line 321, in Register2
    return cls.RegisterAt(2, *args, **kwargs)
           ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "C:\Users\manis\OneDrive\Desktop\New folder\Finance-Agent-Powered-by-DeepSeek-R1\agent\Lib\site-packages\phi\builder.py", line 274, in RegisterAt
    cls._RegisterAt(n, f, library_path, **kwargs)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\manis\OneDrive\Desktop\New folder\Finance-Agent-Powered-by-DeepSeek-R1\agent\Lib\site-packages\phi\builder.py", line 235, in _RegisterAt
    cls.RegisterMethod(method, library_path, alias=alias, original_name=original_name, doc=doc, wrapped=wrapped, explanation=explanation, method_type=method_type, explain=explain)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\manis\OneDrive\Desktop\New folder\Finance-Agent-Powered-by-DeepSeek-R1\agent\Lib\site-packages\phi\builder.py", line 194, in RegisterMethod
    cls._RegisterMethod(f, library_path, **kwargs)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\manis\OneDrive\Desktop\New folder\Finance-Agent-Powered-by-DeepSeek-R1\agent\Lib\site-packages\phi\builder.py", line 44, in _RegisterMethod
    fn_signature = utils.get_method_sig(f)
File "C:\Users\manis\OneDrive\Desktop\New folder\Finance-Agent-Powered-by-DeepSeek-R1\agent\Lib\site-packages\phi\utils.py", line 77, in get_method_sig
    argspec = inspect.getargspec(method)
              ^^^^^^^^^^^^^^^^^^

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant