ubuntuusers.de

python3 Skript läuft nicht (fehlende Module?)

Status: Ungelöst | Ubuntu-Version: Ubuntu 18.04 (Bionic Beaver)
Antworten |

Wolfmann

Anmeldungsdatum:
7. Oktober 2018

Beiträge: 346

Hallo, ich hoffe, dass ich mit meiner Frage hier richtig bin. War mir nicht ganz sicher, ob das hier oder besser in Programmierung rein müsste.

Also: Ich habe mir folgendes python-Skript heruntergeladen: SpotRec-master

Hier mal der Link zur Beschreibung: https://www.linux-bibel-oesterreich.at/2020/09/21/spotrec-audio-streams-von-spotify-unter-linux-aufzeichnen/

Leider bekomme ich das Ganze nicht zum Laufen. python3 erkennt die Module nicht, die in dem Skript importiert wurden. Das Verzeichnis (/usr/bin/python3), das im shebang angegeben ist, dürfte richtig sein. Habe es auch mal auf /usr/bin/python3.7 angepasst, weil bei mir die Version 3.7.2 drauf ist. Zusätzlich aber noch die Version 2.7.15.

Ich befürchte, dass da manche Module nicht richtig installiert bzw. einer falschen Version zugeordnet werden. Gibt es da einen Befehl, wie man Module einer Version bei der Installation zuordnen kann? Oder wie krieg ich die alte python2 Version los?

Würde mich über Antworten freuen.

Moderiert von tuxifreund:

Dieses Thema ist verschoben worden. Bitte beachte die als wichtig markierten Themen („Welche Themen gehören hier her und welche nicht?“)!

tuxifreund Team-Icon

Projektleitung

Anmeldungsdatum:
7. November 2020

Beiträge: 1178

Wie lautet denn die Fehlermeldung/Traceback?

LG
tuxifreund

Wolfmann

(Themenstarter)

Anmeldungsdatum:
7. Oktober 2018

Beiträge: 346

1
2
3
4
Traceback (most recent call last):
  File "spotrec.py", line 5, in <module>
    import dbus
ModuleNotFoundError: No module named 'dbus'

Wobei nicht nur dbus nicht erkannt wird. Ich habe line 5 (import dbus) mal testweise auskommetiert - dann kommt die gleiche Meldung mit dem nächsten Modul, das importiert wird. Scheint also was generelles zu sein...

Axel-Erfurt

Anmeldungsdatum:
18. Mai 2016

Beiträge: 1347

Versuchs mal mit

pip3 install dbus-python
pip3 install PyGObject

Wolfmann

(Themenstarter)

Anmeldungsdatum:
7. Oktober 2018

Beiträge: 346

Hallo, das habe ich versucht - aber ich erhalte bei beiden ewig lange Fehlermeldungen:

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
Defaulting to user installation because normal site-packages is not writeable
Collecting dbus-python
  Using cached dbus-python-1.2.16.tar.gz (576 kB)
