grrrr/nsgt

Error running ./example/spectrogram.py on fresh install with all dependencies

JamesOwers opened this issue · 2 comments

Just installed. Trying out examples. Error produced as follows.

./spectrogram.py '/path/to/sound.wav'
Traceback (most recent call last):
  File "./spectrogram.py", line 84, in <module>
    scl = scale(args.fmin, args.fmax, args.bins, beyond=int(args.reducedform == 2))
TypeError: __init__() got an unexpected keyword argument 'beyond'

Proceeds fine when arg removed (creates the log scale object with the default beyond value). However we then hit a warning and then another error:

/home/james/anaconda2/envs/nolearn/lib/python2.7/site-packages/nsgt/nsgfwin_sl.py:113: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  g[kk-1][M[kk-1]//2-M[kk]//2:M[kk-1]//2+ceil(M[kk]/2.)] = hannwin(M[kk])
Traceback (most recent call last):
  File "./spectrogram.py", line 102, in <module>
    ncoefs = int(sf.frames*slicq.coef_factor)
AttributeError: NSGT_sliced instance has no attribute 'coef_factor'

I see that, whilst NSGT_sliced indeed doesn't have an attribute coef_factor, it does have a method!

grrrr commented

Hi James, i am pretty sure you have an old version of nsgt installed which overshadows the new one.

Am 15.06.2016 um 15:17 schrieb James Owers notifications@github.com:

Just installed. Trying out examples. Error produced as follows.

./spectrogram.py '/path/to/sound.wav'
Traceback (most recent call last):
File "./spectrogram.py", line 84, in
scl = scale(args.fmin, args.fmax, args.bins, beyond=int(args.reducedform == 2))
TypeError: init() got an unexpected keyword argument 'beyond'

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #14, or mute the thread https://github.com/notifications/unsubscribe/AAJ-JtXBhyb83iKi8uPLVWNXMOX90Pkxks5qL_tzgaJpZM4I2WGD.

Yep! Had done a sudo python setup.py build. This uses the wrong python. Your instructions are all correct. Sorry to bother!