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
Traceback (most recent call last):
File "/Users/liang/data/Py_Project/testProject/t_llamaindex.py", line 95, in<module>asyncio.run(main())
File "/Users/liang/anaconda3/envs/testProject/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/Users/liang/anaconda3/envs/testProject/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/liang/anaconda3/envs/testProject/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
returnfuture.result()
^^^^^^^^^^^^^^^
File "/Users/liang/data/Py_Project/testProject/t_llamaindex.py", line 90, in main
draw_all_possible_flows(
File "/Users/liang/anaconda3/envs/testProject/lib/python3.11/site-packages/deprecated/classic.py", line 285, in wrapper_function
return wrapped_(*args_, **kwargs_)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/liang/anaconda3/envs/testProject/lib/python3.11/site-packages/llama_index/core/workflow/drawing.py", line 71, in draw_all_possible_flows
net.show(filename, notebook=notebook)
TypeError: Network.show() got an unexpected keyword argument 'notebook'
The text was updated successfully, but these errors were encountered:
Hello, @xucailiang! I'm here to help you with any bugs, questions, or contributions you have. Let's squash those bugs together and make the code even better!
The error you're encountering is due to the Network.show() method in the version of pyvis you're using (0.3.1) not accepting the notebook argument. The notebook parameter is expected in the Network.show() method for the version of pyvis that is compatible with llama-index-core 0.11.23, which is pyvis version ^0.3.2[1].
To resolve this issue, you should update your pyvis package to version 0.3.2 or later. You can do this by running the following command:
pip install pyvis==0.3.2
This should ensure compatibility and prevent the TypeError from occurring.
Bug Description
After I tried to build a workflow, I wanted to use draw_all_possible_flows to view my workflow, and then an error occurred
Version
llama-index-core==0.11.23, pyvis==0.3.1, numpy==1.26.4, llama-index-agent-openai==0.3.4, python==3.11
Steps to Reproduce
The following is a minimal reproducible script:
Relevant Logs/Tracbacks
The text was updated successfully, but these errors were encountered: