2023.2 Rusty Cargo Error

Posted on
Thu Jan 25, 2024 7:13 pm
whmoorejr offline
User avatar
Posts: 763
Joined: Jan 15, 2013
Location: Houston, TX

2023.2 Rusty Cargo Error

Following the others... I too have the rust cargo error. I did notice my developer tools needed updating. Did that, reload, reboot, sprinkle majic water, nothing.

Code: Select all
Error                           Requirements file for "HomeKitLink Siri 0.6.60" failed to process correctly, contact the developer with the following information:
   Error                             error: subprocess-exited-with-error
 
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
     
      Cargo, the Rust package manager, is not installed or is not on PATH.
      This package requires Rust and Cargo to compile extensions. Install it through
      the system's package manager or via https://rustup.rs/
     
      Checking for Rust toolchain....
      [end of output]
 
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
   HomeKitLink Siri Error          Error in plugin execution InitializeMain:

  File "plugin.py", line 21, in <module>
type: No module named 'ifaddr'


Before I try the delete or downgrade then re-upgrade, I thought I'd ask if there is any other specific diagnostic data you want me to pull / look for?

Bill
My Plugin: My People

Posted on
Thu Jan 25, 2024 7:23 pm
GlennNZ offline
User avatar
Posts: 1573
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: 2023.2 Rusty Cargo Error

Yah - someone awake and vaguely in my timezone.

Can you post the /Packages/pip-success.txt file

And the plugin startup - need system/apple silicon etc. details

Edit:

If run above will try to install package with issue and give us some verbose logging.

Code: Select all
pip3 install orjson==3.9.10 -t /Library/Application\ Support/Perceptive\ Automation/Indigo\ 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Packages --verbose


Issue is there isn't a binary wheel for Apple Silicon for this version


Thanks!

Posted on
Thu Jan 25, 2024 7:28 pm
whmoorejr offline
User avatar
Posts: 763
Joined: Jan 15, 2013
Location: Houston, TX

Re: 2023.2 Rusty Cargo Error

Where is it at?

Bill
My Plugin: My People

Posted on
Thu Jan 25, 2024 7:30 pm
GlennNZ offline
User avatar
Posts: 1573
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: 2023.2 Rusty Cargo Error

Can just try the terminal command above - will be as good.

But for future reference
In here:
Code: Select all
open  /Library/Application\ Support/Perceptive\ Automation/Indigo\ 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Packages

Should open finder window with all Packages

Posted on
Thu Jan 25, 2024 7:36 pm
whmoorejr offline
User avatar
Posts: 763
Joined: Jan 15, 2013
Location: Houston, TX

Re: 2023.2 Rusty Cargo Error

Screenshot 2024-01-25 at 7.34.12 PM.png
Screenshot 2024-01-25 at 7.34.12 PM.png (272.5 KiB) Viewed 622 times


I'm not in a rush with this plugin... But I don't have a packages folder under contents. Also, under logs, there isn't a seperate folder for this plugin. Never looked before, so I don't know if that is normal or not.

Bill
My Plugin: My People

Posted on
Thu Jan 25, 2024 7:40 pm
whmoorejr offline
User avatar
Posts: 763
Joined: Jan 15, 2013
Location: Houston, TX

Re: 2023.2 Rusty Cargo Error

