private-gpt icon indicating copy to clipboard operation
private-gpt copied to clipboard

Still can't install pypandoc-binary==1.11

Open mullaney opened this issue 2 years ago • 3 comments

Essentially reopening #226

Describe the bug and how to reproduce it Running pip install -r requirements.txt

Expected behavior The requirements are installed without an error.

Environment (please complete the following information):

  • Mac OS M1 Max
  • Ventura 13.3
  • Python version 3.11.3
  • pip version 23.1.2

Additional context Output from pip3 install -r requirements.txt is:

Collecting langchain==0.0.166
  Using cached langchain-0.0.166-py3-none-any.whl (803 kB)
Collecting pygpt4all==1.1.0
  Using cached pygpt4all-1.1.0.tar.gz (4.4 kB)
  Preparing metadata (setup.py) ... done
Collecting chromadb==0.3.22
  Using cached chromadb-0.3.22-py3-none-any.whl (69 kB)
Collecting llama-cpp-python==0.1.48
  Using cached llama_cpp_python-0.1.48.tar.gz (1.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting urllib3==1.26.6
  Using cached urllib3-1.26.6-py2.py3-none-any.whl (138 kB)
Collecting pdfminer.six==20221105
  Using cached pdfminer.six-20221105-py3-none-any.whl (5.6 MB)
Collecting python-dotenv==1.0.0
  Using cached python_dotenv-1.0.0-py3-none-any.whl (19 kB)
Collecting unstructured==0.6.6
  Using cached unstructured-0.6.6-py3-none-any.whl (1.3 MB)
Collecting extract-msg==0.41.1
  Using cached extract_msg-0.41.1-py2.py3-none-any.whl (184 kB)
Collecting tabulate==0.9.0
  Using cached tabulate-0.9.0-py3-none-any.whl (35 kB)
Collecting pandoc==2.3
  Using cached pandoc-2.3.tar.gz (33 kB)
  Preparing metadata (setup.py) ... done
ERROR: Could not find a version that satisfies the requirement pypandoc-binary==1.11 (from versions: none)
ERROR: No matching distribution found for pypandoc-binary==1.11

I am using the most up to date code. Here is my requirements.txt:

langchain==0.0.166
pygpt4all==1.1.0
chromadb==0.3.22
llama-cpp-python==0.1.48
urllib3==1.26.6
pdfminer.six==20221105
python-dotenv==1.0.0
unstructured==0.6.6
extract-msg==0.41.1
tabulate==0.9.0
pandoc==2.3
pypandoc-binary==1.11

mullaney avatar May 17 '23 18:05 mullaney

Try this: https://github.com/imartinez/privateGPT/issues/226

  1. Brew install pandoc
  2. Change pypandoc-binary==1.11 to pandoc==1.11
  3. pip3 install -r requirements.txt

djclarkson avatar May 17 '23 20:05 djclarkson

I solved this by changing pypandoc-binary==1.11 to pypandoc==1.11

wet-bulb avatar May 17 '23 22:05 wet-bulb

Maybe this requirement should not be added to the requirements.txt, but just documented in the README.md .

When pandoc is needed, it will be reported when running ingest.py - it's not needed for all resource types.

mdeweerd avatar May 18 '23 00:05 mdeweerd

Just updated requirements, should remove the issue. But if it keeps on failing in different OS, I'll just follow @mdeweerd advice and remove it from requirements

imartinez avatar May 18 '23 22:05 imartinez