ask-multiple-pdfs
ask-multiple-pdfs copied to clipboard
Not able to run the code
(gitenvt) C:\Users\Work\Desktop\dataProcess\ask-multiple-pdfs>streamlit run app.py
Traceback (most recent call last):
File "
This is the error that is coming when running the streamlit run app.py
How to rectify it
I am assuming you are using Win. Search in Explorer the PythonXX/Scripts folder where you have app.py. and add streamlit with the full path in the System Variables.
Same problem with Delta generator and altair.vegalite Did you solve it?
Im on Mac BTW
installing altair fixed the issue for me. But I ran into this error when processing a document
ImportError: Could not import tiktoken python package. This is needed in order to for OpenAIEmbeddings. Please install it with pip install tiktoken
.
Hi there, Cannot get it work on macos.
`(python394) ╭─[email protected] ~/Library/CloudStorage/Dropbox/ask-multiple-pdfs-main
╰─➤ streamlit run app.py
Traceback (most recent call last): File "/Users/rho/.pyenv/versions/3.9.2/bin/streamlit", line 5, in
from streamlit.web.cli import main File "/Users/rho/.pyenv/versions/3.9.2/lib/python3.9/site-packages/streamlit/init.py", line 55, in from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator File "/Users/rho/.pyenv/versions/3.9.2/lib/python3.9/site-packages/streamlit/delta_generator.py", line 43, in from streamlit.elements.arrow_altair import ArrowAltairMixin File "/Users/rho/.pyenv/versions/3.9.2/lib/python3.9/site-packages/streamlit/elements/arrow_altair.py", line 36, in from altair.vegalite.v4.api import Chart ModuleNotFoundError: No module named 'altair.vegalite.v4'`
I tryied 4.0.0 4.1 4.2 and 4.2.2 of altair and 1.18.1 and 1.22.1 of streamlit. Allways returns the same thing. Thanks in advance for the help.
add 'altair==4.2.2' in requirements.txt and pip install -r requirements.txt. It worked for me, I'm using macOS.