Installing collected packages: dbus-python
    Running setup.py install for dbus-python ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zdm7p_0s/dbus-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zdm7p_0s/dbus-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-roooxc83/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/wolfgang/.local/include/python3.7m/dbus-python
         cwd: /tmp/pip-install-zdm7p_0s/dbus-python/
    Complete output (145 lines):
    running install
    running build
    creating /tmp/pip-install-zdm7p_0s/dbus-python/build
    creating /tmp/pip-install-zdm7p_0s/dbus-python/build/temp.linux-x86_64-3.7
    checking whether make supports nested variables... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports the include directive... yes (GNU style)
    checking whether UID '1000' is supported by ustar format... yes
    checking whether GID '1000' is supported by ustar format... yes
    checking how to create a ustar tar archive... gnutar
    checking dependency style of gcc... gcc3
    checking build system type... x86_64-pc-linux-gnu
    checking host system type... x86_64-pc-linux-gnu
    checking for native Windows host... no
    checking how to print strings... printf
    checking for a sed that does not truncate output... /bin/sed
    checking for fgrep... /bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
    checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for sysroot... no
    checking for a working dd... /bin/dd
    checking how to truncate binary pipes... /bin/dd bs=4096 count=1
    checking for mt... mt
    checking if mt is a manifest tool... no
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    checking for inline... inline
    checking for gawk... (cached) gawk
    checking for python... /usr/local/bin/python3.7
    checking for a version of Python >= '2.1.0'... yes
    checking for a version of Python >= '2.7'... yes
    checking for the distutils Python package... yes
    checking for Python include path... -I/usr/local/include/python3.7m
    checking for Python library path... -L/usr/local/lib -lpython3.7m
    checking for Python site-packages path... /usr/local/lib/python3.7/site-packages
    checking python extra libraries... -lpthread -ldl  -lutil -lm
    checking python extra linking flags... -Xlinker -export-dynamic
    checking consistency of all components of python development environment... yes
    checking for python version... 3.7
    checking for python platform... linux
    checking for python script directory... ${prefix}/lib/python3.7/site-packages
    checking for python extension module directory... ${exec_prefix}/lib/python3.7/site-packages
    checking python3.7 module: sphinx... no
    checking python3.7 module: sphinx_rtd_theme... no
    checking for dbus-run-session... /usr/bin/dbus-run-session
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for DBUS... no
    configure: error: Package requirements (dbus-1 >= 1.8) were not met:
    
    No package 'dbus-1' found
    
    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.
    
    Alternatively, you may set the environment variables DBUS_CFLAGS
    and DBUS_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-zdm7p_0s/dbus-python/setup.py", line 111, in <module>
        tests_require=['tap.py'],
      File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 143, in setup
        return distutils.core.setup(**attrs)
      File "/usr/local/lib/python3.7/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/local/lib/python3.7/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/local/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/local/lib/python3.7/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/tmp/pip-install-zdm7p_0s/dbus-python/setup.py", line 64, in run
        cwd=builddir)
      File "/usr/local/lib/python3.7/subprocess.py", line 347, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/tmp/pip-install-zdm7p_0s/dbus-python/configure', '--disable-maintainer-mode', 'PYTHON=/usr/local/bin/python3.7', '--prefix=/tmp/pip-install-zdm7p_0s/dbus-python/build/temp.linux-x86_64-3.7/prefix']' returned non-zero exit status 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zdm7p_0s/dbus-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zdm7p_0s/dbus-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-roooxc83/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/wolfgang/.local/include/python3.7m/dbus-python Check the logs for full command output.
WARNING: You are using pip version 20.0.2; however, version 21.0.1 is available.
You should consider upgrading via the '/usr/local/bin/python3.7 -m pip install --upgrade pip' command.

und bei PyGObject:

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
Defaulting to user installation because normal site-packages is not writeable
Collecting PyGObject
  Downloading PyGObject-3.40.1.tar.gz (714 kB)
     |████████████████████████████████| 714 kB 1.4 MB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Processing /home/wolfgang/.cache/pip/wheels/dc/f1/a5/bc0af60e544c2e6564fe9a3a6d8bb6351e207a092516bdba00/pycairo-1.20.0-cp37-cp37m-linux_x86_64.whl
