Page 2 of 2

Re: Harmony Hub pre-release for Indigo 2022.+

PostPosted: Sat Jul 16, 2022 8:53 am
by denno
success--thanks!!

Re: Harmony Hub pre-release for Indigo 2022.+

PostPosted: Mon Jul 18, 2022 10:59 am
by GadgetComa
I've installed the plugin and the aioharmony library. I've confirmed that I have Xcode installed. When I try to load the plugin, I get the following:

Code: Select all
Jul 18, 2022 at 12:56:33 PM
   Reloading plugin "Harmony Hub 2022.0.1" using API v3.0
   Starting plugin "Harmony Hub 2022.0.1" (pid 15135)
   Harmony Hub Error               Error in plugin execution InitializeMain:

  File "plugin.py", line 16, in <module>
type: 'Required Python libraries missing.  Run 'pip3 install aioharmony' in Terminal window, then reload plugin. Xcode required!

   Stopping plugin "Harmony Hub 2022.0.1" (pid 15135)
   Stopped plugin "Harmony Hub 2022.0.1"


Is there another step I'm missing?

Thanks.

- Leon

Re: Harmony Hub pre-release for Indigo 2022.+

PostPosted: Mon Jul 18, 2022 11:09 am
by FlyingDiver
Run the command as indicated in Terminal and post the output.

Re: Harmony Hub pre-release for Indigo 2022.+

PostPosted: Mon Jul 18, 2022 11:49 am
by GadgetComa
I ran pip3 install aioharmony originally and it installed with only the deprecation warning. When I just ran it again, here's the output:

Code: Select all
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Requirement already satisfied: aioharmony in /opt/homebrew/lib/python3.9/site-packages (0.2.9)
Requirement already satisfied: aiohttp in /opt/homebrew/lib/python3.9/site-packages (from aioharmony) (3.8.1)
Requirement already satisfied: async-timeout in /opt/homebrew/lib/python3.9/site-packages (from aioharmony) (4.0.2)
Requirement already satisfied: slixmpp in /opt/homebrew/lib/python3.9/site-packages (from aioharmony) (1.8.2)
Requirement already satisfied: attrs>=17.3.0 in /opt/homebrew/lib/python3.9/site-packages (from aiohttp->aioharmony) (21.4.0)
Requirement already satisfied: frozenlist>=1.1.1 in /opt/homebrew/lib/python3.9/site-packages (from aiohttp->aioharmony) (1.3.0)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /opt/homebrew/lib/python3.9/site-packages (from aiohttp->aioharmony) (2.1.0)
Requirement already satisfied: yarl<2.0,>=1.0 in /opt/homebrew/lib/python3.9/site-packages (from aiohttp->aioharmony) (1.7.2)
Requirement already satisfied: aiosignal>=1.1.2 in /opt/homebrew/lib/python3.9/site-packages (from aiohttp->aioharmony) (1.2.0)
Requirement already satisfied: multidict<7.0,>=4.5 in /opt/homebrew/lib/python3.9/site-packages (from aiohttp->aioharmony) (6.0.2)
Requirement already satisfied: pyasn1-modules in /opt/homebrew/lib/python3.9/site-packages (from slixmpp->aioharmony) (0.2.8)
Requirement already satisfied: aiodns>=1.0 in /opt/homebrew/lib/python3.9/site-packages (from slixmpp->aioharmony) (3.0.0)
Requirement already satisfied: pyasn1 in /opt/homebrew/lib/python3.9/site-packages (from slixmpp->aioharmony) (0.4.8)
Requirement already satisfied: pycares>=4.0.0 in /opt/homebrew/lib/python3.9/site-packages (from aiodns>=1.0->slixmpp->aioharmony) (4.2.1)
Requirement already satisfied: idna>=2.0 in /opt/homebrew/lib/python3.9/site-packages (from yarl<2.0,>=1.0->aiohttp->aioharmony) (3.3)
Requirement already satisfied: cffi>=1.5.0 in /opt/homebrew/lib/python3.9/site-packages (from pycares>=4.0.0->aiodns>=1.0->slixmpp->aioharmony) (1.15.0)
Requirement already satisfied: pycparser in /opt/homebrew/lib/python3.9/site-packages (from cffi>=1.5.0->pycares>=4.0.0->aiodns>=1.0->slixmpp->aioharmony) (2.21)

I also tried the other suggestions of installing wheel and trying binary only.

In case it makes a difference, I'm running on Monterey 12.4 on an M1 Mac mini.

Thanks,

- Leon

Re: Harmony Hub pre-release for Indigo 2022.+

PostPosted: Mon Jul 18, 2022 11:59 am
by GadgetComa
Nevermind. It looks like the version of Python installed with Homebrew was causing the problem. I think it created the library incorrectly or in the wrong location. When I used the macOS python3 install, it worked.

I need to dig into how homebrew sets up the environment to figure out if it should work with their version of python and how to set it up correctly, but I'll worry about that later.

Sorry for the false alarm and thanks again for this plugin!

Re: Harmony Hub pre-release for Indigo 2022.+

PostPosted: Mon Jul 18, 2022 12:02 pm
by FlyingDiver
GadgetComa wrote:
Nevermind. It looks like the version of Python installed with Homebrew was causing the problem. I think it created the library incorrectly or in the wrong location. When I used the macOS python3 install, it worked.

I need to dig into how homebrew sets up the environment to figure out if it should work with their version of python and how to set it up correctly, but I'll worry about that later.

Sorry for the false alarm and thanks again for this plugin!


Actually, you should be using the Indigo installed Python 3 and pip3, which is:

Code: Select all
% which pip3
/Library/Frameworks/Python.framework/Versions/3.10/bin/pip3

Re: Harmony Hub pre-release for Indigo 2022.+

PostPosted: Mon Jul 18, 2022 12:47 pm
by GadgetComa
Thanks! That's actually the one I'm using. From the path, I assumed it was macOS.