Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Error after installation of pyicloud.py
-
I can't say much about the error, but wouldn't it perhaps be easier to use the built-in
photos
module instead? -
Ho no!
In reality, the Photos module access to the photos on my device where Pythonista runs.
My wife has her photos on iCloud, but I didn't set so because I don't want to receive all (thousands 😭) her photos on my devices.
With pyicloud, I can access on my device to her photos, and so I could get a photo and copy it, as backup, on a FTP server...
That, always in my dreamed challenge to replace my iMac/Pc by my iPad.Anyway, I think the problem comes that an imported module (named future) in pyicloud checks the sys.version_info but even if I rename the future module as anything else, I have the same problem.
-
Have you tried running this with the 2.7 interpreter?
-
Yes, my little test only runs with #!python2.
But the problem is that all my other scripts now have this error...I don't know why but the installation has also installed 2 modules in sites-packages: reprlib and copyreg which seem to generate these errors. I have renamed both in same name_xxx, fully restarted Pythonista and my little test runs normally in Python2 and all my Python3 scripts seem to be also ok, at least them I've just tested.
-
Anyway, I really love your app. I can't imagine my life of retired guy without it...
Thus, be careful and try to continue to support it during a lot of years.
Even if I could buy a new version each year, it's the less expensive hobby I never have had.
One more time, thanks a lot for your marvelous work. -
@omz After some hours of tests, I'm able, via pyicloud, to download photos from iCloud, but the get request only gives 993 photos, even if iCloud contains a lot more, and I don't know why.
Now, I hesitate to use a new ios8 feature of the PhAsset objectiveC allowing to access photos, no more only on the iDevice but also on iCloud Photos Library, but of course, it will be more complicated. I have all needed time to try, but without the needed skills, I agree 😢Please read this and tell me if it's the case, Thanks.
-
@cvp Using
PHAsset
would be pretty much the same as using thephotos
module (it's basically a wrapper aroundPHAsset
and related ObjC classes). You couldn't access iCloud photos from a different account than the one you're signed in with (in the Photos app) that way. -
I understand but my problem is that my iPad where Pythonista runs is configured to not access to iCloud Photos Library to avoid the automatic download of the thousands of photos taken by my wife on her iPhone (we have the same iCloud account).
And I want to (be able to) get these iCloud photos in my local Pythonista files and to decide my-self if I keep them or if I send them to an FTP NAS.
Thus, either pyicloud allows to get these photos,either PhAsset could perhaps do it with a particular option, and I'm not sure I could set this option with the photos module.
But anyway, if my iCloud setting is set to "photos iCloud Library" to off, I'm not sure that the PhAsset ObjC would be authorized!
Hoping I'm clear enough because iCloud Photos Library is not always obvious., without speaking about Photos stream and Photos sharing... -
I've found on pyicloud topic of GitHub, a comment of somebody who had the same kind of problem with the contacts.py module which always gets maximum 500 contacts...
I'll try to understand his modification and try to transpose it in the photos.py module of pyicloud, but without a great hope for the moment.
But I like this challenge: one more time I'll learn something new because I don't know anything about get/requests etc...Wait and pray -
Solved by pyicloud update, see here