jalvesaq / zotcite

Neovim plugin for integration with Zotero
GNU General Public License v3.0
177 stars 15 forks source link

Cannot Install or Use `popplerqt5` with Zotcite Script on apple silicon #99

Open oddish3 opened 1 month ago

oddish3 commented 1 month ago

I'm trying to run the pdfnotes.py Python script for Zotcite (via Zpdfnote) that requires popplerqt5. However, I'm unable to find or install popplerqt5 via pip. Despite having installed PyQt5 successfully, the script still reports that required modules are missing.

Steps to Reproduce

  1. Clone the [zotcite repository]().
  2. Ensure PyQt5 is installed.
  3. Attempt to run the script with:
    python3 /Users/user/.local/share/nvim/lazy/zotcite/python3/pdfnotes.py local.pdf test-key 1
  4. Observe error message regarding missing popplerqt5.

Environment Details

Output of Package Checks

Additional Information

Expected Behavior

The script should run without error if all dependencies are installed.

Actual Behavior

Error suggests missing Python module popplerqt5, which is not available via pip.

Additional Context

I activated the virtual environment and ensured all system-level libraries are installed. The issue seems to be related to unavailable bindings or missing instructions on how to integrate poppler with Python and Qt.

jalvesaq commented 1 month ago

Thanks for reporting the issue! We have to wait until someone with access to macOS can help you.

jalvesaq commented 3 weeks ago

It seems that nobody on macOS has seen this issue... On Debian Linux the system package python3-poppler-qt5 depends not only on other Python packages but also on some C libraries:

Depends:
  python3-pyqt5 (>= 5.15.1),
  python3 (<< 3.13),
  python3 (>= 3.12~),
  python3-pyqt5.sip,
  libc6 (>= 2.14),
  libpoppler-qt5-1t64 (>= 21.06.0),
  libqt5core5t64 (>= 5.15.1),
  libstdc++6 (>= 5)