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

trouble during setup #3

Open
AeroSamplerAdmin opened this issue Jul 3, 2023 · 7 comments
Open

trouble during setup #3

AeroSamplerAdmin opened this issue Jul 3, 2023 · 7 comments

Comments

@AeroSamplerAdmin
Copy link

hi
Great project, wanted to try it, but having these problems during setup:

private-chatbot-mpt30b-langchain$ python ingest.py
Traceback (most recent call last):
File "/home/im/Downloads/private-chatbot-mpt30b-langchain/ingest.py", line 6, in
from dotenv import load_dotenv
ModuleNotFoundError: No module named 'dotenv'

and:

private-chatbot-mpt30b-langchain$ poetry run python chat.py
Traceback (most recent call last):
File "/home/im/Downloads/private-chatbot-mpt30b-langchain/chat.py", line 5, in
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
ModuleNotFoundError: No module named 'langchain'

Am I missing some dependencies or smth else? Seems like I might be missing smth related to LangChain (but already did: pip install langchain)?. rgds, IM

@saradhix
Copy link

saradhix commented Jul 3, 2023

This project uses poetry for managing the packages. Please follow the steps given in the installation exactly.
pip install poetry
cd <directory_where_you_cloned>
poetry install
cp .env.example .env
python download_model.py

@AeroSamplerAdmin
Copy link
Author

AeroSamplerAdmin commented Jul 3, 2023 via email

@TouchstoneTheDev
Copy link

python download_model.py
Traceback (most recent call last):
File "/workspace/ai/pgpt/private-chatbot-mpt30b-langchain/download_model.py", line 3, in
from huggingface_hub import hf_hub_download
ModuleNotFoundError: No module named 'huggingface_hub'

@TouchstoneTheDev
Copy link

I downloaded the bin file in models but now getting this error " python ingest.py
Traceback (most recent call last):
File "/workspace/ai/pgpt/private-chatbot-mpt30b-langchain/ingest.py", line 6, in
from dotenv import load_dotenv
ModuleNotFoundError: No module named 'dotenv'"

@saradhix
Copy link

If you have installed poetry and installed the required libraries, you can run
poetry run python ingest.py

@mzubairumt
Copy link

i have installed langchain but still
Traceback (most recent call last):
File "D:\Office\RandD\Meta\LLAMA\private-chatbot-mpt30b-langchain\ingest.py", line 7, in
from langchain.docstore.document import Document
ModuleNotFoundError: No module named 'langchain'

@saradhix
Copy link

saradhix commented Aug 9, 2023

If you are using poetry, please use poetry run python to activate the right environment. Otherwise you can use pip in a new environment.

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

4 participants