Bug 28235 - meld fails to start due to "ModuleNotFoundError: No module named 'cairo'
Summary: meld fails to start due to "ModuleNotFoundError: No module named 'cairo'
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2021-01-27 16:18 CET by Denis Bitouzé
Modified: 2021-02-05 12:56 CET (History)
3 users (show)

See Also:
Source RPM: meld-3.20.1-1.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Denis Bitouzé 2021-01-27 16:18:00 CET
Description of problem:
meld fails to start due to:

$ meld
Traceback (most recent call last):
  File "/usr/bin/meld", line 368, in <module>
    import meld.meldapp
  File "/usr/lib/python3.7/site-packages/meld/meldapp.py", line 29, in <module>
    import meld.ui.util
  File "/usr/lib/python3.7/site-packages/meld/ui/util.py", line 20, in <module>
    from meld.ui import gladesupport  # noqa: F401
  File "/usr/lib/python3.7/site-packages/meld/ui/gladesupport.py", line 7, in <module>
    from meld import diffmap  # noqa: F401
  File "/usr/lib/python3.7/site-packages/meld/diffmap.py", line 19, in <module>
    import cairo
ModuleNotFoundError: No module named 'cairo'

How reproducible:
Just start meld.

A common reason to this error is that lib64cairo* are missing, but they are installed on my box:

# urpmi lib64cairo-devel lib64cairo2
Les paquetages lib64cairo2-1.16.0-2.2.mga7.x86_64, lib64cairo-devel-1.16.0-2.2.mga7.x86_64 sont déjà installés
Comment 1 Jani Välimaa 2021-01-28 17:47:44 CET
Install python3-cairo.
Comment 2 Jani Välimaa 2021-01-28 17:52:51 CET
(In reply to Jani Välimaa from comment #1)
> Install python3-cairo.

Or better, test meld-3.20.1-1.1.mga7 from core/updates_testing.

Assignee: bugsquad => qa-bugs

Comment 3 Denis Bitouzé 2021-01-28 17:58:24 CET
(In reply to Jani Välimaa from comment #1)
> Install python3-cairo.

Already installed.

>Or better, test meld-3.20.1-1.1.mga7 from core/updates_testing.

I enabled this source but only meld-3.20.1-1.mga7 is proposed.

Thanks!
Comment 4 Dave Hodgins 2021-01-28 19:26:23 CET
$ rpm -q -i meld|grep -e ^I -e ^So
Install Date: 2019-10-26T17:23:14 EDT
Source RPM  : meld-3.20.1-1.mga7.src.rpm

This was installed from the core updates testing repo on the princeton
mirror.

Quick testing shows it works.

Advisory committed to svn. Validating the update.

Once the update gets pushed, it will be available in the core updates repo,
instead of the core updates testing repository.

CC: (none) => davidwhodgins, sysadmin-bugs
Whiteboard: (none) => MGA7-64-OK
Keywords: (none) => advisory, validated_update

Comment 5 Dave Hodgins 2021-01-28 19:44:33 CET
Removing the ok.
meld-3.20.1-1.1.mga7 Just showed up in updates testing with a failed (missing)
signature.

Guess I jumped the gun testing meld-3.20.1-1.mga7 and must have already had
python3-cairo installed.

Will follow up with sysadmins about the missing signature on the package.

Whiteboard: MGA7-64-OK => (none)
Keywords: advisory, validated_update => (none)

Comment 6 David Walser 2021-01-28 21:56:12 CET
Rebuilt as meld-3.20.1-1.2.mga7.  Try again.
Comment 7 Denis Bitouzé 2021-01-29 08:56:17 CET
(In reply to David Walser from comment #6)
> Rebuilt as meld-3.20.1-1.2.mga7.  Try again.

Same punishment :$

Thanks!
Comment 8 Aurelien Oudelet 2021-02-04 14:16:46 CET
(In reply to Denis Bitouzé from comment #7)
> (In reply to David Walser from comment #6)
> > Rebuilt as meld-3.20.1-1.2.mga7.  Try again.
> 
> Same punishment :$
> 
> Thanks!

Status?

CC: (none) => ouaurelien
Whiteboard: (none) => MGA7-64-OK

Comment 9 Denis Bitouzé 2021-02-04 14:38:51 CET
>Status?

In fact, I'm not sure. Indeed, I'm currently on another computer, with un up to date Mageia 7 as well. And, on it, meld works like a charm :$
Comment 10 Aurelien Oudelet 2021-02-04 17:28:11 CET
(In reply to Denis Bitouzé from comment #9)
> >Status?
> 
> In fact, I'm not sure. Indeed, I'm currently on another computer, with un up
> to date Mageia 7 as well. And, on it, meld works like a charm :$

Hou.
Simply we validate meanwhile the package as dependencies on it have been added.
Pushing.

Keywords: (none) => advisory, validated_update

Comment 11 Mageia Robot 2021-02-05 12:56:14 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2021-0021.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.