Skip to main content
Topic: blueman-applet ImportError (Read 552 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

blueman-applet ImportError

I updated my system and rebooted and noticed, blueman-applet doesn't start anymore.

Code: [Select]
$ blueman-applet 
Traceback (most recent call last):
  File "/usr/bin/blueman-applet", line 16, in <module>
    from blueman.Functions import create_logger, create_parser, set_proc_title
  File "/usr/lib/python3.10/site-packages/blueman/Functions.py", line 37, in <module>
    import cairo
  File "/usr/lib/python3.10/site-packages/cairo/__init__.py", line 1, in <module>
    from ._cairo import *  # noqa: F401,F403
ImportError: /usr/lib/python3.10/site-packages/cairo/_cairo.cpython-310-x86_64-linux-gnu.so:  undefined symbol: cairo_tee_surface_index

I'm using blueman 2.3.5-1. The system update included

[2023-02-07T17:48:48+0100] [ALPM] upgraded cairo (1.17.6-2 -> 1.17.8-1)
[2023-02-07T17:49:53+0100] [ALPM] upgraded python-cairo (1.23.0-2 -> 1.23.0-3)

readelf -sd /usr/lib/libcairo.so does not list the searched symbol, but version 1.17.6-2 has that symbol.
So who's at fault here?

Re: blueman-applet ImportError

Reply #1
Been having this problem the last couple days as well, luckily, this seemingly unrelated post helped me track it down:
https://forum.artixlinux.org/index.php/topic,5059.msg32384/topicseen.html#msg32384

He was having trouble with guake I guess and was told on the arch forums to rebuild python-cairo.  I did this and blueman now works again.

Here's python-cairo-git on the aur: https://aur.archlinux.org/packages/python-cairo-git

I also had to pacman -S python-setuptools before it would compile properly.  Not sure why my makepkg -si didn't do that for me but I'm probably misusing the command or something.

Re: blueman-applet ImportError

Reply #2
The world/python-cairo needs to be rebuilt to address the issue.

Re: blueman-applet ImportError

Reply #3
Been having this problem the last couple days as well, luckily, this seemingly unrelated post helped me track it down:
https://forum.artixlinux.org/index.php/topic,5059.msg32384/topicseen.html#msg32384

He was having trouble with guake I guess and was told on the arch forums to rebuild python-cairo.  I did this and blueman now works again.

Here's python-cairo-git on the aur: https://aur.archlinux.org/packages/python-cairo-git

I also had to pacman -S python-setuptools before it would compile properly.  Not sure why my makepkg -si didn't do that for me but I'm probably misusing the command or something.
Thanks for the fix! I have added a comment on the python-cairo-git AUR page to address the missing python-setuptools makedepends. Here is the comment