WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: gnome-music not working  (Read 3516 times)

Offline nick65go

  • Hero Member
  • *****
  • Posts: 799
gnome-music not working
« on: May 17, 2019, 01:21:24 PM »
Code: [Select]
tc@box:~$ tce-load -i gnome-music
dleyna-core.tcz: OK
dleyna-connector-dbus.tcz: OK
dleyna-server.tcz: OK
gupnp-av.tcz: OK
dleyna-renderer.tcz: OK
python3.6-urllib3.tcz: OK
python3.6-idna.tcz: OK
python3.6-chardet.tcz: OK
python3.6-certifi.tcz: OK
python3.6-requests.tcz: OK
gnome-music.tcz: OK
tc@box:~$ gnome-music
Traceback (most recent call last):
  File "/usr/local/bin/gnome-music", line 47, in <module>
    gi.require_version('Gtk', '3.0')
AttributeError: module 'gi' has no attribute 'require_version'

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: gnome-music not working
« Reply #1 on: May 18, 2019, 01:49:09 AM »
That was caused by a missing dep on py3.6gobject, which in turn threw up a bunch of missing runtime *gir deps - I didn't think gnome-music would work out of the gnome desktop environment, so this had been missed.

gnome-music dep file updated

Offline nick65go

  • Hero Member
  • *****
  • Posts: 799
Re: gnome-music not working
« Reply #2 on: May 18, 2019, 05:46:46 AM »
Code: [Select]
tc@box:~$ XDG_MUSIC_DIR=/home/tc gnome-music
14:44:41 WARNING        XDG Music dir is not set

(gnome-music:17097): Grilo-WARNING **: 14:44:42.548: [registry] grl-registry.c:1053: Failed to open module: liblua.so.5.3: cannot open shared object file: No such file or directory

(gnome-music:17097): Grilo-WARNING **: 14:44:42.569: [registry] grl-registry.c:1053: Failed to open module: libdmapsharing-3.0.so.2: cannot open shared object file: No such file or directory

FYI: now gnome-music starts (sort of), shows a box, and can not be used alone; but still some libs missing
BTW, i never used gnome-music, just tried to see which is the offer...
« Last Edit: May 18, 2019, 05:48:52 AM by nick65go »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: gnome-music not working
« Reply #3 on: May 18, 2019, 05:54:37 AM »
As mentioned, this is most probably because it needs to be run in the gnome environment with various daemons auto-started by gnome-session - at least tracker, but possibly others...

The missing libs you show are optional.

If you're feeling adventurous, start the dbus daemon, run tracker-preferences, choose a music folder, save settings,  check the tracker daemons have started and you might see some music - you might also need to run xdg-user-dirs-update before tracker-preferences.

Offline nick65go

  • Hero Member
  • *****
  • Posts: 799
Re: gnome-music not working
« Reply #4 on: May 18, 2019, 06:39:23 AM »
the important thing is that you had a look over it.
and maybe it can not run independently of gnome (full) environment.

this i tried, for fun only:
Code: [Select]
tc@box:~$ /usr/local/etc/init.d/dbus status
dbus is running.

Code: [Select]
tc@box:~$ xdg-user-dir
/home/tc
tc@box:~$ xdg-user-dirs-update

Code: [Select]
tc@box:~$ tracker-preferences
Gtk-Message: 15:29:26.214: GtkDialog mapped without a transient parent. This is discouraged.
tracker-miner-fs: Key 'index-single-directories' changed
tracker-miner-fs: Key 'index-recursive-directories' changed
tracker-miner-fs: Key 'ignored-directories' changed
tracker-miner-fs: Key 'ignored-files' changed
tracker-miner-fs: Key 'ignored-directories-with-content' changed
tracker-miner-fs: Key 'low-disk-space-limit' changed
tracker-miner-fs: Key 'removable-days-threshold' changed
tracker-miner-fs: Key 'sched-idle' changed
tracker-extract: Key 'sched-idle' changed
Code: [Select]
tc@box:~$ tracker daemon start &
tc@box:~$
(tracker daemon:19886): Tracker-WARNING **: 15:36:46.307: Error parsing miner .desktop file: No such file or directory

(tracker daemon:19886): Tracker-WARNING **: 15:36:46.308: Essential data (DBusPath, NameSuffix or Name) are missing in miner .desktop file
Store:
18 May 2019, 15:36:46:    0%  Store                 - Idle

Miners:
18 May 2019, 15:36:46:  ?     File System           - Not running or is a disabled plugin
18 May 2019, 15:36:46:  ?     Extractor             - Idle
18 May 2019, 15:36:46:  ?     Applications          - Not running or is a disabled plugin

^C
Code: [Select]
tc@box:~$ gnome-music

(gnome-music:19894): Grilo-WARNING **: 15:36:57.557: [registry] grl-registry.c:1053: Failed to open module: liblua.so.5.3: cannot open shared object file: No such file or directory

(gnome-music:19894): Grilo-WARNING **: 15:36:57.577: [registry] grl-registry.c:1053: Failed to open module: libdmapsharing-3.0.so.2: cannot open shared object file: No such file or directory

(gnome-music:19894): Grilo-WARNING **: 15:36:57.582: [registry] grl-registry.c:1053: Failed to open module: libdmapsharing-3.0.so.2: cannot open shared object file: No such file or directory
[1]+  Done                       tracker daemon start
tc@box:~$

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: gnome-music not working
« Reply #5 on: May 18, 2019, 07:06:57 AM »
Ah - using tracker-preferences from tracker(1) would start the appropriate tracker daemons when the settings were saved (I use this on a piCore rygel streamer).

tracker2 does not contain tracker-preferences - I have not yet had to use it outside of the gnome environment, so I haven't figured out how to manually start things.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: gnome-music not working
« Reply #6 on: May 19, 2019, 04:53:21 AM »
For completeness sake, in the gnome environment the following are autostarted:
Code: [Select]
$ ps aux | grep tracker
31415 tc       /usr/local/lib/tracker-2.0/tracker-miner-fs
31416 tc       /usr/local/lib/tracker-2.0/tracker-miner-apps
31418 tc       /usr/local/lib/tracker-2.0/tracker-extract
31439 tc       /usr/local/lib/tracker-2.0/tracker-store
..you then have to enable the file types to be indexed in Settings - Search - Preferences [Videos, Music, Documents, Downloads, Home, Pictures].

Then check things work:
Code: [Select]
$ tracker search -m
Files:
  file:///home/tc/Music/aayw.mp3
  file:///home/tc/Music/terminator.wav
  file:///home/tc/Music/Test_-_test1.mid
  file:///home/tc/Music/Video_Games.flac
..and then gnome music will find and play music tracks

I'll add tracker-miners to the gnome-music deps in case anybody wants to try to start tracker manually and mess with gsettings/dconf-editor to enable music file search.

Note ironically, the last time I checked,  at least one of gnome-{documents, music, photos, videos} will only "see" files found in $HOME/{Documents, Music, Pictures, Videos} regardless of where tracker finds appropriate files  :P
« Last Edit: May 19, 2019, 05:00:04 AM by Juanito »