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
Description:
I encountered an ImportError when running the agent_annual_report.ipynb notebook. The error occurs in the workflow.py file while attempting to import register_function from the autogen package.
Error Message:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[2], [line 5](vscode-notebook-cell:?execution_count=2&line=5)
[3](vscode-notebook-cell:?execution_count=2&line=3) from textwrap import dedent
[4](vscode-notebook-cell:?execution_count=2&line=4) from finrobot.utils import register_keys_from_json
----> [5](vscode-notebook-cell:?execution_count=2&line=5) from finrobot.agents.workflow import SingleAssistantShadow
File e:\documents\projects\apps\financial\finrobot\finrobot\agents\workflow.py:6
[3](file:///E:/documents/projects/apps/financial/finrobot/finrobot/agents/workflow.py:3) import autogen
[4](file:///E:/documents/projects/apps/financial/finrobot/finrobot/agents/workflow.py:4) from autogen.cache import Cache
----> [6](file:///E:/documents/projects/apps/financial/finrobot/finrobot/agents/workflow.py:6) from ..toolkits import register_toolkits
[7](file:///E:/documents/projects/apps/financial/finrobot/finrobot/agents/workflow.py:7) from .utils import *
[10](file:///E:/documents/projects/apps/financial/finrobot/finrobot/agents/workflow.py:10) class FinRobot(autogen.AssistantAgent):
File e:\documents\projects\apps\financial\finrobot\finrobot\toolkits.py:1
----> [1](file:///E:/documents/projects/apps/financial/finrobot/finrobot/toolkits.py:1) from autogen import register_function, ConversableAgent
[2](file:///E:/documents/projects/apps/financial/finrobot/finrobot/toolkits.py:2) from .data_source import *
[3](file:///E:/documents/projects/apps/financial/finrobot/finrobot/toolkits.py:3) from .functional.coding import CodingUtils
ImportError: cannot import name 'register_function' from 'autogen' (c:\Users\Admin\miniconda3\envs\finrobot\lib\site-packages\autogen\__init__.py)
Steps to Reproduce:
Clone the repository.
Follow the installation steps and configure API keys.
Open agent_annual_report.ipynb notebook.
Run the initial cell to import necessary packages and functions.
Environment:
OS: Windows 11
Python version: 3.10
Miniconda environment: finrobot
Expected Behavior:
Successful import of register_function from the autogen package without any errors.
Actual Behavior:
The import statement fails, raising an ImportError.
Relevant Code:
from ..toolkitsimportregister_toolkits
Thanks
The text was updated successfully, but these errors were encountered:
Description:
I encountered an
ImportError
when running theagent_annual_report.ipynb
notebook. The error occurs in theworkflow.py
file while attempting to importregister_function
from theautogen
package.Error Message:
Steps to Reproduce:
agent_annual_report.ipynb
notebook.Environment:
Expected Behavior:
Successful import of
register_function
from theautogen
package without any errors.Actual Behavior:
The import statement fails, raising an
ImportError
.Relevant Code:
Thanks
The text was updated successfully, but these errors were encountered: