Traceback (most recent call last):


 "/usr/lib/python3.8/site-packages/ranger/core/main.py", line 201, in main

fm.loop()


 "/usr/lib/python3.8/site-packages/ranger/core/fm.py", line 383, in loop

ui.handle_input()


 "/usr/lib/python3.8/site-packages/ranger/gui/ui.py", line 266, in handle_input

self.handle_key(key)


 "/usr/lib/python3.8/site-packages/ranger/gui/ui.py", line 196, in handle_key

elif not DisplayableContainer.press(self, key):


 "/usr/lib/python3.8/site-packages/ranger/gui/displayable.py", line 275, in press

focused_obj.press(key)


 "/usr/lib/python3.8/site-packages/ranger/gui/widgets/console.py", line 188, in press

self.type_key(key)


 "/usr/lib/python3.8/site-packages/ranger/gui/widgets/console.py", line 214, in type_key

self._answer_question(answer)


 "/usr/lib/python3.8/site-packages/ranger/gui/widgets/console.py", line 197, in _answer_question

callback(answer)


 "/usr/lib/python3.8/site-packages/ranger/config/commands.py", line 759, in _question_callback

self.fm.execute_file(files, label='trash')


 "/usr/lib/python3.8/site-packages/ranger/core/actions.py", line 459, in execute_file

filenames = [f.path for f in files]


 "/usr/lib/python3.8/site-packages/ranger/core/actions.py", line 459, in <listcomp>

filenames = [f.path for f in files]
AttributeError: 'str' object has no attribute 'path'

Traceback (most recent call last):


 "haystack_test.py", line 46, in <module>

prediction = finder.get_answers(question="What is the mass of the electron?", top_k_retriever=10, top_k_reader=5)


 "/Users/admin/miniconda3/envs/legy/lib/python3.6/site-packages/haystack/finder.py", line 55, in get_answers

len_chars = sum([len(d.text) for d in documents])


 "/Users/admin/miniconda3/envs/legy/lib/python3.6/site-packages/haystack/finder.py", line 55, in <listcomp>

len_chars = sum([len(d.text) for d in documents])
AttributeError: 'list' object has no attribute 'text'
