module abstractLanguageModel not found
aibarito-ua opened this issue · comments
Hello!
I am getting ModuleNotFoundError when trying to run example.py. Do you know how can I solve it?
Error:
Traceback (most recent call last):
File "tree_of_thoughts/example.py", line 2, in
from tree_of_thoughts.models.openai_models import OpenAILanguageModel
File "/app/tree-of-thoughts/tree_of_thoughts/init.py", line 2, in
from tree_of_thoughts.treeofthoughts import TreeofThoughts, MonteCarloTreeofThoughts, TreeofThoughtsBFS, TreeofThoughtsDFS, TreeofThoughtsBEST, TreeofThoughtsASearch
File "/app/tree-of-thoughts/tree_of_thoughts/treeofthoughts.py", line 16, in
from abstractLanguageModel import AbstractLanguageModel
ModuleNotFoundError: No module named 'abstractLanguageModel'
Upvote & Fund
- We're using Polar.sh so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.
@aibarito-ua yes try importing like this,
treeofthoughts.models.abstract_language_model
Line
from abstractLanguageModel import AbstractLanguageModel
should be changed to
from .models.abstract_language_model import AbstractLanguageModel
It seems this was not pushed to PyPI.
It would be nice to add to the README that we can install the latest github version using pip via python -m pip install git+https://github.com/kyegomez/tree-of-thoughts
@thiswillbeyourgithub please excuse me for this error, I have pushed the updates!