sleekxmpp install problems

Posted on
Thu Dec 01, 2016 11:51 am
chasyori offline
Posts: 27
Joined: Dec 18, 2014

sleekxmpp install problems

Code: Select all
Traceback (most recent call last):
  File "plugin.py", line 10, in <module>
ImportError: No module named sleekxmpp

2016-12-01 07:44:09.069 Application Stopping plugin "Harmony Hub 7.0.0" (pid 16786)


Code: Select all
pip install sleekxmpp
Requirement already satisfied (use --upgrade to upgrade): sleekxmpp in /usr/local/lib/python2.7/site-packages


what am i doing wrong here?

Posted on
Thu Dec 01, 2016 12:02 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Harmony Hub plugin - Indigo 7

chasyori wrote:
Code: Select all
pip install sleekxmpp
Requirement already satisfied (use --upgrade to upgrade): sleekxmpp in /usr/local/lib/python2.7/site-packages


what am i doing wrong here?


You have a non-standard Python install. You should be getting:

Code: Select all
home:~ miniserver$ pip install sleekxmpp
Requirement already satisfied (use --upgrade to upgrade): sleekxmpp in /Library/Python/2.7/site-packages


If you installed Python using homebrew or ports or anything like that, remove it.

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

Posted on
Thu Dec 01, 2016 12:05 pm
chasyori offline
Posts: 27
Joined: Dec 18, 2014

Re: Harmony Hub plugin - Indigo 7

Not sure how to do that


Sent from my iPhone using Tapatalk

Posted on
Thu Dec 01, 2016 12:12 pm
chasyori offline
Posts: 27
Joined: Dec 18, 2014

Re: Harmony Hub plugin - Indigo 7

get (0.0.11)
pip (8.1.2)
post (0.0.8)
public (0.0.33)
query-string (0.0.8)
request (0.0.8)
setuptools (23.0.0)
sleekxmpp (1.3.1)
wheel (0.29.0)

these packages are installed

Posted on
Thu Dec 01, 2016 12:13 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Harmony Hub plugin - Indigo 7

chasyori wrote:
Not sure how to do that


Neither am I.

However, you can try this command to force pip to install it in the correct place. You probably have an environment variable set that's specifying the wrong place.

Code: Select all
sudo pip install --root /Library/Python/2.7/ sleekxmpp

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

Posted on
Thu Dec 01, 2016 12:14 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Harmony Hub plugin - Indigo 7

chasyori wrote:
get (0.0.11)
pip (8.1.2)
post (0.0.8)
public (0.0.33)
query-string (0.0.8)
request (0.0.8)
setuptools (23.0.0)
sleekxmpp (1.3.1)
wheel (0.29.0)

these packages are installed


Yes, but where?

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

Posted on
Thu Dec 01, 2016 12:20 pm
chasyori offline
Posts: 27
Joined: Dec 18, 2014

Re: Harmony Hub plugin - Indigo 7

directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Posted on
Thu Dec 01, 2016 12:24 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Harmony Hub plugin - Indigo 7

chasyori wrote:
directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.


Please don't post just part of the command output. Post all of it. And use the CODE tags so it doesn't get line wrapped.

I've seen that warning as a part of a completely successful install. So it might not be an issue. Here's what I see on my system:

Code: Select all
$ ls -la /Library/Python/2.7/
total 0
drwxr-xr-x   3 root  wheel   102 Jul 30 20:44 .
drwxr-xr-x   4 root  wheel   136 Sep 13 20:49 ..
drwxr-xr-x  53 root  wheel  1802 Nov 24 16:50 site-packages
$ ls -la /Library/Python/2.7/site-packages/
total 472
drwxr-xr-x  53 root  wheel   1802 Nov 24 16:50 .
drwxr-xr-x   3 root  wheel    102 Jul 30 20:44 ..
-rw-r--r--   1 root  wheel    119 Jul 30 21:36 README
drwxr-xr-x   9 root  wheel    306 Jun 30 16:28 Twisted-16.2.0-py2.7.egg-info
-rw-r--r--   1 root  wheel    185 Nov 17 06:30 easy-install.pth
drwxr-xr-x   8 root  wheel    272 Sep  4 05:25 holidays-0.4.1-py2.7.egg-info
-rw-r--r--   1 root  wheel  58549 Jan  5  2016 holidays.py
-rw-r--r--   1 root  wheel  44179 Sep  4 05:25 holidays.pyc
drwxr-xr-x   9 root  wheel    306 Jun 12 09:00 httplib2
drwxr-xr-x   7 root  wheel    238 Jun 12 09:00 httplib2-0.9.2-py2.7.egg-info
drwxr-xr-x  44 root  wheel   1496 Nov 24 16:50 num2words
drwxr-xr-x   7 root  wheel    238 Nov 24 16:50 num2words-0.5.4-py2.7.egg-info
drwxr-xr-x  34 root  wheel   1156 Nov 17 06:30 pip
drwxr-xr-x  10 root  wheel    340 Nov 17 06:30 pip-9.0.1.dist-info
drwxr-xr-x  32 root  wheel   1088 May 27  2016 requests
drwxr-xr-x   9 root  wheel    306 May 27  2016 requests-2.10.0.dist-info
drwxr-xr-x  26 root  wheel    884 May 27  2016 sleekxmpp
drwxr-xr-x   7 root  wheel    238 May 27  2016 sleekxmpp-1.3.1-py2.7.egg-info
drwxr-xr-x  19 root  wheel    646 Jun 12 09:00 twilio
drwxr-xr-x   8 root  wheel    272 Jun 12 09:00 twilio-5.4.0-py2.7.egg-info
drwxr-xr-x  35 root  wheel   1190 Jun 30 16:27 twisted
drwxr-xr-x   8 root  wheel    272 Jul 16 16:39 twisted_mqtt-0.2.3-py2.7.egg-info

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

Posted on
Thu Dec 01, 2016 1:08 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: sleekxmpp install problems

I split this off into it's own thread.

This is not a plugin issue. It's a system configuration issue. I'm not sure what's happened recently, put we're getting a spate of these kinds of problems for Indigo in general and a number of plugins. I'm not sure if Indigo 7 is more susceptible than previous versions to alternate Python installs, or something else is going on.

From what I can tell, there's really only two solutions. First would be to get rid of any non-standard (not provided by Apple as part of the OS install) versions of Python. Alternatively, if there's a really good reason to have an additional version of Python installed, for use outside Indigo, then the user's going to need to know how to install packages into the location used by Apple's install of Python.

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

Posted on
Thu Dec 01, 2016 1:59 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: sleekxmpp install problems

FlyingDiver wrote:
I'm not sure what's happened recently, put we're getting a spate of these kinds of problems for Indigo in general and a number of plugins. I'm not sure if Indigo 7 is more susceptible than previous versions to alternate Python installs, or something else is going on.


My guess is that it wasn't a problem because Indigo 6 wasn't using Python 2.7 - so having something else installing a different Python 2.7 didn't effect Indigo 6. But now, since we're using Python 2.7, everyone who (somehow) installed a rogue version of Python 2.7 is now having issues. I don't know why homebrew would so fubar the built-in Python install, but it's definitely not something we can deal with automatically.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Jan 24, 2017 1:06 pm
Busta999 offline
User avatar
Posts: 714
Joined: Mar 30, 2016
Location: Wales UK

Re: sleekxmpp install problems

Just for info.

I have spent the last few hours trying to get this Plugin up and running and going around in circles.

Basically can't get the Plugin running - Python install issues.

Not overly fused at this stage - about to bring up a new iMac to run Indigo and will build that install from scratch so hopefully will not have the issues recurring.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest

cron