Code: Select all
WHM-Server-2:~ williammoore$ pip3 install orjson==3.9.10 -t /Library/Application\ Support/Perceptive\ Automation/Indigo\ 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Packages --verbose
Using pip 23.2.1 from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip (python 3.11)
Collecting orjson==3.9.10
  Using cached orjson-3.9.10.tar.gz (5.4 MB)
  Running command pip subprocess to install build dependencies
  Collecting maturin<2,>=1
    Obtaining dependency information for maturin<2,>=1 from https://files.pythonhosted.org/packages/6b/fb/95fd7476bdf9565a45e14e3211e94dd87109d3a2d9dcfaaeef5e211a5cfc/maturin-1.4.0-py3-none-macosx_10_12_x86_64.whl.metadata
    Using cached maturin-1.4.0-py3-none-macosx_10_12_x86_64.whl.metadata (18 kB)
  Using cached maturin-1.4.0-py3-none-macosx_10_12_x86_64.whl (8.0 MB)
  Installing collected packages: maturin
  Successfully installed maturin-1.4.0

  [notice] A new release of pip is available: 23.2.1 -> 23.3.2
  [notice] To update, run: pip3 install --upgrade pip
  Installing build dependencies ... done
  Running command Getting requirements to build wheel
  Getting requirements to build wheel ... done
  Running command Preparing metadata (pyproject.toml)

  Cargo, the Rust package manager, is not installed or is not on PATH.
  This package requires Rust and Cargo to compile extensions. Install it through
  the system's package manager or via https://rustup.rs/

  Checking for Rust toolchain....
  error: subprocess-exited-with-error
 
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
 
  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/rt/yttmp1vd5f9577fjdf9xhj5c0000gn/T/tmpvizggqw3
  cwd: /private/var/folders/rt/yttmp1vd5f9577fjdf9xhj5c0000gn/T/pip-install-m1wyqekw/orjson_19b4fed9c01a4302ad72708ba103b58b
  Preparing metadata (pyproject.toml) ... error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

[notice] A new release of pip is available: 23.2.1 -> 23.3.2
[notice] To update, run: pip3 install --upgrade pip

Bill
My Plugin: My People

Posted on
Thu Jan 25, 2024 7:41 pm
GlennNZ offline
User avatar
Posts: 1573
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: 2023.2 Rusty Cargo Error

Thats very odd to not have /Packages

You are running latest version of Indigo? Pretty much must be as Plugin won't run on anything else...

If you run the pip3 command what is the output?
Thanks - just seen....

What is your system info - what does the plugin show when reloaded?

Thanks!

