Open marcionegrao opened 7 months ago
Hmm looks like the project itself (root) isn't installed. Did you use poetry with the virtual environment?
Yes, I used poetry sand created a virtual environ in the root folder Knowledge_gpt: (knowledge-gpt-py3.10) marcionegrao@Marcios-MacBook-Air knowledge_gpt % streamlit run main.py
The command to install poetry as listed in the readme didn't work. I used pip install following instructions from Poetry site
Can you give me the output of pip freeze
while in the virtual environment so I can take a look?
I had the same problem, maybe you can try python -m streamlit run main.py
to give it a try!If you are using pycharm, you can also configure it like I did:
I installed everything according to the instructions and the first run shows the same error. System Win10 Pyth 3.11.8 This is my pip freeze in knowledge_gpt dir: build==1.1.1 CacheControl==0.14.0 certifi==2024.2.2 charset-normalizer==3.3.2 cleo==2.1.0 colorama==0.4.6 crashtest==0.4.1 distlib==0.3.8 dulwich==0.21.7 fastjsonschema==2.19.1 filelock==3.13.3 idna==3.6 importlib_metadata==7.1.0 install==1.3.5 installer==0.7.0 jaraco.classes==3.3.1 keyring==24.3.1 more-itertools==10.2.0 msgpack==1.0.8 packaging==24.0 pexpect==4.9.0 pkginfo==1.10.0 platformdirs==4.2.0 poetry==1.8.2 poetry-core==1.9.0 poetry-plugin-export==1.7.1 ptyprocess==0.7.0 pyproject_hooks==1.0.0 pywin32-ctypes==0.2.2 rapidfuzz==3.7.0 requests==2.31.0 requests-toolbelt==1.0.0 shell==1.0.1 shellingham==1.5.4 tomlkit==0.12.4 trove-classifiers==2024.3.25 urllib3==2.2.1 virtualenv==20.25.1 zipp==3.18.1
@MrLei After running activating the virtual environment and running pip freeze
the output should look like this:
aiohttp==3.8.5
aiosignal==1.3.1
altair==5.0.1
asttokens==2.2.1
async-timeout==4.0.2
attrs==23.1.0
backcall==0.2.0
black==23.7.0
blinker==1.6.2
cachetools==5.3.1
certifi==2023.7.22
charset-normalizer==3.2.0
click==8.1.6
cohere==3.10.0
colorama==0.4.6
comm==0.1.3
dataclasses-json==0.5.9
debugpy==1.6.7
decorator==5.1.1
docx2txt==0.8
exceptiongroup==1.1.2
executing==1.2.0
faiss-cpu==1.7.4
filelock==3.12.3
flake8==6.0.0
frozenlist==1.4.0
fsspec==2023.9.0
gitdb==4.0.10
GitPython==3.1.32
greenlet==2.0.2
huggingface-hub==0.16.4
idna==3.4
importlib-metadata==6.8.0
iniconfig==2.0.0
ipykernel==6.25.1
ipython==8.14.0
ipywidgets==8.0.7
isort==5.12.0
jedi==0.18.2
Jinja2==3.1.2
jsonschema==4.18.4
jsonschema-specifications==2023.7.1
jupyter_client==8.3.0
jupyter_core==5.3.1
jupyterlab-widgets==3.0.8
-e git+https://github.com/mmz-001/knowledge_gpt@6002862f69489a81f1bc39d0eb265a6960362f48#egg=knowledge_gpt
langchain==0.0.220
langchainplus-sdk==0.0.20
markdown-it-py==3.0.0
MarkupSafe==2.1.3
marshmallow==3.20.1
marshmallow-enum==1.5.1
matplotlib-inline==0.1.6
mccabe==0.7.0
mdurl==0.1.2
multidict==6.0.4
mypy-extensions==1.0.0
nest-asyncio==1.5.6
numexpr==2.8.4
numpy==1.25.1
openai==0.27.8
openapi-schema-pydantic==1.2.4
packaging==23.1
pandas==2.0.3
parso==0.8.3
pathspec==0.11.1
pickleshare==0.7.5
Pillow==9.5.0
platformdirs==3.9.1
pluggy==1.2.0
prompt-toolkit==3.0.39
protobuf==4.23.4
psutil==5.9.5
pure-eval==0.2.2
pyarrow==12.0.1
pycodestyle==2.10.0
pycryptodome==3.18.0
pydantic==1.10.11
pydeck==0.8.0
pyflakes==3.0.1
Pygments==2.15.1
Pympler==1.0.1
PyMuPDF==1.22.5
pytest==7.4.0
python-dateutil==2.8.2
python-dotenv==0.21.1
pytz==2023.3
pytz-deprecation-shim==0.1.0.post0
pywin32==306
PyYAML==6.0.1
pyzmq==25.1.0
referencing==0.30.0
regex==2023.6.3
requests==2.31.0
rich==13.4.2
rpds-py==0.9.2
safetensors==0.3.3
six==1.16.0
smmap==5.0.0
SQLAlchemy==2.0.19
stack-data==0.6.2
streamlit==1.25.0
tenacity==8.2.2
tiktoken==0.4.0
tokenizers==0.13.3
toml==0.10.2
tomli==2.0.1
toolz==0.12.0
tornado==6.3.2
tqdm==4.65.0
traitlets==5.9.0
transformers==4.33.1
typing-inspect==0.9.0
typing_extensions==4.7.1
tzdata==2023.3
tzlocal==4.3.1
urllib3==1.26.16
validators==0.20.0
watchdog==3.0.0
wcwidth==0.2.6
widgetsnbextension==4.0.8
yarl==1.9.2
zipp==3.16.2
@MrLei @marcionegrao can you show the exact steps including the console logs of how you're running this so I can look into the issue?
The actual error was that not all libraries were loaded. After uploading, everything started working properly.
This is solusion pip install -r requirements.txt
Hello, I keep getting the following error when running main.py. I forked the app and followed the instructions to install it. I apologize if this is a trivial issue that I shouldn't be posting here.
2024-01-14 10:26:33.229 Uncaught app exception Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script exec(code, module.dict) File "/Users/marcionegrao/knowledge_gpt/knowledge_gpt/main.py", line 3, in
from knowledge_gpt.components.sidebar import sidebar
ModuleNotFoundError: No module named 'knowledge_gpt'