Failed plugin install

A plugin to integration Indigo devices into HomeKit (and Siri)
User avatar
berkinet
Posts: 3305
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Failed plugin install

Post by berkinet »

Mac mini: Apple Silicon M2
MacOS 14.3.1
Python 3.11.6
Indigo 2023.2
HomeKitLink Siri 0.6.61 (similar problem with appleTV Plugin 1.2.26)

New system, first install of this plugin. Installation fails with:

Code: Select all

Starting plugin "HomeKitLink Siri 0.6.61" (pid 93331)
   Processing requirements for plugin "HomeKitLink Siri 0.6.61"
   Requirements installing, this may take a few seconds...
   Error                           Requirements file for "HomeKitLink Siri 0.6.61" failed to process correctly, contact the developer with the following information:
   Error                             error: subprocess-exited-with-error
  
  × Building wheel for chacha20poly1305-reuseable (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [87 lines of output]
      A setup.py file already exists. Using it.
      warning: src/chacha20poly1305_reuseable/__init__.py:50:57: Unknown type declaration '_bytes' in annotation, ignoring
      warning: src/chacha20poly1305_reuseable/__init__.py:105:14: Unknown type declaration '_bytes' in annotation, ignoring
      warning: src/chacha20poly1305_reuseable/__init__.py:139:14: Unknown type declaration '_bytes' in annotation, ignoring
      warning: src/chacha20poly1305_reuseable/__init__.py:164:72: Unknown type declaration '_int' in annotation, ignoring
      warning: src/chacha20poly1305_reuseable/__init__.py:178:17: Unknown type declaration '_bytes' in annotation, ignoring
      warning: src/chacha20poly1305_reuseable/__init__.py:178:67: Unknown type declaration '_int' in annotation, ignoring
      warning: src/chacha20poly1305_reuseable/__init__.py:178:84: Unknown type declaration '_int' in annotation, ignoring
      warning: src/chacha20poly1305_reuseable/__init__.py:219:47: Unknown type declaration '_bytes' in annotation, ignoring
      warning: src/chacha20poly1305_reuseable/__init__.py:225:37: Unknown type declaration '_bytes' in annotation, ignoring
      warning: src/chacha20poly1305_reuseable/__init__.py:237:10: Unknown type declaration '_bytes' in annotation, ignoring
      warning: src/chacha20poly1305_reuseable/__init__.py:238:21: Unknown type declaration '_bytes' in annotation, ignoring
      warning: src/chacha20poly1305_reuseable/__init__.py:244:37: Unknown type declaration '_bytes' in annotation, ignoring
      warning: src/chacha20poly1305_reuseable/__init__.py:244:62: Unknown type declaration '_bytes' in annotation, ignoring
      warning: src/chacha20poly1305_reuseable/__init__.py:261:10: Unknown type declaration '_bytes' in annotation, ignoring
      warning: src/chacha20poly1305_reuseable/__init__.py:262:21: Unknown type declaration '_bytes' in annotation, ignoring
      warning: src/chacha20poly1305_reuseable/__init__.py:275:37: Unknown type declaration '_bytes' in annotation, ignoring
      warning: src/chacha20poly1305_reuseable/__init__.py:275:62: Unknown type declaration '_bytes' in annotation, ignoring
      Compiling src/chacha20poly1305_reuseable/__init__.py because it changed.
      [1/1] Cythonizing src/chacha20poly1305_reuseable/__init__.py
      running build
      running build_py
      creating /private/tmp/pip-install-flznhznr/chacha20poly1305-reuseable_91216bbe19384d0ea8ef59c4e9b5a608/build
      creating /private/tmp/pip-install-flznhznr/chacha20poly1305-reuseable_91216bbe19384d0ea8ef59c4e9b5a608/build/lib.macosx-10.9-universal2-cpython-311
      creating /private/tmp/pip-install-flznhznr/chacha20poly1305-reuseable_91216bbe19384d0ea8ef59c4e9b5a608/build/lib.macosx-10.9-universal2-cpython-311/chacha20poly1305_reuseable
      copying src/chacha20poly1305_reuseable/__init__.py -> /private/tmp/pip-install-flznhznr/chacha20poly1305-reuseable_91216bbe19384d0ea8ef59c4e9b5a608/build/lib.macosx-10.9-universal2-cpython-311/chacha20poly1305_reuseable
      copying src/chacha20poly1305_reuseable/py.typed -> /private/tmp/pip-install-flznhznr/chacha20poly1305-reuseable_91216bbe19384d0ea8ef59c4e9b5a608/build/lib.macosx-10.9-universal2-cpython-311/chacha20poly1305_reuseable
      copying src/chacha20poly1305_reuseable/__init__.pxd -> /private/tmp/pip-install-flznhznr/chacha20poly1305-reuseable_91216bbe19384d0ea8ef59c4e9b5a608/build/lib.macosx-10.9-universal2-cpython-311/chacha20poly1305_reuseable
      copying src/chacha20poly1305_reuseable/__init__.py -> /private/tmp/pip-install-flznhznr/chacha20poly1305-reuseable_91216bbe19384d0ea8ef59c4e9b5a608/build/lib.macosx-10.9-universal2-cpython-311/chacha20poly1305_reuseable
      running build_ext
      Traceback (most recent call last):
        File "/private/tmp/pip-install-flznhznr/chacha20poly1305-reuseable_91216bbe19384d0ea8ef59c4e9b5a608/setup.py", line 35, in <module>
          setup(**setup_kwargs)
        File "/private/tmp/pip-build-env-tphwey87/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 103, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/tmp/pip-build-env-tphwey87/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/private/tmp/pip-build-env-tphwey87/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/private/tmp/pip-build-env-tphwey87/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/private/tmp/pip-build-env-tphwey87/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
          super().run_command(command)
        File "/private/tmp/pip-build-env-tphwey87/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/private/tmp/pip-build-env-tphwey87/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/private/tmp/pip-build-env-tphwey87/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/private/tmp/pip-build-env-tphwey87/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
          super().run_command(command)
        File "/private/tmp/pip-build-env-tphwey87/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/private/tmp/pip-build-env-tphwey87/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 315, in run
          customize_compiler(self.compiler)
        File "/private/tmp/pip-build-env-tphwey87/overlay/lib/python3.11/site-packages/setuptools/_distutils/sysconfig.py", line 291, in customize_compiler
          _osx_support.customize_compiler(_config_vars)
        File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/_osx_support.py", line 488, in customize_compiler
          _find_appropriate_compiler(_config_vars)
        File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/_osx_support.py", line 244, in _find_appropriate_compiler
          raise SystemError(
      SystemError: Cannot locate working compiler
      Traceback (most recent call last):
        File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/tmp/pip-build-env-tphwey87/overlay/lib/python3.11/site-packages/poetry/core/masonry/api.py", line 58, in build_wheel
          return WheelBuilder.make_in(
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/private/tmp/pip-build-env-tphwey87/overlay/lib/python3.11/site-packages/poetry/core/masonry/builders/wheel.py", line 88, in make_in
          wb.build(target_dir=directory)
        File "/private/tmp/pip-build-env-tphwey87/overlay/lib/python3.11/site-packages/poetry/core/masonry/builders/wheel.py", line 121, in build
          self._build(zip_file)
        File "/private/tmp/pip-build-env-tphwey87/overlay/lib/python3.11/site-packages/poetry/core/masonry/builders/wheel.py", line 182, in _build
          self._run_build_command(setup)
        File "/private/tmp/pip-build-env-tphwey87/overlay/lib/python3.11/site-packages/poetry/core/masonry/builders/wheel.py", line 248, in _run_build_command
          subprocess.check_call([
        File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 413, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11', '/private/tmp/pip-install-flznhznr/chacha20poly1305-reuseable_91216bbe19384d0ea8ef59c4e9b5a608/setup.py', 'build', '-b', '/private/tmp/pip-install-flznhznr/chacha20poly1305-reuseable_91216bbe19384d0ea8ef59c4e9b5a608/build', '--build-purelib', '/private/tmp/pip-install-flznhznr/chacha20poly1305-reuseable_91216bbe19384d0ea8ef59c4e9b5a608/build/lib', '--build-platlib', '/private/tmp/pip-install-flznhznr/chacha20poly1305-reuseable_91216bbe19384d0ea8ef59c4e9b5a608/build/lib.macosx-10.9-universal2-cpython-311']' returned non-zero exit status 1.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for chacha20poly1305-reuseable
ERROR: Could not build wheels for chacha20poly1305-reuseable, which is required to install pyproject.toml-based projects
   HomeKitLink Siri Error          Error in plugin execution InitializeMain:

  File "plugin.py", line 47, in <module>
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/pyhap/accessory.py", line 24, in <module>
type: No module named 'base36'

   Stopping plugin "HomeKitLink Siri 0.6.61" (pid 93331)
   Stopped plugin "HomeKitLink Siri 0.6.61"
Attachments
Screenshot 2024-02-11 at 11.36.58.png
Screenshot 2024-02-11 at 11.36.58.png (24.87 KiB) Viewed 1243 times
User avatar
GlennNZ
Posts: 1579
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Failed plugin install

Post by GlennNZ »

Presumably it will relate to lack of xcode command line tools:

see here:

viewtopic.php?t=27750


Sent from my iPad using Tapatalk
User avatar
berkinet
Posts: 3305
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Re: Failed plugin install

Post by berkinet »

GlennNZ wrote:Presumably it will relate to lack of xcode command line tools:
Probably not that...

Code: Select all

rdp@2430-I-Mac-mini ~ % xcode-select --install
xcode-select: note: Command line tools are already installed. Use "Software Update" in System Settings or the softwareupdate command line interface to install updates

rdp@2430-I-Mac-mini ~ % xcode-select -v
xcode-select version 2405.
User avatar
GlennNZ
Posts: 1579
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Failed plugin install

Post by GlennNZ »

Still could relate to caching if recently installed.

Try

Code: Select all

pip3 install -r /Library/Application\ Support/Perceptive\ Automation/Indigo\ 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server\ Plugin/requirements.txt -t /Library/Application\ Support/Perceptive\ Automation/Indigo\ 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Packages  --no-cache-dir
In terminal and see what get
User avatar
berkinet
Posts: 3305
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Re: Failed plugin install

Post by berkinet »

GlennNZ wrote:Still could relate to caching if recently installed.

Try
Try what? (Sorry). However, I do agree this seems related to Xcode. The key being "Cannot locate working compiler" in both plugins. I will they a fresh install of Xcode.
User avatar
berkinet
Posts: 3305
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Re: Failed plugin install

Post by berkinet »

berkinet wrote:
GlennNZ wrote:Still could relate to caching if recently installed.

Try
Try what? (Sorry). However, I do agree this seems related to Xcode. The key being "Cannot locate working compiler" in both plugins. I will they a fresh install of Xcode.
Actually... it is a problem with Sonoma 14.3.1... See: https://forums.developer.apple.com/forums/thread/731005

I have downloaded the beta and both plugins install as expected.
User avatar
GlennNZ
Posts: 1579
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Failed plugin install

Post by GlennNZ »

berkinet wrote:
GlennNZ wrote:Still could relate to caching if recently installed.

Try
Try what? (Sorry). However, I do agree this seems related to Xcode. The key being "Cannot locate working compiler" in both plugins. I will they a fresh install of Xcode.
Recheck the post - had to copy and paste command which took 20secs to find

But good it's working.

Just for clarity for those reading: (please correct if mistaken)

Relates to Xcode not running on Sonoma, requiring Xcode 15 Beta to be installed/downloaded
User avatar
berkinet
Posts: 3305
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Re: Failed plugin install

Post by berkinet »

GlennNZ wrote:Just for clarity for those reading: (please correct if mistaken)

Relates to Xcode not running on Sonoma, requiring Xcode 15 Beta to be installed/downloaded
Yes. And specifically, Sonoma 14.3.1
User avatar
jay (support)
Site Admin
Posts: 18317
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Failed plugin install

Post by jay (support) »

Xcode 15 or later is required for Sonoma. You don't need the beta, just update Xcode to the latest (15.1 I think).
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
berkinet
Posts: 3305
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Re: Failed plugin install

Post by berkinet »

jay (support) wrote:Xcode 15 or later is required for Sonoma. You don't need the beta, just update Xcode to the latest (15.1 I think).
I suspect the report I found was older, before the initial Xcode 15 was released.
User avatar
GlennNZ
Posts: 1579
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Failed plugin install

Post by GlennNZ »

Presume upgrading Xcode tools alone would have resolved. Although to do that need to delete and then reinstall.

(Will add it to troubleshooting page although think something regarding upgrading tools already there)

In Troubleshooting page
Newer versions of OSX require update x-code tools or do not work. If issues and have already installed xcode tools, double check whether upgrading tools can resolve

To update, appears best option is to remove directory and then rerun install :

Code: Select all

sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
Sent from my iPhone using Tapatalk
User avatar
berkinet
Posts: 3305
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Re: Failed plugin install

Post by berkinet »

GlennNZ wrote:Presume upgrading Xcode tools alone would have resolved. Although to do that need to delete and then reinstall.

(Will add it to troubleshooting page although think something regarding upgrading tools already there)
In my case downloaded the beta, dragged the old Xcode to the trash, moved the beta into Applications and it worked. I didn't touch the tools. I suspect the problem was with the internal Xcode compiler.
Monstergerm
Posts: 276
Joined: Tue Sep 01, 2009 1:47 pm

Re: Failed plugin install

Post by Monstergerm »

I got the same error after upgrading Indigo today to 2023.2.0 and then upgrading the HomeKitLink Siri plugin to 0.6.62..

I am on Sonoma 14.3.1 for one of the clients but Indigo Server is running on Mojave 10.14.6.

So what to do next to fix this??
User avatar
berkinet
Posts: 3305
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Re: Failed plugin install

Post by berkinet »

Monstergerm wrote:I got the same error after upgrading Indigo today to 2023.2.0 and then upgrading the HomeKitLink Siri plugin to 0.6.62..

I am on Sonoma 14.3.1 for one of the clients but Indigo Server is running on Mojave 10.14.6.

So what to do next to fix this??
Read the previous comments.
Monstergerm
Posts: 276
Joined: Tue Sep 01, 2009 1:47 pm

Re: Failed plugin install

Post by Monstergerm »

The prior comments are talking about the need for the latest version of Xcode command line tools for compatibility with Sonoma.

My Indigo server system is running Mojave 10.14.6. I believe this macOS supports up to Xcode 11.3.1

Does the terminal command mentioned above update the command line tools to the latest version compatible with Mojave (i.e. is it smart enough not to install just the latest version available)?
Terminal tells me I have xcode-select version 2354.

And does this likely solve the issue with HomeKitLink Siri or does this plug-in no longer run on Mojave systems?
Post Reply

Return to “HomeKitLink Siri”