(I'm keen to try to resolve asap)

Posted on
Thu Jan 25, 2024 7:44 pm
whmoorejr offline
User avatar
Posts: 763
Joined: Jan 15, 2013
Location: Houston, TX

Re: 2023.2 Rusty Cargo Error

Reload plugin... didn't Pip3 anything yet....

Code: Select all
Jan 25, 2024 at 7:42:23 PM
   Reloading plugin "HomeKitLink Siri 0.6.60" using API v3.4
   Starting plugin "HomeKitLink Siri 0.6.60" (pid 3797)
   Processing requirements for plugin "HomeKitLink Siri 0.6.60"
   Requirements installing, this may take a few seconds...

Jan 25, 2024 at 7:42:49 PM
   Error                           Requirements file for "HomeKitLink Siri 0.6.60" failed to process correctly, contact the developer with the following information:
   Error                             error: subprocess-exited-with-error
 
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
     
      Cargo, the Rust package manager, is not installed or is not on PATH.
      This package requires Rust and Cargo to compile extensions. Install it through
      the system's package manager or via https://rustup.rs/
     
      Checking for Rust toolchain....
      [end of output]
 
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
   myType Error                    FronHall - Person and Dog
   HomeKitLink Siri Error          Error in plugin execution InitializeMain:

  File "plugin.py", line 21, in <module>
type: No module named 'ifaddr'


tried
Code: Select all
pip3 install --upgrade pip

re-load plugin. No change. Identical error message as above
Last edited by whmoorejr on Thu Jan 25, 2024 7:47 pm, edited 1 time in total.

Bill
My Plugin: My People

Posted on
Thu Jan 25, 2024 7:47 pm
GlennNZ offline
User avatar
Posts: 1573
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: 2023.2 Rusty Cargo Error

Whats the system details? Apple Silicon I'm guessing
What OSX Version

Can try
Code: Select all
pip3 install orjson -t /Library/Application\ Support/Perceptive\ Automation/Indigo\ 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Packages --verbose

Posted on
Thu Jan 25, 2024 7:49 pm
whmoorejr offline
User avatar
Posts: 763
Joined: Jan 15, 2013
Location: Houston, TX

Re: 2023.2 Rusty Cargo Error

10.13.6 High Sierra on a 2012 Mac. (Tried Mojave.... I think that's the next in line.... it bricked a bunch of stuff, had to roll back to High Sierra)

Bill
My Plugin: My People

Posted on
Thu Jan 25, 2024 7:51 pm
GlennNZ offline
User avatar
Posts: 1573
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: 2023.2 Rusty Cargo Error

Ok.
Old not new.

Reverse problem.

Ok try above but copied below - looks the same, but will trying latest version (to see if binary exists for you)

Code: Select all
pip3 install orjson -t /Library/Application\ Support/Perceptive\ Automation/Indigo\ 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Packages --verbose


or failing that - will try everything only getting binary:

Okay 3.8.10 orjson has a binary for old version of High Sierra:
Running below and then reloading plugin hopefully will fix.

Code: Select all
pip3 install orjson --platform macosx_10_13_x86_64 --only-binary=:all: -t /Library/Application\ Support/Perceptive\ Automation/Indigo\ 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Packages --verbose


Basically trying to find a version that has binaries for you and everyone else...

Posted on
Thu Jan 25, 2024 8:01 pm
whmoorejr offline
User avatar
Posts: 763
Joined: Jan 15, 2013
Location: Houston, TX

Re: 2023.2 Rusty Cargo Error

From the first terminal command:

Code: Select all
WHM-Server-2:~ williammoore$ pip3 install orjson -t /Library/Application\ Support/Perceptive\ Automation/Indigo\ 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Packages --verbose
Using pip 23.3.2 from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip (python 3.11)
Collecting orjson
  Downloading orjson-3.9.12.tar.gz (4.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 7.4 MB/s eta 0:00:00
  Running command pip subprocess to install build dependencies
  Collecting maturin<2,>=1
    Using cached maturin-1.4.0-py3-none-macosx_10_12_x86_64.whl.metadata (18 kB)
  Using cached maturin-1.4.0-py3-none-macosx_10_12_x86_64.whl (8.0 MB)
  Installing collected packages: maturin
  Successfully installed maturin-1.4.0
  Installing build dependencies ... done
  Running command Getting requirements to build wheel
  Getting requirements to build wheel ... done
  Running command Preparing metadata (pyproject.toml)

  Cargo, the Rust package manager, is not installed or is not on PATH.
  This package requires Rust and Cargo to compile extensions. Install it through
  the system's package manager or via https://rustup.rs/

  Checking for Rust toolchain....
  error: subprocess-exited-with-error
 
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
 
  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/rt/yttmp1vd5f9577fjdf9xhj5c0000gn/T/tmpm7wv1jh7
  cwd: /private/var/folders/rt/yttmp1vd5f9577fjdf9xhj5c0000gn/T/pip-install-xzuzghtc/orjson_8bad0d67ba7a452483fe30a04b46d75f
  Preparing metadata (pyproject.toml) ... error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I see errors, but try to reload the plugin anyway.... Same rust cargo error as before.

Trying next terminal command...

Bill
My Plugin: My People

Posted on
Thu Jan 25, 2024 8:05 pm
whmoorejr offline
User avatar
Posts: 763
Joined: Jan 15, 2013
Location: Houston, TX

Re: 2023.2 Rusty Cargo Error

Code: Select all
WHM-Server-2:~ williammoore$ pip3 install orjson --platform macosx_10_13_x86_64 --only-binary=:all: -t /Library/Application\ Support/Perceptive\ Automation/Indigo\ 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Packages --verbose
Using pip 23.3.2 from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip (python 3.11)
Collecting orjson
  Downloading orjson-3.8.10-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (482 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 482.6/482.6 kB 2.4 MB/s eta 0:00:00
Installing collected packages: orjson
Successfully installed orjson-3.8.10


So far so good.... now for the plugin....
crap.... same error. Pasted here just incase there is a small differece that I'm not seeing.
Code: Select all
   Error                           Requirements file for "HomeKitLink Siri 0.6.60" failed to process correctly, contact the developer with the following information:
   Error                             error: subprocess-exited-with-error
 
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
     
      Cargo, the Rust package manager, is not installed or is not on PATH.
      This package requires Rust and Cargo to compile extensions. Install it through
      the system's package manager or via https://rustup.rs/
     
      Checking for Rust toolchain....
      [end of output]
 
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
   HomeKitLink Siri Error          Error in plugin execution InitializeMain:

  File "plugin.py", line 21, in <module>
type: No module named 'ifaddr'

   Stopping plugin "HomeKitLink Siri 0.6.60"

Bill
My Plugin: My People

Posted on
Thu Jan 25, 2024 8:08 pm
GlennNZ offline
User avatar
Posts: 1573
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: 2023.2 Rusty Cargo Error

Still positive, the plugin still wants the higher version and then ffails.

But
orjson==3.8.10

Is supported on High Sierra and seems to work on above versions (at least with my no apple Silicon)
Appears to have apple Silicon binary as well..,.. hopefully no one step forward, no back...

There now - I'll have a new release. (least should the orjson rust issue, and if xcode command line tools installed hopefully no others...)

https://github.com/Ghawken/HomeKitLink-Siri/releases

Posted on
Thu Jan 25, 2024 8:23 pm
whmoorejr offline
User avatar
Posts: 763
Joined: Jan 15, 2013
Location: Houston, TX

Re: 2023.2 Rusty Cargo Error

Update fixed it...
Code: Select all
Jan 25, 2024 at 8:12:12 PM
   Upgrading plugin HomeKitLink Siri to newer version 0.6.61 (previous version moved to trash)
   Loading plugin "HomeKitLink Siri 0.6.61" using API v3.4
   Starting plugin "HomeKitLink Siri 0.6.61" (pid 5930)
   Processing requirements for plugin "HomeKitLink Siri 0.6.61"
   Requirements installing, this may take a few seconds...


Jan 25, 2024 at 8:18:30 PM
   Finished installing requirements for "HomeKitLink Siri 0.6.61", continuing startup
   HomeKitLink Siri               
   HomeKitLink Siri                ================================================ Initializing New Plugin Session =================================================
   HomeKitLink Siri                Plugin name:                   HomeKitLink Siri
   HomeKitLink Siri                Plugin version:                0.6.61
   HomeKitLink Siri                Plugin ID:                     com.GlennNZ.indigoplugin.HomeKitLink-Siri
   HomeKitLink Siri                Indigo version:                2023.2.0
   HomeKitLink Siri                Silicon version:               x86_64
   HomeKitLink Siri                Python version:                3.11.6 (v3.11.6:8b6ee5ba3b, Oct  2 2023, 11:18:21) [Clang 13.0.0 (clang-1300.0.29.30)]
   HomeKitLink Siri                Python Directory:              /Library/Frameworks/Python.framework/Versions/3.11
   HomeKitLink Siri                FFmpeg :                       /Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Packages/homekitlink_ffmpeg/ffmpeg_binaries/x86/ffmpeg
   HomeKitLink Siri               
   HomeKitLink Siri                ================================================== End Initializing New Plugin  ==================================================
   Started plugin "HomeKitLink Siri 0.6.61"

   HomeKitLink Siri                Home app Client with IP address ('192.168.1.33', 62611) appears incompatible with this version of homekit.   It attempted to connect to Bridge HomeKitLink Bridge
   HomeKitLink Siri                15 Home Kit Accessories are now Started.


Sidenote: Mac on 192.168.1.33 is about a month old with newest everything. Havn't noticed any issues and that line has been popping up ever since I got my new mac.
Sidenote 2: "A few seconds" translates to about 6 minutes on an old mac like mine.

Summary: Everything appears to be solid. I apreciate your dedication to all your plugins.

Bill
My Plugin: My People

Who is online

Users browsing this forum: No registered users and 9 guests