cbrunet / python-poppler

Python binding to Poppler-cpp pdf library
GNU General Public License v2.0
95 stars 15 forks source link

python-poppler not able to find poppler-cpp #87

Open ghost opened 4 months ago

ghost commented 4 months ago

Hello everyone,

I'm Arany. I am new to coding. I use Python. I'm here to ask about an issue with python-poppler. Let me explain the situation first.

So, I was trying to install python-poppler through pip and I have faced 3 issues so far and the first two are resolved. Let me list all of them below:

  1. Could not find vswhere.exe: I understood that I need both Visual Studio Installer (the management tool of VS) and Visual Studio to retain vswhere.exe and its functionalities, respectively.
  2. Could not find pkg-config: I downloaded pkg-config, glib and gettext-runtime and added it to the PATH environment variable. I placed pkg-config.exe, libglib-2.0.0.dll and intl.dll in the main folder and could not find it.
  3. (The current issue) Can't find poppler-cpp dependency

The third issue is where I need help. I installed Poppler, added the location into PATH and then python-poppler says it can't find it. It isn't a compatibility issue either! If this helps, to verify everything was done correctly, MS Copilot gave me the code 'poppler-cpp --version' and Command Prompt said it doesn't find any internal or external command, operable program or batch file named 'poppler-cpp'. I remembered that Copilot gave me the command 'pdftoppm -v' previously. 'pdftoppm' being a part of poppler, I used it as a substitute and it worked!

Please guide me through what I need to do to install python-poppler successfully.

Nikolasitude commented 4 months ago

Hello I'm a passerby. I just want to say I have the same first issue you described when I do a pip install :

Failed to activate VS environment: Could not find [path]\vswhere.exe