If you're running any relatively recent version of Calibre, your problem is the first line of ui.py:
from PyQt5.QtWidgets import ...
Calibre moved to PyQt6 quite a while ago. There's ways to support both old and new, but your method of directly importing PyQt5 modules will not work.
|