hackappcom / iloot

OpenSource tool for iCloud backup extraction
https://hackapp.com/
637 stars 201 forks source link

Doesn't run on Python 2.7.9 #38

Open FiZiX opened 9 years ago

FiZiX commented 9 years ago

The latest commit gives the following error when trying to run on Python 2.7.9:

TypeError: __init__() got an unexpected keyword argument 'server_hostname'

What is the target version of Python for this build?

peterholko commented 9 years ago

Same error for me.

dkamioka commented 9 years ago

same

Marfusios commented 9 years ago

It's strange, because in PyCharm IDE it works, but starting in console it doesn't. Tested on Mac 10.10.2.

FiZiX commented 9 years ago

It works with 2.7.8. I believe it's an issue with gevent. See here:

https://github.com/gevent/gevent/issues/477

dwkns commented 9 years ago

Have confirmed this is an issue with 2.7.9. And I think @FiZiX is right about it being a gevent problem.

You can get round it by using pyenv

On OS X :

$ brew install  pyenv

Followed by :

$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile

Open a new terminal window. Then...

$ pyenv install 2.7.8

To check :

$ python --version
>> Python 2.7.8

You'll probably need to update the requirements.

$ cd iloot
$ pip install -r requirements.txt