keunwoochoi / music-auto_tagging-keras

Music auto-tagging models and trained weights in keras/theano
MIT License
614 stars 142 forks source link

Audioread module #14

Closed mv00147 closed 7 years ago

mv00147 commented 7 years ago

Dear sir/madam, When I run example_tagging.py I get the following error Couldn't import dot_parser, loading of dot files will not be possible. ERROR (theano.sandbox.cuda): nvcc compiler not found on $PATH. Check your nvcc installation and try again. Traceback (most recent call last): File "example_tagging.py", line 6, in import audio_processor as ap File "/user/HS224/mv00147/Desktop/py_env/lib/python2.7/site-packages/audio_processor.py", line 1, in import librosa File "/user/HS224/mv00147/Desktop/py_env/lib/python2.7/site-packages/librosa/init.py", line 15, in from . import core File "/user/HS224/mv00147/Desktop/py_env/lib/python2.7/site-packages/librosa/core/init.py", line 90, in from .audio import * # pylint: disable=wildcard-import File "/user/HS224/mv00147/Desktop/py_env/lib/python2.7/site-packages/librosa/core/audio.py", line 9, in import audioread ImportError: No module named audioread Can anyone help? Warm regards, Mahi :)

keunwoochoi commented 7 years ago

Hi, seems like there are two issues. Check out if you have a gpu and if its driver is installed, as well as is configured with PATH variable. Audioread is a python library that librosa uses to load audio files. try to install librosa again ($ pip install librosa --upgrade or something similar) and if it doesn't work probably you have to install Audioread by yourself.

mv00147 commented 7 years ago

Dear sir,

Thank you so much for your immediate response. I installed audio read. Also, since my GPU is still not set up, I plan to run it on the CPU itself. But I get the following error when I try to install h5py module.

Downloading/unpacking h5py Downloading h5py-2.7.0rc2.tar.gz (256Kb): 256Kb downloaded Running setup.py egg_info for package h5py zip_safe flag not set; analyzing archive contents...

Installed /user/HS224/mv00147/py_env/lib/python2.7/site-packages/build/h5py/pkgconfig-1.2.2-py2.7.egg
Traceback (most recent call last):
  File "<string>", line 14, in <module>
  File "/user/HS224/mv00147/py_env/lib/python2.7/site-packages/build/h5py/setup.py", line 165, in <module>
    cmdclass = CMDCLASS,
  File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 221, in __init__
    self.fetch_build_eggs(attrs.pop('setup_requires'))
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 245, in fetch_build_eggs
    parse_requirements(requires), installer=self.fetch_build_egg
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 588, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (numpy 1.6.1 (/usr/lib/python2.7/dist-packages), Requirement.parse('numpy>=1.7'))
Complete output from command python setup.py egg_info:
zip_safe flag not set; analyzing archive contents...

Installed /user/HS224/mv00147/py_env/lib/python2.7/site-packages/build/h5py/pkgconfig-1.2.2-py2.7.egg

Traceback (most recent call last):

File "", line 14, in

File "/user/HS224/mv00147/py_env/lib/python2.7/site-packages/build/h5py/setup.py", line 165, in

cmdclass = CMDCLASS,

File "/usr/lib/python2.7/distutils/core.py", line 112, in setup

_setup_distribution = dist = klass(attrs)

File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 221, in init

self.fetch_build_eggs(attrs.pop('setup_requires'))

File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 245, in fetch_build_eggs

parse_requirements(requires), installer=self.fetch_build_egg

File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 588, in resolve

raise VersionConflict(dist,req) # XXX put more info here

pkg_resources.VersionConflict: (numpy 1.6.1 (/usr/lib/python2.7/dist-packages), Requirement.parse('numpy>=1.7'))


Command python setup.py egg_info failed with error code 1 Storing complete log in /user/HS224/mv00147/.pip/pip.log Could you suggest a way forward? Many thanks,

Mahalakshmi


From: Keunwoo Choi notifications@github.com Sent: 13 February 2017 18:20:10 To: keunwoochoi/music-auto_tagging-keras Cc: Venkatesh M Ms (PG/T - Elec Electronic Eng); Author Subject: Re: [keunwoochoi/music-auto_tagging-keras] Audioread module (#14)

Hi, seems like there are two issues. Check out if you have a gpu and if its driver is installed, as well as is configured with PATH variable. Audioread is a python library that librosa uses to load audio files. try to install librosa again ($ pip install librosa --upgrade or something similar) and if it doesn't work probably you have to install Audioread by yourself.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/keunwoochoi/music-auto_tagging-keras/issues/14#issuecomment-279476301, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYjIsu3b61etsQa2WF36GB6MYSN2BBcqks5rcJ7agaJpZM4L_FCI.

keunwoochoi commented 7 years ago

(answered at #15)