Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

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!
Tasklist

FS#55240 - [blueman] use system python instead of local python install

Attached to Project: Community Packages
Opened by sdfdsfsdf (dekece) - Tuesday, 22 August 2017, 16:09 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 22 August 2017, 16:17 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Blueman and associated programs are python scripts. However, it defaults to using a local python interpreter (if present), making it not uses system dependencies and thus not running/running with different libs than the system (e.g. dbus) which leads to missing libraries and various issues.

Additional info:

I was not sure it falls into feature request/bug request/go ask upstream to do stuff correctly, but an easy fix would be to do just like packages needing python2 without enforcing it, that is change the very first line to force them to use #!/usr/bin/python explicitly instead of #!/usr/bin/env python

Steps to reproduce:

- Have local python install in path, launch from gnome shell or any other desktop manager, nothing happens if local python is missing dependencies.
- Open terminal, launch blueman-*, look at missing dependencies message.

Simple example

samuel ~ $ which blueman-adapters
/usr/bin/blueman-adapters
samuel ~ $ /usr/bin/blueman-adapters
Traceback (most recent call last):
File "/usr/bin/blueman-adapters", line 8, in <module>
import dbus
ImportError: No module named 'dbus'


samuel ~ $ /usr/bin/python /usr/bin/blueman-adapters
/usr/bin/blueman-adapters:10: PyGIWarning: Pango was imported without specifying a version first. Use gi.require_version('Pango', '1.0') before import to ensure that the right version gets loaded.
from gi.repository import Pango
blueman-adapters version 2.0.4 starting

And stuff works from then on.
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Tuesday, 22 August 2017, 16:17 GMT
Reason for closing:  Won't fix
Comment by Eli Schwartz (eschwartz) - Tuesday, 22 August 2017, 16:17 GMT
This is standard operating policy for the python language ecosystem. I happen to agree with you, but on the other hand, that would require fixing pretty much every python package ever...

And TBH local python installations are neither supported nor wise. Use venv if you need to, or add your local python installation to the PATH only when you specifically need it.

Loading...