Miserlou / SoundScrape

SoundCloud (and Bandcamp and Mixcloud) downloader in Python.
MIT License
1.42k stars 146 forks source link

ImportError: cannot import name 'wrapped_resource' from 'soundcloud.resource' #265

Closed 7k50 closed 2 years ago

7k50 commented 2 years ago

I have just installed SoundScrape for Python 3.9.9.

To test it, I tried downloading something from Bandcamp:

soundscrape warsaw -b -f

Gives the error:

Traceback (most recent call last):
  File "/my/path/py390/bin/soundscrape", line 5, in <module>
    from soundscrape.soundscrape import main
  File "/my/path/py390/lib/python3.9/site-packages/soundscrape/soundscrape.py", line 8, in <module>
    import soundcloud
  File "/my/path/py390/lib/python3.9/site-packages/soundcloud/__init__.py", line 8, in <module>
    from soundcloud.client import Client
  File "/my/path/py390/lib/python3.9/site-packages/soundcloud/client.py", line 7, in <module>
    from soundcloud.resource import wrapped_resource
ImportError: cannot import name 'wrapped_resource' from 'soundcloud.resource' (/my/path/py390/lib/python3.9/site-packages/soundcloud/resource/__init__.py)
7k50 commented 2 years ago

Please provide link to what you are trying to download

I am using the example in the Readme: https://github.com/Miserlou/SoundScrape#bandcamp

soundscrape warsaw -b -f

But just taking any random release from Bandcamp seems to create the same error:

soundscrape https://djoko.bandcamp.com/album/get-sexy-ep -b -f

_"ImportError: cannot import name 'wrappedresource' from 'soundcloud.resource"

Assuming I am using the right syntax?

7k50 commented 2 years ago

Something must have been wrong with my install. Tried reinstalling some packages and it works as intended.