Parisson / TimeSide

scalable audio processing framework and server written in Python
https://timeside.ircam.fr/docs/
GNU Affero General Public License v3.0
369 stars 59 forks source link

aubio import error "ImportError: cannot import name onset" #19

Closed danstowell closed 11 years ago

danstowell commented 11 years ago

I've cloned the dev branch from github (commit eccd73a). I've installed the dependencies using apt-get (on my Ubuntu 13.04), including python-aubio 0.3.2-4.2build1. Then I ran python setup.py build and sudo python setup.py install and it seemed to be happy. But a simple import timeside fails for me on an aubio import:

(~) % python
Python 2.7.4 (default, Sep 26 2013, 03:20:26) 
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import timeside
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/TimeSide-0.5.1-py2.7.egg/timeside/__init__.py", line 6, in <module>
    import analyzer
  File "/usr/local/lib/python2.7/dist-packages/TimeSide-0.5.1-py2.7.egg/timeside/analyzer/__init__.py", line 5, in <module>
    from aubio_temporal import *
  File "/usr/local/lib/python2.7/dist-packages/TimeSide-0.5.1-py2.7.egg/timeside/analyzer/aubio_temporal.py", line 26, in <module>
    from aubio import onset, tempo
ImportError: cannot import name onset

It's not clear to me how to resolve, not clear if it's actually a bug or not. Tips welcome.

piem commented 11 years ago

Hi Dan! You need aubio dev too. You can find a package in the parisson repo, or build it yourself from git. Let us know how it goes, Thanks, paul

danstowell notifications@github.com a écrit :

I've cloned the dev branch from github (commit eccd73a). I've installed the dependencies using apt-get (on my Ubuntu 13.04), including python-aubio 0.3.2-4.2build1. Then I ran python setup.py build and sudo python setup.py install and it seemed to be happy. But a simple import timeside fails for me on an aubio import:

(~) % python
Python 2.7.4 (default, Sep 26 2013, 03:20:26) 
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import timeside
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
File
"/usr/local/lib/python2.7/dist-packages/TimeSide-0.5.1-py2.7.egg/timeside/__init__.py",
line 6, in <module>
   import analyzer
File
"/usr/local/lib/python2.7/dist-packages/TimeSide-0.5.1-py2.7.egg/timeside/analyzer/__init__.py",
line 5, in <module>
   from aubio_temporal import *
File
"/usr/local/lib/python2.7/dist-packages/TimeSide-0.5.1-py2.7.egg/timeside/analyzer/aubio_temporal.py",
line 26, in <module>
   from aubio import onset, tempo
ImportError: cannot import name onset

It's not clear to me how to resolve, not clear if it's actually a bug or not. Tips welcome.


Reply to this email directly or view it on GitHub: https://github.com/yomguy/TimeSide/issues/19

danstowell commented 11 years ago

Hi Paul - is that the same as libaubio-dev in the ubuntu repos? If so, I have it already. But maybe the project is only compatible with libaubio 0.4 (which is in the parisson repo) not 0.3.2 (which is in the ubuntu repo)? I prefer not to add extra repos as far as possible, so I might have to use the git version.

And so, when you say git you mean I should get aubio from git.aubio.org and install into /usr/local, that should work? I just did that (omg waf), and then removed the timeside egg folder, and then ran setup,py clean-build-install. Unfortunately my symptoms are the same.

piem commented 11 years ago

Yes, you do need aubio >= 0.4.0~alpha, not yet released, from current git on aubio.org or github.

You need to compile python-aubio too: cd python && ./setup.py build

Let me know (there) if you have any issues with that!

danstowell notifications@github.com a écrit :

Hi Paul - is that the same as libaubio-dev in the ubuntu repos? If so, I have it already. But maybe the project is only compatible with libaubio 0.4 (which is in the parisson repo) not 0.3.2 (which is in the ubuntu repo)? I prefer not to add extra repos as far as possible, so I might have to use the git version.

And so, when you say git you mean I should get aubio from git.aubio.org and install into /usr/local, that should work? I just did that (omg waf), and then removed the timeside egg folder, and then ran setup,py clean-build-install. Unfortunately my symptoms are the same.


Reply to this email directly or view it on GitHub: https://github.com/yomguy/TimeSide/issues/19#issuecomment-26527866

yomguy commented 11 years ago

Hi Dan,

Did you try to install TimeSide the debian way with our repo ? I've just managed to install python-timeside and all dependencies this way in a Ubuntu 13.04 chroot.

If you want to use your clone / fork after all, you can do an "apt-get remove python-timeside" and then setup.py yours ;)

Guillaume

danstowell commented 11 years ago

No I didn't. As I said in my original message, I don't like to add repos; I've cloned the dev branch from github (commit eccd73a).

I've got past the original problem following Paul's instructions. Now I'm stuck compiling yaafe (sigh).

piem commented 11 years ago

If you don't want to compile everything now, you can also disable the analyzers you don't need in timeside/analyzers/core.py

I guess this one can be closed now?

danstowell commented 11 years ago

yes, thanks