Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #4660

[Python-de] Arch, Python 3.6, setuptools und dbus-python: DistributionNotFound

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Christopher Arndt <chris@chrisarndt.de>
Newsgroups de.comp.lang.python
Subject [Python-de] Arch, Python 3.6, setuptools und dbus-python: DistributionNotFound
Date Fri, 20 Jan 2017 14:59:30 +0100
Lines 97
Message-ID <mailman.31.1484921092.9761.python-de@python.org> (permalink)
References <aa42d657-6d0e-2c1a-d02d-efff11814391@chrisarndt.de>
Mime-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xWvpJolpCR5uagh3OD36n5GD0dp6Vd01s"
X-Trace news.uni-berlin.de lKyosmT7OElx88JZLCBmgw1D1ljcPZhZBgIjKogRK3cQ==
Return-Path <chris@chrisarndt.de>
X-Original-To python-de@python.org
Delivered-To python-de@mail.python.org
X-Virus-Scanned Debian amavisd-new at mx1.0x20.eu
Openpgp id=F0BA1EAE86651989C0A1C9901E0D97B33A4E1F31
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
X-BeenThere python-de@python.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Die Deutsche Python Mailingliste <python-de.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-de/>
List-Post <mailto:python-de@python.org>
List-Help <mailto:python-de-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <aa42d657-6d0e-2c1a-d02d-efff11814391@chrisarndt.de>
Xref csiph.com de.comp.lang.python:4660

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hallo,

ich habe hier ein Problem, bei dem ich zwar die Ursache erkennen kann,
mir aber nicht klar ist, warum es neuerdings auftritt und wer hier der
Schuldige ist:

- Ich habe ein Python-Paket (jack-select [1]), das als Dependency
'dbus-python' hat und dies auch so in der setup.py deklariert.

- Das Paket enthält ein Kommandozeilenprogramm 'jack-select', das über
einen 'console_scripts' Entry Point bei der Installion erzeugt wird.

- Arch Linux hat ein Paket 'python-dbus', das das 'dbus-python' Paket
installiert. Der Python-Packagename des Pakets ist aber 'dbus', d.h. man
benutzt es mit 'import dbus'. Das Arch-Paket installiert zwar das
Package korrekt in site-packages, aber kein *.egg-info oder *.dist-info
Verzeichnis mit einer top_level.txt Datei, die die Zuordnung von
Distributionsname (dbus-python) zu Packagename (dbus) herstellt.

- Seit dem letzten Update von Arch, mit dem Python von 3.5 auf 3.6
aktualisiert wurde, funktioniert jetzt mein jack-select Programm nicht
mehr (das ich natürlich ebenso neu installiert habe, damit es unter
Python 3.6 installiert ist):

$ jack-select
[...]
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
line 849, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'dbus-python' distribution was
not found and is required by jack-select

Meine Fragen:

- Wieso hat das vorher funktioniert? (Die Struktur des python-dbus
Pakets hat sich m.E. nicht geändert, d.h. es war auch vorher keine
.egg-info Datein darin [2].)

- Liegt der Fehler bei dbus-python bzw. dessen Packaging, weil es sich
nicht mit setuptools installiert, oder bei setuptools/pkg_resources,
weil es nicht erkennt, das das Paket installiert ist?

- Kennt jemand ein gute Ressource, wo man genau nachlesen kann, wie das
mit den ganzen *.egg-info und *.dist-info Dateien funktioniert?


Gruß, Chris

[1] https://pypi.python.org/pypi/jack-select bzw.
https://aur.archlinux.org/packages/jack-select/
[2]
https://git.archlinux.org/svntogit/packages.git/log/trunk?h=packages/dbus-python

Back to de.comp.lang.python | Previous | Next | Find similar


Thread

[Python-de] Arch, Python 3.6, setuptools und dbus-python: DistributionNotFound Christopher Arndt <chris@chrisarndt.de> - 2017-01-20 14:59 +0100

csiph-web