Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#42323 - python2-matplotlib crashes without libxkbcommon-x11 installed

Attached to Project: Community Packages
Opened by Li Jiapeng (jpli) - Friday, 10 October 2014, 09:09 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 10 October 2014, 14:04 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


## Description

Starting from 5.3.0-1, qt5-base needs optional dependency libxkbcommon-x11 for xcb plugin.

python2 will crash, if the user tries to create a figure using the default backend "qt5agg", see the error message in the Steps-to-produce section.

The message shows xcb plugin is installed but fails to function properly, this post explains the cause of the problem:

Run ldd on /usr/lib/qt/plugins/platforms/ shows the following error message => not found

Install libxkbcommon-x11 package solves the problem

So I guess if python2-matplotlib continues to use "qt5agg" as the default backend, it should include libxkbcommon-x11 in the dependency list, like qt5-declarative or smplayer does.

Or a different backend can be used[0]=33&string=python2-matplotlib

## Additional info

$ pacman -Qi python2-matplotlib
Name : python2-matplotlib
Version : 1.4.0-2

$ pacman -Qi qt5-base
Name : qt5-base
Version : 5.3.2-1

## Steps to reproduce

Without package `libxkbcommon-x11` installed

$ python2 -c "import pylab; pylab.figure()"
This application failed to start because it could not find or load the Qt platform plugin "xcb".

Available platform plugins are: eglfs, kms, linuxfb, minimal, minimalegl, offscreen, xcb.

Reinstalling the application may fix this problem.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Friday, 10 October 2014, 14:04 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#42307