Agently-Daily-News-Collector icon indicating copy to clipboard operation
Agently-Daily-News-Collector copied to clipboard

string indices must be integers

Open JinYu1998 opened this issue 8 months ago • 4 comments

python app.py

[Please input the topic of your daily news collection]: education
2024-06-16 22:38:59,865 [INFO]  [Outline Generated]     {'report_title': 'Latest Education News', 'column_list': [{'column_title': 'Policy and Legislation', 'column_requirement': 'All news articles in this column should focus on new policies, legislation, and regulations related to education. Ensure the content is up-to-date and relevant to current educational policies.', 'search_keywords': 'education policy legislation government school college'}, {'column_title': 'Innovations in Education', 'column_requirement': 'This column should cover innovative approaches, technologies, and methodologies in the field of education. Articles should highlight advancements and new trends in teaching and learning.', 'search_keywords': 'education innovation technology learning teaching'}, {'column_title': 'Educational Events and Research', 'column_requirement': 'News articles in this column should focus on academic events, research findings, and scholarly developments in education. Ensure the content is based on reliable sources and academic institutions.', 'search_keywords': 'education event research academic study'}]}
2024-06-16 22:39:04,871 [INFO]  [Start Generate Column] Policy and Legislation
2024-06-16 22:39:06,666 [INFO]  [Search News Count]     8
2024-06-16 22:39:14,922 - ERROR - Node Execution Exception: 'pick_news'(3cd59ad5-8449-4d6b-83fe-a0477234c796) string indices must be integers
2024-06-16 22:39:14,923 - ERROR - Node Execution Exception: 'generate_columns'(100c38c1-c72d-4b0e-83b3-5d298b85907a) string indices must be integers
Traceback (most recent call last):
  File "/Users/terry/miniconda3/envs/DailyNews/lib/python3.10/site-packages/Agently/Workflow/MainExecutor.py", line 266, in _exec_chunk_with_dep_core
    exec_res = chunk_executor(deps_dict, self.store)
  File "Agently-Daily-News-Collector/workflows/column_workflow.py", line 53, in pick_news_executor
    if pick_result["can_use"]:
TypeError: string indices must be integers

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/terry/miniconda3/envs/DailyNews/lib/python3.10/site-packages/Agently/Workflow/MainExecutor.py", line 266, in _exec_chunk_with_dep_core
    exec_res = chunk_executor(deps_dict, self.store)
  File "Agently-Daily-News-Collector/workflows/main_workflow.py", line 58, in generate_columns_executor
    column_data = start_column_workflow(
  File "Agently-Daily-News-Collector/workflows/column_workflow.py", line 152, in start
    column_workflow.start()
  File "/Users/terry/miniconda3/envs/DailyNews/lib/python3.10/site-packages/Agently/Workflow/Workflow.py", line 67, in start
    self.executor.start(runtime_data)
  File "/Users/terry/miniconda3/envs/DailyNews/lib/python3.10/site-packages/Agently/Workflow/MainExecutor.py", line 33, in start
    self._execute_main(entries)
  File "/Users/terry/miniconda3/envs/DailyNews/lib/python3.10/site-packages/Agently/Workflow/MainExecutor.py", line 70, in _execute_main
    self._execute_partial(
  File "/Users/terry/miniconda3/envs/DailyNews/lib/python3.10/site-packages/Agently/Workflow/MainExecutor.py", line 108, in _execute_partial
    child_executed = self._execute_single_chunk(
  File "/Users/terry/miniconda3/envs/DailyNews/lib/python3.10/site-packages/Agently/Workflow/MainExecutor.py", line 165, in _execute_single_chunk
    self._execute_single_chunk_core(
  File "/Users/terry/miniconda3/envs/DailyNews/lib/python3.10/site-packages/Agently/Workflow/MainExecutor.py", line 194, in _execute_single_chunk_core
    exec_value = self._exec_chunk_with_dep_core(chunk, single_dep_map)
  File "/Users/terry/miniconda3/envs/DailyNews/lib/python3.10/site-packages/Agently/Workflow/MainExecutor.py", line 270, in _exec_chunk_with_dep_core
    raise Exception(e)
Exception: string indices must be integers

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "Agently-Daily-News-Collector/app.py", line 21, in <module>
    main_workflow.start(
  File "Agently-Daily-News-Collector/workflows/main_workflow.py", line 109, in start
    main_workflow.start()
  File "/Users/terry/miniconda3/envs/DailyNews/lib/python3.10/site-packages/Agently/Workflow/Workflow.py", line 67, in start
    self.executor.start(runtime_data)
  File "/Users/terry/miniconda3/envs/DailyNews/lib/python3.10/site-packages/Agently/Workflow/MainExecutor.py", line 33, in start
    self._execute_main(entries)
  File "/Users/terry/miniconda3/envs/DailyNews/lib/python3.10/site-packages/Agently/Workflow/MainExecutor.py", line 70, in _execute_main
    self._execute_partial(
  File "/Users/terry/miniconda3/envs/DailyNews/lib/python3.10/site-packages/Agently/Workflow/MainExecutor.py", line 108, in _execute_partial
    child_executed = self._execute_single_chunk(
  File "/Users/terry/miniconda3/envs/DailyNews/lib/python3.10/site-packages/Agently/Workflow/MainExecutor.py", line 165, in _execute_single_chunk
    self._execute_single_chunk_core(
  File "/Users/terry/miniconda3/envs/DailyNews/lib/python3.10/site-packages/Agently/Workflow/MainExecutor.py", line 194, in _execute_single_chunk_core
    exec_value = self._exec_chunk_with_dep_core(chunk, single_dep_map)
  File "/Users/terry/miniconda3/envs/DailyNews/lib/python3.10/site-packages/Agently/Workflow/MainExecutor.py", line 270, in _exec_chunk_with_dep_core
    raise Exception(e)
Exception: string indices must be integers

JinYu1998 avatar Jun 16 '24 14:06 JinYu1998