Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
oddish3 opened this issue Oct 25, 2024 · 4 comments
Open
Labels

Comments

@oddish3
Copy link

oddish3 commented Oct 25, 2024

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

  • Operating System: macOS Sonoma 14.7
  • Python Version: Python 3.10.13
  • Virtual Environment: /Users/user/.config/nvim/venv
  • Installed Packages:
    Package Version

greenlet 3.1.1
msgpack 1.1.0
pip 24.2
pynvim 0.5.0
PyQt5 5.15.11
PyQt5-Qt5 5.15.15
PyQt5_sip 12.15.0
PyYAML 6.0.2
setuptools 75.2.0
python path set to this venv in neovim

Output of Package Checks

  • Python shell confirms import:

import PyQt5
print("PyQt5 is installed and working.")
PyQt5 is installed and working.
exit()


### Additional Information
- `pip` cannot find `popplerqt5`:
```sh
ERROR: Could not find a version that satisfies the requirement popplerqt5 (from versions: none)
ERROR: No matching distribution found for popplerqt5
  • System checks show that Poppler and Qt are installed via brew :
To reinstall 24.04.0_1, run:
  brew reinstall poppler-qt5
[I] (venv) ~ ❯❯❯ pip install PyQt5
Requirement already satisfied: PyQt5 in ./.config/nvim/venv/lib/python3.10/site-packages (5.15.11)
Requirement already satisfied: PyQt5-sip<13,>=12.15 in ./.config/nvim/venv/lib/python3.10/site-packages (from PyQt5) (12.15.0)
Requirement already satisfied: PyQt5-Qt5<5.16.0,>=5.15.2 in ./.config/nvim/venv/lib/python3.10/site-packages (from PyQt5) (5.15.15)

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 jalvesaq added the macOS label Oct 26, 2024
@jalvesaq
Copy link
Owner

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

@jalvesaq
Copy link
Owner

jalvesaq commented Nov 3, 2024

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)

@oddish3
Copy link
Author

oddish3 commented Feb 27, 2025

i think we can either close this or update to pyqt6, which i seem to have been able to install

@jalvesaq
Copy link
Owner

Could you do a pull request updating to pyqt6?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants