private-gpt: can't install pandoc-binary

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

...
Requirement already satisfied: pandoc==2.3 in /opt/homebrew/lib/python3.11/site-packages (from -r requirements.txt (line 11)) (2.3)
ERROR: Could not find a version that satisfies the requirement pandoc-binary==1.11 (from versions: none)
ERROR: No matching distribution found for pandoc-binary==1.11

Expected behavior I expect pip install -r requirements.txt to complete w/o error.

Environment (please complete the following information):

  • OS / hardware: 13.3.1 (a) (22E772610a) / M1 and Windows 11 AMD64
  • Python version Python 3.11.3 (mac) and python version 3.10.11 (Windows)

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 4
  • Comments: 29 (3 by maintainers)

Most upvoted comments

@eliasgrilo try this, worked for me after brew install pandoc as suggested by @RamXX :

pandoc==2.3
pypandoc==1.11

pandoc-binary==1.11 no this binary, should be pypandoc-binary 1.11, I guess

For Mac M1, the solution for me was to brew install pandoc first, and then mod the requirements.txt file replacing pandoc-binary==1.11 for pandoc==1.11. According to the documentation in the source repo, if you already have the binary, pandoc alone does the job.

Still not resolved on M1 Mac - looks like pandoc isn’t supporting this arch yet - https://github.com/jgm/pandoc/issues/6960#issuecomment-1466490551

can confirm pypandoc-binary==1.11 does not resolve for m1

Also ran into this issue.

Editing requirements.txt to read pypandoc-binary==1.11 instead of pandoc-binary=1.11 resolved the issue. Thanks @zxjason

pandoc-binary==1.11 no this binary, should be pypandoc-binary 1.11, I guess

Thanks that resolved it @zxjason

Hey @imartinez, according to the docs the only difference between pypandoc and pypandoc-binary is that the binary contains pandoc, but they are otherwise identical. Because you are specifying pandoc in the reqs file anyway, installing pypandoc (not the binary person) will work for all systems. That’s the solution @csells is suggesting and it is working for me too.

@csells Try pypandoc==1.11 instead of pypandoc-binary==1.11 after installing using brew install pandoc. This worked for me on my M2 Pro.

Yes. I saw that. And, as I mentioned, that works for both Windows and my M1 Mac. However, the change in #240 only works on Windows and not on my M1 Mac. I’m suggesting that perhaps #240 adopted the incorrect fix for this issue.

@csells Try pypandoc==1.11 instead of pypandoc-binary==1.11 after installing using brew install pandoc. This worked for me on my M2 Pro.

@eliasgrilo try this, worked for me after brew install pandoc as suggested by @RamXX :

pandoc==2.3
pypandoc==1.11

Can confirm this worked for me as well