简体   繁体   中英

ImportError: cannot import name _htmlparser in bs4 - Python Kivy Android

I got following message

ImportError: cannot import name _htmlparser

after running application built by buildozer on Android.

The app uses bs4/Kivy. Works fine on Windows with no error at all, but fails on Android.

I replaced "html.parser" with "lxml" when creating BeautifulSoup object

soup = bs(content, "lxml")

but it still fails.

Does anyone have any idea how to fix it? Regard!

a lot of people are stuck with this same problem. its best if u try other bs4 alternatives like ehp..i am using it for most of my projects now

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM