Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eval(thought_string) -> SyntaxError: invalid syntax #75

Open
qingerVT opened this issue Jan 13, 2025 · 0 comments
Open

eval(thought_string) -> SyntaxError: invalid syntax #75

qingerVT opened this issue Jan 13, 2025 · 0 comments

Comments

@qingerVT
Copy link

I am running into this error with python 3.10 or 3.12 after "pip3 install -U tree-of-thoughts" . Any thoughts?

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/local/home/qinsun/meta_agent/tot/tot.py", line 28, in <module>
    final_thought = dfs_agent.run(initial_state)
  File "/local/home/qinsun/meta_agent/tot/tot/lib/python3.10/site-packages/tree_of_thoughts/dfs.py", line 98, in ru
n
    initial_thoughts = self.dfs(task, *args, **kwargs)
  File "/local/home/qinsun/meta_agent/tot/tot/lib/python3.10/site-packages/tree_of_thoughts/dfs.py", line 67, in df
s
    next_thoughts = list(
  File "/home/qinsun/.local/share/mise/installs/python/3.10.15/lib/python3.10/concurrent/futures/_base.py", line 62
1, in result_iterator
    yield _result_or_cancel(fs.pop())
  File "/home/qinsun/.local/share/mise/installs/python/3.10.15/lib/python3.10/concurrent/futures/_base.py", line 31
9, in _result_or_cancel
    return fut.result(timeout)
  File "/home/qinsun/.local/share/mise/installs/python/3.10.15/lib/python3.10/concurrent/futures/_base.py", line 45
8, in result
    return self.__get_result()
  File "/home/qinsun/.local/share/mise/installs/python/3.10.15/lib/python3.10/concurrent/futures/_base.py", line 40
3, in __get_result
    raise self._exception
  File "/home/qinsun/.local/share/mise/installs/python/3.10.15/lib/python3.10/concurrent/futures/thread.py", line 58, in run    result = self.fn(*self.args, **self.kwargs)
  File "/local/home/qinsun/meta_agent/tot/tot/lib/python3.10/site-packages/tree_of_thoughts/agent.py", line 132, i$ run    return string_to_dict(agent_output)
  File "/local/home/qinsun/meta_agent/tot/tot/lib/python3.10/site-packages/tree_of_thoughts/agent.py", line 14, in string_to_dict    return eval(thought_string)
  File "<string>", line 0
    
SyntaxError: invalid syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant