Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyannote-face.py demo exception caused by numpy 0.12 #26

Merged
merged 2 commits into from
Aug 9, 2017

Conversation

crhan
Copy link
Contributor

@crhan crhan commented Aug 5, 2017

when running the pyannote-video nootbook, this error will occur:

Traceback (most recent call last):
  File "/home/ruohan.chen/.anaconda3/envs/pyannote/bin/pyannote-face.py", line 483, in <module>
    shift=shift, labels=labels)
  File "/home/ruohan.chen/.anaconda3/envs/pyannote/bin/pyannote-face.py", line 409, in demo
    audio_clip = AudioFileClip(filename)
  File "/home/ruohan.chen/.anaconda3/envs/pyannote/lib/python3.5/site-packages/moviepy/audio/io/AudioFileClip.py", line 63, in __init__
    buffersize=buffersize)
  File "/home/ruohan.chen/.anaconda3/envs/pyannote/lib/python3.5/site-packages/moviepy/audio/io/readers.py", line 70, in __init__
    self.buffer_around(1)
  File "/home/ruohan.chen/.anaconda3/envs/pyannote/lib/python3.5/site-packages/moviepy/audio/io/readers.py", line 234, in buffer_around
    self.buffer =  self.read_chunk(self.buffersize)
  File "/home/ruohan.chen/.anaconda3/envs/pyannote/lib/python3.5/site-packages/moviepy/audio/io/readers.py", line 123, in read_chunk
    self.nchannels))
TypeError: 'float' object cannot be interpreted as an integer

This problem has been solved in moviepy 0.2.2.13 version, so it should great equal than 0.2.2.13. This Fix is described at Zulko/moviepy#383

@hbredin hbredin changed the base branch from master to develop August 9, 2017 12:18
@hbredin hbredin merged commit afd5ec2 into pyannote:develop Aug 9, 2017
@hbredin
Copy link
Member

hbredin commented Aug 9, 2017

I had to change the base branch to develop.
This fix will be part of next release.

Thanks a lot, @crhan

@crhan crhan deleted the features/moviepy_fix branch August 9, 2017 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants