melizalab / chirp

Pitch-based analysis and comparison of bioacoustic signals
http://melizalab.github.io/chirp/
GNU General Public License v2.0
12 stars 5 forks source link

"ImportError: cannot import name template" on invoke chirp #2

Closed danstowell closed 11 years ago

danstowell commented 11 years ago

Hi - I installed from git master, after pip installing the dependencies etc. This is on Ubuntu 13.04, Python 2.7.4. When I run "chirp" from a command line I get:

Traceback (most recent call last):
  File "/usr/local/bin/chirp", line 9, in <module>
    load_entry_point('chirp==1.2.1', 'gui_scripts', 'chirp')()
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.45-py2.7.egg/pkg_resources.py", line 343, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.45-py2.7.egg/pkg_resources.py", line 2354, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.45-py2.7.egg/pkg_resources.py", line 2060, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/local/lib/python2.7/dist-packages/chirp-1.2.1-py2.7-linux-x86_64.egg/chirp/gui/chirpgui.py", line 18, in <module>
    from chirp.gui.PitchOverlayMixin import PitchOverlayMixin
  File "/usr/local/lib/python2.7/dist-packages/chirp-1.2.1-py2.7-linux-x86_64.egg/chirp/gui/PitchOverlayMixin.py", line 11, in <module>
    from chirp.pitch import tracker as ptracker
  File "/usr/local/lib/python2.7/dist-packages/chirp-1.2.1-py2.7-linux-x86_64.egg/chirp/pitch/tracker.py", line 14, in <module>
    from chirp import template, particle, vitterbi
ImportError: cannot import name template
zsh: exit 1     chirp
dmeliza commented 11 years ago

whoops; missed a couple of imports in the last patch. should be fixed now

danstowell commented 11 years ago

thanks, that fixes it