Skip to content
This repository was archived by the owner on Aug 31, 2025. It is now read-only.
This repository was archived by the owner on Aug 31, 2025. It is now read-only.

ModuleNotFoundError: No module named 'PyQt5.sip' #875

@tim1mw

Description

@tim1mw

I've installed Mu using pip3 on Mageia 7, I'm getting the following error:

Traceback (most recent call last):
File "/usr/local/bin/mu-editor", line 6, in
from mu.app import run
File "/usr/local/lib/python3.7/site-packages/mu/app.py", line 29, in
from PyQt5.QtCore import QTimer, Qt
ModuleNotFoundError: No module named 'PyQt5.sip'

I've got the python3-pyqt5-sip distro package installed (4.19.16), but that doesn't contain PyQt5.sip and a search of the package repository suggests this file is no longer available in any standard distro package. Digging around the web there seem to be quite a few bug reports against various applications suggesting that this file is no longer packaged in the latest distros.

The answer appears to be in this post:

https://raspberrypi.stackexchange.com/questions/87125/installing-pyqt5-on-raspberry-unable-to-imoprt-pyqt5-sip

It seems that PyQt5.sip is no longer generated by the default settings in the sip build process, it has to be explicitly configured and presumably my linux disto and quite a few others aren't doing this. Using:

pip3 install --user -I PyQt5-sip

To overwrite the distro packaged version with 4.19.17 doesn't help. I'm guessing if I go and make my own build of PyQt5.sip that will solve the problem but that will be a task for another day.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions