pip install indigo fails

Posted on
Thu Jan 05, 2023 11:30 am
Different Computers offline
User avatar
Posts: 2541
Joined: Jan 02, 2016
Location: East Coast

pip install indigo fails

I'm unclear under which version of indigo I should be installing the indigo module.
Code: Select all
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c indigo/backends/_customcpu.c -o build/temp.macosx-10.9-universal2-3.10/indigo/backends/_customcpu.o -std=c11 -fopenmp -m64 -O3 -Wno-unknown-pragmas
      clang: error: unsupported option '-fopenmp'
      clang: error: unsupported option '-fopenmp'
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
 
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> indigo


What am I doing wrong? I've tried:

pip install indigo

python3 -m pip install indigo

py -3 -m pip install indigo

CC=gcc python -m pip install indigo

All fail for one reason or another on my Monterey M1 Mini. Xcode is installed.
Last edited by Different Computers on Thu Jan 05, 2023 11:35 am, edited 1 time in total.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Thu Jan 05, 2023 11:34 am
Different Computers offline
User avatar
Posts: 2541
Joined: Jan 02, 2016
Location: East Coast

Re: pip install indigo fails

Oh and the script I'm creating needs "sys" too and seems to have the same problems.

Getting ahead of myself, but this is what I'm trying to make happen:

Code: Select all
import indigo
import sys

trackInfo = sys.argv[1]
trackName, artistName = trackInfo.split("|")

indigo.variable.updateValue(trackVariableId, value=trackName)
indigo.variable.updateValue(artistVariableId, value=artistName)


There's an AppleScript that populates the variables.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Thu Jan 05, 2023 11:44 am
FlyingDiver offline
User avatar
Posts: 7215
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: pip install indigo fails

You can't install the indigo module. It's included in the Indigo install. You do need to "import indigo" in the code, and you need to be running the script from Indigo.

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

Posted on
Thu Jan 05, 2023 11:45 am
FlyingDiver offline
User avatar
Posts: 7215
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: pip install indigo fails

And the "sys" module is pre-installed for all versions of Python. You can't install it separately.

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

Posted on
Thu Jan 05, 2023 12:44 pm
Different Computers offline
User avatar
Posts: 2541
Joined: Jan 02, 2016
Location: East Coast

Re: pip install indigo fails

Guess I might be stuck then.

The idea was for AppleScript to pass variables to python, which would then pass them to Indigo.

Thanks anyway! Think I might have another way to do it.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Thu Jan 05, 2023 3:43 pm
jay (support) offline
Site Admin
User avatar
Posts: 18219
Joined: Mar 19, 2008
Location: Austin, Texas

Re: pip install indigo fails

Different Computers wrote:
There's an AppleScript that populates the variables.


Check out the AppleScript integration strategies page for options.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests

cron