BeautifulSoup "No Module Named bs4" 2022.1.2

Posted on
Wed Jan 11, 2023 3:15 pm
outsidenwnc offline
Posts: 24
Joined: Apr 20, 2014

BeautifulSoup "No Module Named bs4" 2022.1.2

I have loaded the module bs4 manually per the docs using ' pip3 install bs4 '

But get this error when Indigo starts or I reload the plugin

Ambient Weather Error Error in plugin execution InitializeMain:

Traceback (most recent call last):
File "plugin.py", line 15, in <module>
ImportError: No module named bs4

Restarted Indigo server, rebooted Mac mini and still get the error -

I have checked that the module is present using pip3 show bs4 and pip3 show beautifulsoup4 and looks correct.

I can launch the plugin scripting shell and load the module and use it. (details in image below)

Restarted Indigo server, rebooted Mac mini and still get the error -

See images.

I was using this plugin in Indigo 2021 successfully by manually loading the module similar method.

What am I missing???

Header from my plugin.py file
################################################################################
# Imports
################################################################################
try:
import indigo
except ImportError:
pass
import urllib
from bs4 import BeautifulSoup
import lxml
Attachments
Screen Shot 2023-01-11 at 2.37.31 PM.png
Screen Shot 2023-01-11 at 2.37.31 PM.png (66.31 KiB) Viewed 1122 times
Screen Shot 2023-01-11 at 2.08.53 PM.png
Screen Shot 2023-01-11 at 2.08.53 PM.png (74.16 KiB) Viewed 1122 times

Posted on
Wed Jan 11, 2023 4:06 pm
outsidenwnc offline
Posts: 24
Joined: Apr 20, 2014

Re: BeautifulSoup "No Module Named bs4" 2022.1.2

I found the issue.

I had not updated the ServerAPIVersion in the info.plist to 3.0.0.

Moving forward..

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest