Issue with iCloud Login 11th June

Posted on
Fri Jun 14, 2019 6:58 am
McJohn offline
User avatar
Posts: 631
Joined: Dec 18, 2012
Location: The Netherlands

Re: Issue with iCloud Login 11th June

Thanks for the Python info.

Maybe this command installed another Python version elsewhere?
Code: Select all
pip install requests[security]


There is a Python module in this directory:
/System/Library/Frameworks/Python.framework/

And this command in the terminal:
Code: Select all
which python

Says:
Code: Select all
/usr/local/bin/python


(Look likes the same as Jay's info)


Thanks for your time and your help.

Posted on
Fri Jun 14, 2019 10:43 am
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Issue with iCloud Login 11th June

McJohn wrote:
And this command in the terminal:
Code: Select all
which python

Says:
Code: Select all
/usr/local/bin/python



That indicates you have a 3rd party Python install. The correct answer should be:

Code: Select all
/usr/bin/python


and if you do:

Code: Select all
which pip


it will likely tell you that it's finding the pip that's installed with that 3rd party install, so when you run:

Code: Select all
pip install requests[security]


it's installing it in the 3rd party Python. I believe all this is discussed in the aforementioned thread.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Jun 14, 2019 10:59 am
McJohn offline
User avatar
Posts: 631
Joined: Dec 18, 2012
Location: The Netherlands

Re: Issue with iCloud Login 11th June

OK, thanks for the info.
And the solution is?

Posted on
Fri Jun 14, 2019 11:01 am
FlyingDiver offline
User avatar
Posts: 7217
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Issue with iCloud Login 11th June

McJohn wrote:
OK, thanks for the info.
And the solution is?


Delete the non-standard Python install.

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

Posted on
Fri Jun 14, 2019 11:13 am
McJohn offline
User avatar
Posts: 631
Joined: Dec 18, 2012
Location: The Netherlands

Re: Issue with iCloud Login 11th June

How?
(Sorry, but we are Apple users over more than 35 years now)

Posted on
Fri Jun 14, 2019 11:15 am
FlyingDiver offline
User avatar
Posts: 7217
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Issue with iCloud Login 11th June

McJohn wrote:
How?
(Sorry, but we are Apple users over more than 35 years now)


How did you install it in the first place? Homebrew? Ports? Direct download installer from python.org?

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

Posted on
Fri Jun 14, 2019 11:36 am
McJohn offline
User avatar
Posts: 631
Joined: Dec 18, 2012
Location: The Netherlands

Re: Issue with iCloud Login 11th June

Sorry to say but we only use the standard- and developer plugins of Indigo.
So, we never used Homebrew, Ports or other stuff and we never ever installed other Python stuff...

But in the meantime I found something of Karl's plugin... IndigoPlotD... (Sorry Karl).
Page 24 of the manual says it: it installs Homebrew...

Is it not possible to install the update to the right Python?

Thanks for the help!
Attachments
Screen Shot 2019-06-14 at 19.34.56.png
Screen Shot 2019-06-14 at 19.34.56.png (467.36 KiB) Viewed 5213 times

Posted on
Fri Jun 14, 2019 9:10 pm
GlennNZ offline
User avatar
Posts: 1562
Joined: Dec 07, 2014
Location: Central Coast, Australia

Issue with iCloud Login 11th June

Hi

Somehow or another, another version of python has been installed by something...

Installing homeBrew wouldn’t do this - but once homeBrew is installed you can use it to install python. (from the path it would seem likely that homeBrew has installed python)
Also pip install requests[security] wouldn’t install python.

Could try running
Code: Select all
python -m pip install requests[security]

From within the indigo python directory?
Like:

Code: Select all
/usr/bin/python -m pip install requests[security]


Alternatively:
Anyone know a way I can run a super old version of OSX & indigo to try to test including libraries/ssl stuff in plugin? VM options?
(found something, I’ll see if can create a VM old Mac version and troubleshoot the connection issue)


Sent from my iPad using Tapatalk

Posted on
Sat Jun 15, 2019 1:01 am
GlennNZ offline
User avatar
Posts: 1562
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: Issue with iCloud Login 11th June

Further to this:

Could try version 0.9.9
May, big may, fix the OSX security issues in old Macs...
In PluginStore

Sorry to disappoint but have managed to create VM version of Mac OSX with Indigo licence, and same error.
Pending timezone/time issues at least will be able to troubleshoot, see what fixes.

Glenn
Last edited by GlennNZ on Sat Jun 15, 2019 1:31 am, edited 1 time in total.

Posted on
Sat Jun 15, 2019 1:22 am
McJohn offline
User avatar
Posts: 631
Joined: Dec 18, 2012
Location: The Netherlands

Re: Issue with iCloud Login 11th June

Thank you so much Glenn!
Unfortunately (and I'm sorry to say), version 0.9.9 give the same bad result:

FindFriendsMini Error Login Failed General Error. ('Connection aborted.', error(54, 'Connection reset by peer')){'request': <PreparedRequest [POST]>, 'response': None}
FindFriendsMini Error ('Connection aborted.', error(54, 'Connection reset by peer'))


Further on I tested this:

Code: Select all
python -m pip install requests[security]

gave this:
Code: Select all
Requirement already satisfied: requests[security] in /usr/local/lib/python2.7/site-packages (2.22.0)


And this one:
Code: Select all
/usr/bin/python -m pip install requests[security]

gave this:
Code: Select all
/usr/bin/python: No module named pip


So, I'm afraid that when I simple delete the wrong Python (Finder/trash) , the right Python still wouldn't be recognized?

Posted on
Sat Jun 15, 2019 1:33 am
GlennNZ offline
User avatar
Posts: 1562
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: Issue with iCloud Login 11th June

Sorry, Yep, I edited above message probably at the same time.

You need to install requests[security] into right python.

Can't just delete from finder, need to delete from whatever installed it.

G

Posted on
Sat Jun 15, 2019 1:45 am
GlennNZ offline
User avatar
Posts: 1562
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: Issue with iCloud Login 11th June

Okay,

VM old mac despite 1024x768 screen is yielding some information.

Code: Select all
pip -m install requests[security]

Doesn't help. Although rebooting now.

OK Success on old Mac VM
.

Do need to install a few python packages which need to go to the right python install

These three overcome/obviously are missing on Sierra & Below:

Code: Select all
pip install pyopenssl ndg-httpsclient pyasn1


I had an issue where version of package of 'six' was stopping pip from installing. This was overcome by using
Code: Select all
 pip install pyopenssl --ignore-installed six --user

Code: Select all
 pip install ndg-httpsclient --ignore-installed six --user

Code: Select all
 pip install pyansn1 --ignore-installed six --user


Also had an early issue, where pip didn't seem to exist. Overcome by
Code: Select all
curl -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py


Downloads get-pip.py, and then runs it with python..

Posted on
Sat Jun 15, 2019 2:12 am
GlennNZ offline
User avatar
Posts: 1562
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: Issue with iCloud Login 11th June

OK - so for @McJohn

Would try

From a terminal Window:

Code: Select all
curl -O https://bootstrap.pypa.io/get-pip.py

Download py file to install pip if missing
then
Code: Select all
/usr/bin/python get-pip.py --user

Run that file from correct python install
then
Code: Select all
/usr/bin/python -m pip install pyasn1 --ignore-installed six --user

then
Code: Select all
/usr/bin/python -m pip install pyopenssl --ignore-installed six --user

then
Code: Select all
/usr/bin/python -m pip install ndg-httpsclient --ignore-installed six --user


Phew
Then restart Plugin and enter details
Last edited by GlennNZ on Sat Jun 15, 2019 2:44 am, edited 1 time in total.

Posted on
Sat Jun 15, 2019 2:23 am
McJohn offline
User avatar
Posts: 631
Joined: Dec 18, 2012
Location: The Netherlands

Re: Issue with iCloud Login 11th June

Thanks!

This one gives an error:
Code: Select all
/usr/bin/python get-pip.py


[code]Downloading https://files.pythonhosted.org/packages ... ne-any.whl
Installing collected packages: pip, wheel
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip'
Consider using the `--user` option or check the permissions.

(There is one Admin at this Mac)

Sorry :cry:
Last edited by McJohn on Sat Jun 15, 2019 2:25 am, edited 2 times in total.

Posted on
Sat Jun 15, 2019 2:24 am
GlennNZ offline
User avatar
Posts: 1562
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: Issue with iCloud Login 11th June

Yep Check the post again - already updated

Code: Select all
/usr/bin/python get-pip.py --user

Who is online

Users browsing this forum: No registered users and 2 guests