Upgraded to 2022.0.3 - Required Python Libraries Missing

Posted on
Sun Jul 16, 2023 4:40 pm
cwf offline
Posts: 25
Joined: Nov 13, 2007
Location: CT

Upgraded to 2022.0.3 - Required Python Libraries Missing

I updated Indigo 2022.2.2 and the logs mentioned some plugins had updates. I updated the MyQ plugin to 2022.0.3 and I'm getting the following in the Indigo log:

Reloading plugin "MyQ 2022.0.3" using API v3.0
Starting plugin "MyQ 2022.0.3" (pid 72521)
MyQ Error Error in plugin execution InitializeMain:

File "plugin.py", line 18, in <module>
type: 'Required Python libraries missing. Run 'pip3 install pymyq==3.1.5' in Terminal window, then reload plugin.

Stopping plugin "MyQ 2022.0.3" (pid 72521)

I updated the pymyq version using the command in the log.

Here's the successful completion message from the terminal:

Installing collected packages: soupsieve, pkce, multidict, idna, frozenlist, charset-normalizer, attrs, async-timeout, yarl, beautifulsoup4, aiosignal, aiohttp, pymyq
Successfully installed aiohttp-3.8.4 aiosignal-1.3.1 async-timeout-4.0.2 attrs-23.1.0 beautifulsoup4-4.12.2 charset-normalizer-3.2.0 frozenlist-1.4.0 idna-3.4 multidict-6.0.4 pkce-1.0.3 pymyq-3.1.5 soupsieve-2.4.1 yarl-1.9.2

Reloading the plugin still gives me the same message.

Here's the python version on my system:
usr/bin/python3 --version
Python 3.9.6

What am I doing wrong? I'll apologize in advance if I didn't give enough info.

Posted on
Sun Jul 16, 2023 4:43 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Upgraded to 2022.0.3 - Required Python Libraries Missing

That's not the correct version of Python for Indigo. You have a rogue Python3 install, and the pip command is not installing the package in the correct place.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Jul 16, 2023 6:35 pm
cwf offline
Posts: 25
Joined: Nov 13, 2007
Location: CT

Re: Upgraded to 2022.0.3 - Required Python Libraries Missing

Thanks for the quick response. Ok...my googling tells me to check the usr/local/bin location which tells me this:

/usr/local/bin/python3 --version
Python 3.11.4

Better? Or too new? Or still the wrong location?

When I try to install the pymyq, here's what it's trying to install:

Requirement already satisfied: pymyq==3.1.5 in /opt/homebrew/lib/python3.10/site-packages (3.1.5)
Requirement already satisfied: aiohttp in /opt/homebrew/lib/python3.10/site-packages (from pymyq==3.1.5) (3.8.4)
Requirement already satisfied: beautifulsoup4 in /opt/homebrew/lib/python3.10/site-packages (from pymyq==3.1.5) (4.12.2)
Requirement already satisfied: pkce in /opt/homebrew/lib/python3.10/site-packages (from pymyq==3.1.5) (1.0.3)
Requirement already satisfied: attrs>=17.3.0 in /opt/homebrew/lib/python3.10/site-packages (from aiohttp->pymyq==3.1.5) (23.1.0)
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /opt/homebrew/lib/python3.10/site-packages (from aiohttp->pymyq==3.1.5) (3.2.0)
Requirement already satisfied: multidict<7.0,>=4.5 in /opt/homebrew/lib/python3.10/site-packages (from aiohttp->pymyq==3.1.5) (6.0.4)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /opt/homebrew/lib/python3.10/site-packages (from aiohttp->pymyq==3.1.5) (4.0.2)
Requirement already satisfied: yarl<2.0,>=1.0 in /opt/homebrew/lib/python3.10/site-packages (from aiohttp->pymyq==3.1.5) (1.9.2)
Requirement already satisfied: frozenlist>=1.1.1 in /opt/homebrew/lib/python3.10/site-packages (from aiohttp->pymyq==3.1.5) (1.4.0)
Requirement already satisfied: aiosignal>=1.1.2 in /opt/homebrew/lib/python3.10/site-packages (from aiohttp->pymyq==3.1.5) (1.3.1)
Requirement already satisfied: soupsieve>1.2 in /opt/homebrew/lib/python3.10/site-packages (from beautifulsoup4->pymyq==3.1.5) (2.4.1)
Requirement already satisfied: idna>=2.0 in /opt/homebrew/lib/python3.10/site-packages (from yarl<2.0,>=1.0->aiohttp->pymyq==3.1.5) (3.4)

I'm assuming this is wrong, too, since I'm still getting the same error.

Posted on
Sun Jul 16, 2023 6:36 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Upgraded to 2022.0.3 - Required Python Libraries Missing

Code: Select all
jkeenan@Kraken Plugins % python3 --version
Python 3.10.2
jkeenan@Kraken Plugins % which python3   
/Library/Frameworks/Python.framework/Versions/3.10/bin/python3

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Jul 16, 2023 6:38 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Upgraded to 2022.0.3 - Required Python Libraries Missing

Homebrew is definitely wrong. You should not install homebrew Python on your Indigo server. I'm not sure where your 3.9 version is from.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Jul 16, 2023 7:45 pm
cwf offline
Posts: 25
Joined: Nov 13, 2007
Location: CT

Re: Upgraded to 2022.0.3 - Required Python Libraries Missing

Thanks, I vaguely remember installing Homebrew a long time ago, removed it and all is well. Thanks!

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 7 guests