google-code-export / beets

Automatically exported from code.google.com/p/beets
MIT License
0 stars 0 forks source link

Opensuse 12.1 (32bit): "ImportError: No module named audioop" #320

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi there!

I'm running into a python related problem trying beets on Opensuse 12.1:
"ImportError: No module named audioop"

I installed the Chromaprint library for fingerprint ... this seems to work. My 
.beetsconfig file looks like this:

----------------------------------------
[beets]
directory: ~/Music
library: ~/tmp/musiclibrary.blb
import_copy: no

plugins: chroma
----------------------------------------

Can anybody help? Thank you in advance!

Keep up the great work,
Robert

###################

Log:

frank@t500:~/opt> beet import -C /path/to/music
Traceback (most recent call last):
  File "/usr/local/bin/beet", line 9, in <module>
    load_entry_point('beets==1.0b12', 'console_scripts', 'beet')()
  File "/usr/local/lib/python2.7/site-packages/beets/ui/__init__.py", line 711, in main
    subcommand.func(lib, config, suboptions, subargs)
  File "/usr/local/lib/python2.7/site-packages/beets/ui/commands.py", line 715, in import_func
    timid, query, incremental, ignore)
  File "/usr/local/lib/python2.7/site-packages/beets/ui/commands.py", line 614, in import_files
    ignore = ignore,
  File "/usr/local/lib/python2.7/site-packages/beets/importer.py", line 825, in run_import
    pl.run_parallel(QUEUE_SIZE)
  File "/usr/local/lib/python2.7/site-packages/beets/util/pipeline.py", line 242, in run
    out = self.coro.send(msg)
  File "/usr/local/lib/python2.7/site-packages/beets/importer.py", line 534, in initial_lookup
    task.set_match(*autotag.tag_album(task.items, config.timid))
  File "/usr/local/lib/python2.7/site-packages/beets/autotag/match.py", line 440, in tag_album
    va_likely)
  File "/usr/local/lib/python2.7/site-packages/beets/autotag/hooks.py", line 108, in _album_candidates
    out.extend(plugins.candidates(items))
  File "/usr/local/lib/python2.7/site-packages/beets/plugins.py", line 212, in candidates
    out.extend(plugin.candidates(items))
  File "/usr/local/lib/python2.7/site-packages/beetsplug/chroma.py", line 110, in candidates
    for relid in _all_releases(items):
  File "/usr/local/lib/python2.7/site-packages/beetsplug/chroma.py", line 83, in _all_releases
    aidata = acoustid_match(item.path)
  File "/usr/local/lib/python2.7/site-packages/beetsplug/chroma.py", line 42, in __call__
    res = self.func(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/beetsplug/chroma.py", line 54, in acoustid_match
    parse=False)
  File "/usr/local/lib/python2.7/site-packages/acoustid.py", line 277, in match
    duration, fp = _fingerprint_file_audioread(path)
  File "/usr/local/lib/python2.7/site-packages/acoustid.py", line 235, in _fingerprint_file_audioread
    with audioread.audio_open(path) as f:
  File "/usr/local/lib/python2.7/site-packages/audioread/__init__.py", line 53, in audio_open
    from . import rawread
  File "/usr/local/lib/python2.7/site-packages/audioread/rawread.py", line 18, in <module>
    import audioop
ImportError: No module named audioop

Original issue reported on code.google.com by franks461 on 29 Jan 2012 at 7:36

GoogleCodeExporter commented 9 years ago
Strange! The "audioop" module is part of the Python standard library:
http://docs.python.org/library/audioop.html
So it should be present on every machine that has Python. Is there any chance 
that you have an incomplete Python installation?

If you, you might try stealing a compiled audioop module (it's a C extension) 
from some other Python installation and placing into the Python library path 
(/usr/local/lib/python2.7).

Original comment by adrian.sampson on 29 Jan 2012 at 9:51

GoogleCodeExporter commented 9 years ago
Closing barring a response from the reporter. Will reopen if OP provides more 
info.

Original comment by adrian.sampson on 19 Feb 2012 at 9:59