Comment 7 for bug 816503

Revision history for this message
Graham White (graham-alton) wrote :

hmm, yes that error is probably because I didn't install scipy as shown when I try to run autoqueue-similarity-service

# /usr/lib/autoqueue/autoqueue-similarity-service
Traceback (most recent call last):
  File "/usr/lib/autoqueue/autoqueue-similarity-service", line 2, in <module>
    from autoqueue.similarity import main
  File "/usr/lib/python2.7/site-packages/autoqueue/similarity.py", line 22, in <module>
    from mirage import (
  File "/usr/lib/python2.7/site-packages/mirage/__init__.py", line 32, in <module>
    from scipy import array, fromfile, zeros, dot, single, vectorize
ImportError: No module named scipy

After installing scipy I then get an error about the lack of mirage installation

# /usr/lib/autoqueue/autoqueue-similarity-service
Traceback (most recent call last):
  File "/usr/lib/autoqueue/autoqueue-similarity-service", line 2, in <module>
    from autoqueue.similarity import main
  File "/usr/lib/python2.7/site-packages/autoqueue/similarity.py", line 22, in <module>
    from mirage import (
  File "/usr/lib/python2.7/site-packages/mirage/__init__.py", line 48, in <module>
    "/usr/lib/banshee-1/Extensions/libmirageaudio.so")
  File "/usr/lib/python2.7/ctypes/__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /usr/lib/banshee-1/Extensions/libmirageaudio.so: cannot open shared object file: No such file or directory

It seems the separation of mirage and last.fm isn't quite there and the code still insists on having mirage installed rather than simply ignoring it and falling back to last.fm. I wonder if I should be setting "by_mirage" to false?