Open zefoo opened 2 years ago
I am having the exact same issue, any progress on your side @zefoo ?
Hello, I meet problem like below :
Traceback (most recent call last):
File "C:\Code\syno\pyicloudtest.py", line 3, in <module>
api = PyiCloudService('xxx@qq.com', 'xxx..')
File "C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\site-packages\pyicloud\base.py", line 271, in __init__
self.authenticate()
File "C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\site-packages\pyicloud\base.py", line 337, in authenticate
self._webservices = self.data["webservices"]
KeyError: 'webservices
Fixed like below, hope can help you:
.cn
to the url for HOME_ENDPOINT
and SETUP_ENDPOINT
parameters.
FYI: I got the same error message using a wrong password. Just sharing that here because the error is confusing in this case.
I also raised a separate issue for it: https://github.com/picklepete/pyicloud/issues/423
lol
Running latest version, 1.0.
I'm using an iCloud account that is paired with 1 old iPhone that has not been turned on in a while (this has generally been fine).
I do not have 2FA set up on this account (deliberately so, it is only for iCloud).
I am not using app specific passwords.
Python 3.10.2.
As such, I don't think this is related to https://github.com/picklepete/pyicloud/issues/351 or https://github.com/picklepete/pyicloud/issues/349 ... but it might be.
I've tried this in a brand new environment with 3.10.2 as well. I can log into my account via iCloud.com just fine, not sure what's causing this oddity or if this is a bug.
Thank you for any help!