Error : module 'librosa' has no attribute...

326 views
Skip to first unread message

Theopopo

unread,
May 4, 2023, 11:46:15 AM5/4/23
to librosa
Hi, 

I have been trying to install librosa to run an already existing code from 2019, but I still getting the errors : 
"module 'librosa' has no attribute 'load' "

So I tried launching the tests scripts from the librosa folder, and getting : 
"module 'librosa' has no attribute 'ParameterError' "

Were do these errors come from ? Have I been doing something wrong when installing librosa ?

I have Python 3.10.7
I tried librosa from 8.0.0 to 10.0.0
pip 23.1.2

Thanks for helping me on this issue.

Théo

Brian McFee

unread,
May 4, 2023, 2:11:49 PM5/4/23
to librosa
Is it possible that you have a file `librosa.py` that's getting imported instead of the package?

You can check this by doing:

>>> import librosa
>>> print(librosa.__file__)

This will show what file is actually being sourced when you import librosa.

Theopopo

unread,
May 5, 2023, 2:32:42 PM5/5/23
to librosa

Hey ! 

Thanks for your answer.
Reply all
Reply to author
Forward
0 new messages