Page 2 of 3

Re: Issue with iCloud Login 11th June

PostPosted: Fri Jun 14, 2019 6:58 am
by McJohn
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.

Re: Issue with iCloud Login 11th June

PostPosted: Fri Jun 14, 2019 10:43 am
by jay (support)
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.

Re: Issue with iCloud Login 11th June

PostPosted: Fri Jun 14, 2019 10:59 am
by McJohn
OK, thanks for the info.
And the solution is?

Re: Issue with iCloud Login 11th June

PostPosted: Fri Jun 14, 2019 11:01 am
by FlyingDiver
McJohn wrote:
OK, thanks for the info.
And the solution is?


Delete the non-standard Python install.

Re: Issue with iCloud Login 11th June

PostPosted: Fri Jun 14, 2019 11:13 am
by McJohn
How?
(Sorry, but we are Apple users over more than 35 years now)

Re: Issue with iCloud Login 11th June

PostPosted: Fri Jun 14, 2019 11:15 am
by FlyingDiver
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?

Re: Issue with iCloud Login 11th June

PostPosted: Fri Jun 14, 2019 11:36 am
by McJohn
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!

Issue with iCloud Login 11th June

PostPosted: Fri Jun 14, 2019 9:10 pm
by GlennNZ
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

Re: Issue with iCloud Login 11th June

PostPosted: Sat Jun 15, 2019 1:01 am
by GlennNZ
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

Re: Issue with iCloud Login 11th June

PostPosted: Sat Jun 15, 2019 1:22 am
by McJohn
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?

Re: Issue with iCloud Login 11th June

PostPosted: Sat Jun 15, 2019 1:33 am
by GlennNZ
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

Re: Issue with iCloud Login 11th June

PostPosted: Sat Jun 15, 2019 1:45 am
by GlennNZ
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..

Re: Issue with iCloud Login 11th June

PostPosted: Sat Jun 15, 2019 2:12 am
by GlennNZ
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

Re: Issue with iCloud Login 11th June

PostPosted: Sat Jun 15, 2019 2:23 am
by McJohn
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:

Re: Issue with iCloud Login 11th June

PostPosted: Sat Jun 15, 2019 2:24 am
by GlennNZ
Yep Check the post again - already updated

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