DupeGuru on Fedora

After many years of Ubuntu, I’m still a Linux noob. This is me typing out loud while I try to install a program.

I moved to KDE Nobara (Fedora) late last year and so far it’s been a nice experience. The only program I didn’t immediately manage to reinstall after the move (besides my wireless dongle) is DupeGuru. On their homepage they only give an option for Ubuntu as well as the source, and I’ve never compiled anything from source.

I was expecting this to be a whole adventure log with me learning to convert or to compile from source or something, but apparently they do have an .rpm package, so I installed that.
Unfortunately, it doesn’t work straight away:

Traceback (most recent call last):
  File "/usr/bin/dupeguru", line 88, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/bin/dupeguru", line 71, in main
    from qt.app import DupeGuru
  File "/usr/share/dupeguru/qt/app.py", line 22, in <module>
    from core.app import AppMode, DupeGuru as DupeGuruModel
  File "/usr/share/dupeguru/core/app.py", line 26, in <module>
    from core import se, me, pe
  File "/usr/share/dupeguru/core/pe/__init__.py", line 1, in <module>
    from core.pe import (  # noqa
  File "/usr/share/dupeguru/core/pe/block.py", line 9, in <module>
    from core.pe._block import NoBlocksError, DifferentBlockCountError, avgdiff, getblocks2  # NOQA
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'core.pe._block'

Instead of using a search engine, I asked AI (Perplexity) what to do. It told me to check if the core.pe._block Python module is installed and how to install it. That did not work and the AI kept repeating itself. So back to the search engine, the first hit was somebody with the exact same problem on the DupeGuru github. There the following was suggested:

sudo ln /usr/share/dupeguru/core/pe/_cache.cpython-39-x86_64-linux-gnu.so /usr/share/dupeguru/core/pe/_cache.cpython-310-x86_64-linux-gnu.so
sudo ln /usr/share/dupeguru/core/pe/_block.cpython-39-x86_64-linux-gnu.so /usr/share/dupeguru/core/pe/_block.cpython-310-x86_64-linux-gnu.so
sudo ln /usr/share/dupeguru/qt/pe/_block_qt.cpython-39-x86_64-linux-gnu.so /usr/share/dupeguru/qt/pe/_block_qt.cpython-310-x86_64-linux-gnu.so

I checked my Python version (3.11.6) so I changed the 310 above to 311 and ran the commands.

Now it works.

Yay.

Leave a Reply

Your email address will not be published. Required fields are marked *