Skip to content

Run ./run_geo.py occur error from the ./search_try.py is null #5

@GentleYo

Description

@GentleYo

I run the program by ./run_geo.py an report the traceback as follow:
'''
Traceback (most recent call last):
File "D:\github_desktop\CodeRep\framework\GEO\GEO\src\run_geo.py", line 122, in
print(improve(k['query'], idx = int(k['sugg_idx']), impression_fn=impression_wordpos_count_simple))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\github_desktop\CodeRep\framework\GEO\GEO\src\run_geo.py", line 93, in improve
summaries_copy = summaries[:idx] + [GEO_METHODSmeth_name] + summaries[idx+1:]
~~~~~~~~~^^^^^
IndexError: list index out of range
'''
Then I run ./search_try.py find the result is null
'''
result_divs: []
{'sources': []}
'''
So how to fix it? thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions