What version of BeautifulSoup works with GAE (python 2.5)?

When I write

from BeautifulSoup import BeautifulSoup 

I get the following error:

 No module named BeautifulSoup 

All files are saved in the project folder, subfolder of the BeautifulSoup folder. And it works fine if BeautifulSoup.py is placed in the same folder as main.py.

+2
source share
1 answer

If you want to include BeautifulSoup from a subfolder (subdirectory), make sure that the __init__.py file is in the directory.

Then from BeautifulSoup.BeautifulSoup import BeautifulSoup should work.

+5
source

Source: https://habr.com/ru/post/1206286/


All Articles