kyegomez / tree-of-thoughts

Plug in and Play Implementation of Tree of Thoughts: Deliberate Problem Solving with Large Language Models that Elevates Model Reasoning by atleast 70%
https://discord.gg/qUtxnK2NMf
Apache License 2.0
4.29k stars 361 forks source link

ModuleNotFoundError: No module named 'treeofthoughts' #3

Closed distbit0 closed 1 year ago

distbit0 commented 1 year ago
Traceback (most recent call last):
  File "/home/pimania/Dev/AGI/treeOfThoughtsTest/exmaple.py", line 1, in <module>
    from tree_of_thoughts import (
  File "/home/pimania/.local/lib/python3.10/site-packages/tree_of_thoughts/__init__.py", line 1, in <module>
    from treeofthoughts import TreeofThoughts, CustomLanguageModel
ModuleNotFoundError: No module named 'treeofthoughts'

the above error is what I receive when attempting to run the code in README.md, after already having run pip install tree-of-thoughts

Seems that perhaps it should be importing tree-of-thoughts instead of treeofthoughts?

LucretiaLuo commented 1 year ago

I changed it to from .treeofthoughts import TreeofThoughts, CustomLanguageModel

kyegomez commented 1 year ago

I didn't import in the init.py like this: tree_of_thoughts.treeofthoughts but it should work now, let me know