Building wheels for collected packages: PyGObject
  Building wheel for PyGObject (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python3.7 /usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp_r9ihs9o
       cwd: /tmp/pip-install-lxdbtvha/PyGObject
  Complete output (44 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.7
  creating build/lib.linux-x86_64-3.7/pygtkcompat
  copying pygtkcompat/generictreemodel.py -> build/lib.linux-x86_64-3.7/pygtkcompat
  copying pygtkcompat/pygtkcompat.py -> build/lib.linux-x86_64-3.7/pygtkcompat
  copying pygtkcompat/__init__.py -> build/lib.linux-x86_64-3.7/pygtkcompat
  creating build/lib.linux-x86_64-3.7/gi
  copying gi/_constants.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/_signalhelper.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/_error.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/module.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/docstring.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/_propertyhelper.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/_option.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/_gtktemplate.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/pygtkcompat.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/__init__.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/_ossighelper.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/types.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/importer.py -> build/lib.linux-x86_64-3.7/gi
  creating build/lib.linux-x86_64-3.7/gi/repository
  copying gi/repository/__init__.py -> build/lib.linux-x86_64-3.7/gi/repository
  creating build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/GIMarshallingTests.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/keysyms.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/GdkPixbuf.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/Gdk.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/Pango.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/GLib.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/Gio.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/Gtk.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/__init__.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/GObject.py -> build/lib.linux-x86_64-3.7/gi/overrides
  running build_ext
  Package gobject-introspection-1.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `gobject-introspection-1.0.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'gobject-introspection-1.0' found
  Command '('pkg-config', '--print-errors', '--exists', 'gobject-introspection-1.0 >= 1.56.0')' returned non-zero exit status 1.
  
  Try installing it with: 'sudo apt install libgirepository1.0-dev'
  ----------------------------------------
  ERROR: Failed building wheel for PyGObject
Failed to build PyGObject
ERROR: Could not build wheels for PyGObject which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 20.0.2; however, version 21.0.1 is available.
You should consider upgrading via the '/usr/local/bin/python3.7 -m pip install --upgrade pip' command.
wolfgang@wolfgang-GF72-8RE:~/SpotRec-master$ sudo pip3 install PyGObject
[sudo] Passwort für wolfgang:         
WARNING: The directory '/home/wolfgang/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting PyGObject
  Downloading PyGObject-3.40.1.tar.gz (714 kB)
     |████████████████████████████████| 714 kB 1.4 MB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting pycairo>=1.16.0
  Downloading pycairo-1.20.0.tar.gz (344 kB)
     |████████████████████████████████| 344 kB 1.3 MB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: PyGObject, pycairo
  Building wheel for PyGObject (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python3.7 /usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpldjpp1qc
       cwd: /tmp/pip-install-akchre57/PyGObject
  Complete output (44 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.7
  creating build/lib.linux-x86_64-3.7/pygtkcompat
  copying pygtkcompat/generictreemodel.py -> build/lib.linux-x86_64-3.7/pygtkcompat
  copying pygtkcompat/pygtkcompat.py -> build/lib.linux-x86_64-3.7/pygtkcompat
  copying pygtkcompat/__init__.py -> build/lib.linux-x86_64-3.7/pygtkcompat
  creating build/lib.linux-x86_64-3.7/gi
  copying gi/_constants.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/_signalhelper.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/_error.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/module.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/docstring.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/_propertyhelper.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/_option.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/_gtktemplate.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/pygtkcompat.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/__init__.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/_ossighelper.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/types.py -> build/lib.linux-x86_64-3.7/gi
  copying gi/importer.py -> build/lib.linux-x86_64-3.7/gi
  creating build/lib.linux-x86_64-3.7/gi/repository
  copying gi/repository/__init__.py -> build/lib.linux-x86_64-3.7/gi/repository
  creating build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/GIMarshallingTests.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/keysyms.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/GdkPixbuf.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/Gdk.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/Pango.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/GLib.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/Gio.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/Gtk.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/__init__.py -> build/lib.linux-x86_64-3.7/gi/overrides
  copying gi/overrides/GObject.py -> build/lib.linux-x86_64-3.7/gi/overrides
  running build_ext
  Package gobject-introspection-1.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `gobject-introspection-1.0.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'gobject-introspection-1.0' found
  Command '('pkg-config', '--print-errors', '--exists', 'gobject-introspection-1.0 >= 1.56.0')' returned non-zero exit status 1.
  
  Try installing it with: 'sudo apt install libgirepository1.0-dev'
  ----------------------------------------
  ERROR: Failed building wheel for PyGObject
  Building wheel for pycairo (PEP 517) ... done
  Created wheel for pycairo: filename=pycairo-1.20.0-cp37-cp37m-linux_x86_64.whl size=260144 sha256=1abf1d4fabb8bfc32ade74f255df7d1aefb411f9ba075fd05092f2543ef0d812
  Stored in directory: /tmp/pip-ephem-wheel-cache-0xyimngz/wheels/dc/f1/a5/bc0af60e544c2e6564fe9a3a6d8bb6351e207a092516bdba00
Successfully built pycairo
Failed to build PyGObject
ERROR: Could not build wheels for PyGObject which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 20.0.2; however, version 21.0.1 is available.
You should consider upgrading via the '/usr/local/bin/python3.7 -m pip install --upgrade pip' command.

Deshalb denke ich auch, dass da generell irgendwas an einen falschen Ort installiert wird ...

Axel-Erfurt

Anmeldungsdatum:
18. Mai 2016

Beiträge: 1347

Wolfmann schrieb:

Deshalb denke ich auch, dass da generell irgendwas an einen falschen Ort installiert wird ...

Wieso sollte pip etwas an 'einen falschen Ort' installieren?

Vielleicht fehlen nur einige dev Bibliotheken bei Dir.

Du kannst es auch mit apt installieren.

sudo apt install python3-dbus
sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0

Speedy-10

Avatar von Speedy-10

Anmeldungsdatum:
23. März 2010

Beiträge: 915

Wohnort: Pfalz

Hi Axel-Erfurt, ich benutze auch SpotRec unter 20.04, hier lief es direkt. Da du Python2 Module erwähnst, wie rufst du SpotRec auf?

python3 spotrec.py

sollte es sein.

VG

Speedy-10

Avatar von Speedy-10

Anmeldungsdatum:
23. März 2010

Beiträge: 915

Wohnort: Pfalz

EDIT: Doppelt abgesendet, bitte ignorieren.

Wolfmann

(Themenstarter)

Anmeldungsdatum:
7. Oktober 2018

Beiträge: 346

Ich starte das schon mit python3.

Habe es jetzt mit apt installiert, aber laut Aussage des Systems müsste alles drauf sein:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
python3-dbus ist schon die neueste Version (1.2.6-1).
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
  libcec4 libcrossguid0 libfstrcmp0 libmicrohttpd12 libnvidia-common-410
  libp8-platform2 libphonon4qt5-4 libqjson0 libqt4-declarative libqt4-network
  libqt4-script libqt4-sql libqt4-xml libqt4-xmlpatterns libqt5script5
  libqtcore4 libqtdbus4 libqtgui4 libquvi-0.9-0.9.3 libquvi-scripts-0.9
  libshairplay0 libshout-idjc3 libtinyxml2.6.2v5 libzita-alsa-pcmi0
  libzita-resampler1 lua-bitop lua-expat lua-json lua-lpeg lua-socket
  python-bluez python-cryptodome python-irc python-pil python-simplejson
  qtcore4-l10n quvi screen-resolution-extra uuid-dev
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 517 nicht aktualisiert.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
gir1.2-gtk-3.0 ist schon die neueste Version (3.22.30-1ubuntu4).
python3-gi ist schon die neueste Version (3.26.1-2ubuntu1).
python3-gi-cairo ist schon die neueste Version (3.26.1-2ubuntu1).
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
  libcec4 libcrossguid0 libfstrcmp0 libmicrohttpd12 libnvidia-common-410
  libp8-platform2 libphonon4qt5-4 libqjson0 libqt4-declarative libqt4-network
  libqt4-script libqt4-sql libqt4-xml libqt4-xmlpatterns libqt5script5
  libqtcore4 libqtdbus4 libqtgui4 libquvi-0.9-0.9.3 libquvi-scripts-0.9
  libshairplay0 libshout-idjc3 libtinyxml2.6.2v5 libzita-alsa-pcmi0
  libzita-resampler1 lua-bitop lua-expat lua-json lua-lpeg lua-socket
  python-bluez python-cryptodome python-irc python-pil python-simplejson
  qtcore4-l10n quvi screen-resolution-extra uuid-dev
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 517 nicht aktualisiert.

Axel-Erfurt

Anmeldungsdatum:
18. Mai 2016

Beiträge: 1347

... 517 nicht aktualisiert

Wohl schon länger kein Update mehr gemacht?

Wolfmann

(Themenstarter)

Anmeldungsdatum:
7. Oktober 2018

Beiträge: 346

Stimmt, habe jetzt mal geupdated.

Bei folgendem hängt es anscheinend:

1
2
3
4
Fehl:1 http://repository.spotify.com stable/non-free amd64 spotify-client amd64 1:1.1.42.622.gbd112320-37
  404  Not Found [IP: 65.9.67.152 80]
E: Fehlschlag beim Holen von http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.42.622.gbd112320-37_amd64.deb 404  Not Found [IP: 65.9.67.152 80]
E: Einige Archive konnten nicht heruntergeladen werden; vielleicht »apt-get update« ausführen oder mit »--fix-missing« probieren?

Das mit dem fix-missing habe ich versucht, da erhalte ich aber nur eine Auflistung über die Optionen des apt Befehls.

Axel-Erfurt

Anmeldungsdatum:
18. Mai 2016

Beiträge: 1347

Fehlschlag beim Holen von http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.42.622.gbd112320-37_amd64.deb 404 Not Found

Die Meldung sagt es ja, spotify-client_1.1.42.622.gbd112320-37_amd64.deb kann nicht geholt werden da es nicht existiert.

Axel-Erfurt

Anmeldungsdatum:
18. Mai 2016

Beiträge: 1347

Was ergibt denn

apt-cache policy spotify-client

Wolfmann

(Themenstarter)

Anmeldungsdatum:
7. Oktober 2018

Beiträge: 346

Folgendes. Spotify ist installiert - aber mit dem Updaten scheint da was nicht zu klappen:

1
2
3
4
5
6
7
8
9
spotify-client:
  Installiert:           1:1.1.10.546.ge08ef575-19
  Installationskandidat: 1:1.1.42.622.gbd112320-37
  Versionstabelle:
     1:1.1.42.622.gbd112320-37 500
        500 http://repository.spotify.com stable/non-free amd64 Packages
 *** 1:1.1.10.546.ge08ef575-19 500
        500 http://packages.linuxmint.com tara/import amd64 Packages
        100 /var/lib/dpkg/status

Speedy-10

Avatar von Speedy-10

Anmeldungsdatum:
23. März 2010

Beiträge: 915

Wohnort: Pfalz

Spotify-client ggf. nochmal neu installieren?

Antworten |