invicnaper / spotify-dl

a script that allows you to download spotify songs or playlists , written in python
323 stars 40 forks source link

ImportError: No module named bs4 #1

Closed DaxChen closed 7 years ago

DaxChen commented 8 years ago

Sorry I'm new to python

I have youtube-dl installed and did pip install beautifulsoup4

but when I run ./spotify-dl.py --track spotify:track:23L5CiUhw2jV1OIMwthR3S --dl youtube

I get the following error:

Traceback (most recent call last):
  File "./spotify-dl.py", line 9, in <module>
    from bs4 import BeautifulSoup
ImportError: No module named bs4

Thank you!

I'm on macOS 10.11.6 Python 2.7.12 pip 8.1.2 from /usr/local/lib/python2.7/site-packages (python 2.7)

lobosmal commented 8 years ago

i got the script working by reinstalling bs4 like this:

sudo pip install beautifulsoup4

in my case without the sudo command pip does not install everything

invicnaper commented 8 years ago

Yep try installing bs4 using sudo

agentf90 commented 7 years ago

I had to add #!/usr/bin/env python2.7 to the top of the script.