Nabend!
Am 29.01.2018 um 16:52 schrieb Michelle Konzack: N'abend Leute. ist hier jemand der Python programmieren kann? Also ich habe "blueman" 2.1~alpha2 aus Experiemental gezogen und unter Stretch das Paket gebaut. Soweit so gut, laeßt sich auch einwandfrei installieren. Aber das blueman-applet will immer noch nicht. Dieses mal aber nicht mit einem SEGFAULT! ----[ c 'blueman-applet' ]---------------------------------------------- Traceback (most recent call last): File "./blueman-applet", line 15, in <module> from blueman.Functions import create_logger, create_parser, set_proc_title ImportError: No module named 'blueman' ------------------------------------------------------------------------ Hier kann das Modul namens blueman nicht importiert werden, heisst nicht gefunden oder kein Leserecht. Wo das aber nun liegen soll, kann ich nicht sagen. Eventuell unter /usr/local/lib/python3* Aus der python 3.5 Doku:Ich nehem das nun als Anlaß, Python zu lernen! Hier ist der offending part: ----[ '/usr/bin/blueman-applet' ]-------------------------------------- #!/usr/bin/env python3 # coding=utf-8 import sys import os import signal import logging # support running uninstalled _dirname = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) if 'BLUEMAN_SOURCE' in os.environ: sys.path = [_dirname, os.path.join(_dirname, 'module', '.libs')] + sys.path os.environ["GSETTINGS_SCHEMA_DIR"] = os.path.join(_dirname, "data") from blueman.Functions import create_logger, create_parser, set_proc_title from blueman.main.Applet import BluemanApplet ----------------------------------------------------------------------- Das Problem ist in der Zeile ys.path = [_dirname, os.path.join(_dirname, 'module', '.libs')] + sys.path denn hier steht ----[ '/usr/lib/python3.5/os.py' ]------------------------------------ To get a full path (which begins with top) to a file or directory in dirpath, do os.path.join(dirpath, name). ----------------------------------------------------------------------- im blueman-applet wird aber os.path.join(_dirname, 'module', '.libs') verwendet, also 3 anstatt 2 parameter. os.path. join (path, *paths)was dann heisst, es gehen auch mehrere Argumente. siehe https://docs.python.org/3.5/library/os.path..html Desweiteren werde ich aus dem python 3 tutorial nicht schlau, was das construct [ ... ] bewirken soll. Kann mir das jemand erklaeren? Kann mir jemand sagen, welche die internationale englisch sprachige Python Mailingliste ist? Thanks in avance Schönes Wochenende
Gruss Wolfgang |