Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all articles
Browse latest Browse all 85575

Beautifulsoup 4 doenst work with Kodi 20.3

$
0
0
Hi all,

I have a Problem with Kodi 20.3 with BS4.

I add in Addon.xml this Code.
:
    <import addon="script.module.beautifulsoup4" />

In my Default.py added :

Code:
from bs4 import BeautifulSoup4

I installed BeautifulSoap 4.12.2 and check it in System-->Addons ---> Manage.. ---> and it is activated and listed.

But I only get the log Error Massage :

Code:
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'ImportError'>
                                                   Error Contents: cannot import name 'BeautifulSoup4' from 'bs4' (C:\Users\.........\Kodi\addons\script.module.beautifulsoup4\lib\bs4\__init__.py)
                                                   Traceback (most recent call last):
                                                     File "C:\Users\.........\Roaming\Kodi\addons\............\default.py", line 14, in <module>
                                                       from bs4 import BeautifulSoup4
                                                   ImportError: cannot import name 'BeautifulSoup4' from 'bs4' (C:\Users\........\AppData\Roaming\Kodi\addons\script.module.beautifulsoup4\lib\bs4\__init__.py)
                                                   -->End of Python script error report<--

I can not install another version of bs4. Only 4.12.2 is possible by Nexus 20.3 x64.

Thx a lot.

Best Regards.

Viewing all articles
Browse latest Browse all 85575

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>