amsehili / auditok

An audio/acoustic activity detection and audio segmentation tool
MIT License
732 stars 94 forks source link

module 'auditok' has no attribute 'split' #37

Closed lfgogogo closed 3 years ago

lfgogogo commented 3 years ago

I follow the instructions,and i get an error as the title,why,please help!

amsehili commented 3 years ago

Hi, Which python version are you using? split only works with python 3.

lfgogogo commented 3 years ago

@amsehili My python version is 3.6.

amsehili commented 3 years ago

Could you please share your code and the error message you got?

lfgogogo commented 3 years ago

The code is just the same as you offer.And the error message is below.I am running the code on windows os,the / and \ in the message are a little confused.

C:\Users\Administrator\anaconda3\envs\diarization\python.exe D:/chormedl/data_preparation/auditok.py Traceback (most recent call last): File "D:/chormedl/data_preparation/auditok.py", line 1, in import auditok File "D:\chormedl\data_preparation\auditok.py", line 4, in audio_regions = auditok.split( AttributeError: module 'auditok' has no attribute 'split'

Process finished with exit code 1

amsehili commented 3 years ago

You should rename this file D:\chormedl\data_preparation\auditok.py to avoid name overlap with installed auditok module.

lfgogogo commented 3 years ago

Thanks a lot,a fool mistake~