Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It hangs to import with replaygain: gstreamer #885

Closed
simonbcn opened this issue Jul 25, 2014 · 10 comments

Comments

@simonbcn
Copy link

commented Jul 25, 2014

Ubuntu 14.04 64 bits

I try to import a mp3 folder with replaygain: gstreamer but beets hangs.

$ beet -v im /dunehd/Musica\ pendiente/Safari/
user configuration: /home/simon/.config/beets/config.yaml
Sending event: pluginload
artresizer: method is 1
Sending event: library_opened
data directory: /home/simon/.config/beets
library database: /home/simon/.beets/musiclibrary.blb
library directory: /home/simon/Música/PC
Sending event: import_task_start
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed
  import gobject._gobject
/usr/lib/python2.7/dist-packages/gst-0.10/gst/__init__.py:193: Warning: cannot register existing type 'GstObject'
  from _gst import *
/usr/lib/python2.7/dist-packages/gst-0.10/gst/__init__.py:193: Warning: g_once_init_leave: assertion 'result != 0' failed
  from _gst import *
/usr/lib/python2.7/dist-packages/gst-0.10/gst/__init__.py:193: Warning: g_type_register_static: assertion 'parent_type > 0' failed
  from _gst import *
/usr/lib/python2.7/dist-packages/gst-0.10/gst/__init__.py:193: Warning: interface type 'GstImplementsInterface' or prerequisite type '<invalid>' invalid
  from _gst import *
$ beet version
beets version 1.3.7
plugins: echonest_tempo, discogs, lastgenre, replaygain, embedart, scrub, chroma, beatport, fetchart
$ cat .config/beets/config.yaml
directory: "/home/simon/M\xFAsica/PC"
library: /home/simon/.beets/musiclibrary.blb
threaded: yes
color: yes
plugins: chroma replaygain fetchart lastgenre scrub embedart echonest_tempo beatport discogs
art_filename: folder

match:
   strong_rec_thresh: 0.10

fetchart:
   maxwidth: 300
   cover_names: front folder cover 

embedart:
   maxwidth: 300

import:
   art: true

paths:
   default: $albumartist/$album/$track - $title
   singleton: $artist - $title
   comp: Varios/$album/$track - $title

replaygain:
   backend: gstreamer
   overwrite: true

lastgenre:
   canonical: ''
   fallback: ''
   multiple: true
   force: no
@yevgenybezman

This comment has been minimized.

Copy link
Collaborator

commented Jul 25, 2014

You are using an old version of the GStreamer python bindings. Please upgrade to a version higher than 1.0 (you're using 0.10).

@simonbcn

This comment has been minimized.

Copy link
Author

commented Jul 25, 2014

I have installed python-gst-1.0 and python-gst0.10. I have uninstalled python-gst0.10 and now it seems work well.
I think beets should be select the right gst version automatically.

@yevgenybezman

This comment has been minimized.

Copy link
Collaborator

commented Jul 25, 2014

The code requires 1.0 and I've had luck running it with 1.0 and 0.1 installed concurrently.
Are you sure you had 1.0 installed when it hung?

@sampsyo

This comment has been minimized.

Copy link
Member

commented Jul 25, 2014

We've seen some hangs when using both versions simultaneously, as can happen when the chroma plugin is also enabled. Could that have been the case here?

@sampsyo sampsyo added the needinfo label Jul 25, 2014

@simonbcn

This comment has been minimized.

Copy link
Author

commented Jul 25, 2014

Yes, I had installed both versions.

@yevgenybezman

This comment has been minimized.

Copy link
Collaborator

commented Jul 25, 2014

@sampsyo
chroma uses acoustid, which in turn uses audioread, which in turn uses gstreamer. Maybe you're not enforcing the correct version in audioread?

Edit:
Seems audioread uses the pre-1.0 bindings. I guess they don't like being imported simultaneously.

@sampsyo

This comment has been minimized.

Copy link
Member

commented Jul 25, 2014

We are enforcing the correct version, but the correct version is (unfortunately) still 0.10 for audioread. See also: beetbox/audioread#11

@yevgenybezman

This comment has been minimized.

Copy link
Collaborator

commented Jul 25, 2014

Any reason? (other than lack of time)

@sampsyo

This comment has been minimized.

Copy link
Member

commented Jul 25, 2014

Nope; just time.

@gwern

This comment has been minimized.

Copy link
Contributor

commented Sep 11, 2014

FWIW, I ran into a similar issue while trying to run on Debian testing, where it would hang indefinitely after printing some errors. (This was a little disturbing since the manual warns you to expect the initial import to be very slow so I was unsure if it was broken or just very slow until I googled the error and got here.) Doing a sudo apt-get remove python-gst0.10 got it running again

But I am uncertain if the chroma plugin was working or not during my import. To be safe I ran beet fingerprint; beet submit after I was finished.

This was referenced Sep 11, 2014

@sampsyo sampsyo closed this Nov 25, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.