Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BS4 and BeautifulSoup error from: can't read /var/mail/BeautifulSoup

From Beautiful import Beautiful immediately responds with error "from: can't read /var/mail/BeautifulSoup". Also tried with BS4 same result. Used synaptic package to uninstall and re-install BS4 and BeautifulSoup. Same result. Tried complete removal and had same result. Used Terminal and it showed that BS4 and BeautifulSoup are not installed.

Using Python 2.7.6

Reviewed questions but only 2 respones and they did not help.

Any suggestions?

like image 233
Yankee26 Avatar asked Dec 25 '22 15:12

Yankee26


1 Answers

I ran into this error because I forgot to add a shebang statement to my python script. Just add this to the top of your script:

#!/usr/bin/python
like image 146
infosecDaemon Avatar answered Dec 31 '22 14:12

infosecDaemon