I've installed beautiful soup, but I'm getting error messages saying I need to convert to Python 3 when it runs the beautifulSoup files. I've checked for the latest update, and tried pip3 command in staSH which gives a no command error. I did try converting the init.py file and any others that threw up an error with pythonista conversion tool to python3, but led to further problems eventually that conversion wouldn't solve.
import requests, bs4
res = requests.get('http://nostarch.com')
res.raise_for_status()
nostarchSoup= bs4.BeautifulSoup(res.text)
type(nostarchSoup)
Traceback (most recent call last):
File "/private/var/mobile/Containers/Shared/AppGroup/B60B81CE-83F6-4C3A-867B-08E54FFE878D/Pythonista3/Documents/MyScripts/beautifulSoupTest.py", line 1, in
import requests, bs4
File "/private/var/mobile/Containers/Shared/AppGroup/B60B81CE-83F6-4C3A-867B-08E54FFE878D/Pythonista3/Documents/site-packages/bs4/init.py", line 53
'You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work.'<>'You need to convert the code, either by installing it (python setup.py install) or by running 2to3 (2to3 -w bs4).'
^
SyntaxError: invalid syntax