freesound-python icon indicating copy to clipboard operation
freesound-python copied to clipboard

AttributeError: module 'freesound' has no attribute 'FreesoundClient'

Open songproducer opened this issue 5 years ago • 1 comments

Traceback (most recent call last):
  File "/Users/leotreasure/freesound.py", line 1, in <module>
    import freesound
  File "/Users/leotreasure/freesound.py", line 3, in <module>
    client = freesound.FreesoundClient()
AttributeError: module 'freesound' has no attribute 'FreesoundClient'

songproducer avatar Apr 08 '20 06:04 songproducer

I suspect this error is because the script that you wrote is called 'freesound.py' and when you 'import freesound' it is importing this file instead of the freesound library. Try renaming the file that you created.

alastair avatar Apr 08 '20 08:04 alastair