Giter Club home page Giter Club logo

icloud_photo_station's People

Contributors

andreynikiforov avatar appelg avatar artemryzhov avatar avouspierre avatar bexelbie avatar boredazfcuk avatar brunodoamaral avatar cclauss avatar chadj avatar dependabot[bot] avatar eana avatar elvis-epx avatar fnordahl avatar fver avatar gneitzke avatar harryzcy avatar jdahdah avatar jfsimoneau avatar kovaacs avatar ltm avatar matrixdai avatar menkej avatar ndbroadbent avatar nicoh88 avatar numshub avatar nurikk avatar scaraebeus avatar skarppi avatar svisser avatar tkallevik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

icloud_photo_station's Issues

Issue with authentication

I have been running this a long time and it has been great but in the last week it has started presenting the below error

When I use the iCloud command to add my password to the keychain it works as expected (asks for 2fa and then login).

I would really appreciate your help with pointing out where Im going wrong.

Synology strongly advises you not to run commands as the root user, who has
the highest privileges on the system. Doing so may cause major damages
to the system. Please note that if you choose to proceed, all consequences are
at your own risk.

[XXX]@JARVIS:~$ source /volume1/@appstore/icloud_photo_station/env/bin/activate(env) 
[XXX]@JARVIS:~$ python /volume1/@appstore/icloud_photo_station/app/icloudpd.py \
> --directory /volume1/iCloud \
> --username [XXX] \
> --until-found 10 \
> --auto-delete 
2023-02-09 17:27:16 DEBUG    Authenticating...
Please log into https://icloud.com/ to manually finish setting up your iCloud service (AUTHENTICATION_FAILED)
(env) [XXX]@JARVIS:~$ 

Getting some errors: (Invalid global session, Connection reset by peer)

Hello,

I'm getting an error 'Invalid global session' every time the downloader is reaching 100-200 photos,
And some times i'm getting 'Connection reset by peer' error.
I'm running it on my Synology Nas.

I've posted it also in the original project
icloud-photos-downloader#29

here is the 'Invalid global session' error

Downloading IMG_7283.JPG to /volume1/Photo/iPhone-Backup/Idan/2017/06/17:   8%| | 600/7351 [1:19:57<6:05:08,  3.25s/it]Traceback (most recent call last):
  File "/volume1/@appstore/icloud_photo_station/app/download_photos.py", line 279, in <module>
    download()
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/volume1/@appstore/icloud_photo_station/app/download_photos.py", line 96, in download
    for photo in progress_bar:
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/tqdm/_tqdm.py", line 872, in __iter__
    for obj in iterable:
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/pyicloud/services/photos.py", line 281, in photos
    headers={'Content-type': 'text/plain'}
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/requests/sessions.py", line 555, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/pyicloud/base.py", line 100, in request
    self._raise_error(code, reason)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/pyicloud/base.py", line 122, in _raise_error
    raise api_error
pyicloud.exceptions.PyiCloudAPIResponseError: Invalid global session

Here is the Connection reset by peer error

Downloading IMG_7639.JPG to /volume1/Photo/iPhone-Backup/Idan/2017/07/15:   4%| | 311/7351 [34:25<35:45:43, 18.29s/it]Traceback (most recent call last):
  File "/volume1/@appstore/icloud_photo_station/app/download_photos.py", line 279, in <module>
    download()
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/volume1/@appstore/icloud_photo_station/app/download_photos.py", line 112, in download
    exists = download_photo(photo, size, force_size, album, progress_bar)
  File "/volume1/@appstore/icloud_photo_station/app/download_photos.py", line 259, in download_photo
    album_photo.save_content(download_url)
  File "/volume1/@appstore/icloud_photo_station/app/filesystem.py", line 48, in save_content
    for chunk in url.iter_content(chunk_size=1024):
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/requests/models.py", line 748, in generate
    raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ("Connection broken: error(104, 'Connection reset by peer')", error(104, 'Connection reset by peer'))

Cannot run icloudpd.py on DSM 7

Overview

I cannot run icloudpd.py on dsm 7( DSM 7.0.1-42218 ).

When running I see : ModuleNotFoundError: No module named 'click'.

Steps to Reproduce

  1. Manually install 0.3.0 spk from repo ( or build spk from source and then install)
  2. run the scripts (either manually from command line or in task scheduler:
  3. source /volume1/@appstore/icloud_photo_station/env/bin/activate
    python /volume1/@appstore/icloud_photo_station/app/icloudpd.py \
        --username '<YOUR ICLOUD USERNAME>' \
        --password '<YOUR ICLOUD PASSWORD>' \
        --auto-delete \
        --until-found 10 \
        --directory ./output/```
    

4: output

Traceback (most recent call last):
File "/volume1/@appstore/icloud_photo_station/app/icloudpd.py", line 2, in <module>
 from icloudpd.base import main
File "/volume1/@appstore/icloud_photo_station/app/icloudpd/base.py", line 12, in <module>
 import click
ModuleNotFoundError: No module named 'click'

Context

There seems to be going something wrong with installing the requirements with pip:

(env) Billy@Rubin:~$ pip install -r  ~/requirements.txt 
Collecting pyicloud_ipd==0.10.1
  Using cached pyicloud_ipd-0.10.1-py2.py3-none-any.whl (22 kB)
Collecting schema==0.7.4
  Using cached schema-0.7.4-py2.py3-none-any.whl (16 kB)
Collecting click==6.7
  Using cached click-6.7-py2.py3-none-any.whl (71 kB)
Collecting python_dateutil==2.8.2
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting requests>=2.20.0
  Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
Collecting tqdm==4.62.0
  Using cached tqdm-4.62.0-py2.py3-none-any.whl (76 kB)
Collecting piexif==1.1.3
  Using cached piexif-1.1.3-py2.py3-none-any.whl (20 kB)
Collecting certifi
  Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting pytz
  Using cached pytz-2021.3-py2.py3-none-any.whl (503 kB)
Collecting six>=1.9.0
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting keyrings.alt<2.0,>=1.0
  Using cached keyrings.alt-1.3-py2.py3-none-any.whl (21 kB)
Collecting future
  Using cached future-0.18.2-py3-none-any.whl
Collecting tzlocal
  Using cached tzlocal-4.1-py3-none-any.whl (19 kB)
Collecting keyring<9.0,>=8.0
  Using cached keyring-8.7-py2.py3-none-any.whl (33 kB)
Collecting contextlib2>=0.5.5
  Using cached contextlib2-21.6.0-py2.py3-none-any.whl (13 kB)
Collecting charset-normalizer~=2.0.0
  Using cached charset_normalizer-2.0.10-py3-none-any.whl (39 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.3-py3-none-any.whl (61 kB)
Collecting urllib3<1.27,>=1.21.1
  Using cached urllib3-1.26.7-py2.py3-none-any.whl (138 kB)
Collecting backports.zoneinfo
  Using cached backports.zoneinfo-0.2.1.tar.gz (74 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pytz-deprecation-shim
  Using cached pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl (15 kB)
Collecting tzdata
  Using cached tzdata-2021.5-py2.py3-none-any.whl (339 kB)
Building wheels for collected packages: backports.zoneinfo
  Building wheel for backports.zoneinfo (pyproject.toml) ... error
  ERROR: Command errored out with exit status 1:
   command: /volume1/@appstore/icloud_photo_station/env/bin/python /volume1/@appstore/icloud_photo_station/env/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpppzdlxpy
       cwd: /tmp/pip-install-26l01u8j/backports-zoneinfo_fe39e2ea05074c64abaf4a82b2051a2f
  Complete output (26 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-armv7l-3.8
  creating build/lib.linux-armv7l-3.8/backports
  copying src/backports/__init__.py -> build/lib.linux-armv7l-3.8/backports
  creating build/lib.linux-armv7l-3.8/backports/zoneinfo
  copying src/backports/zoneinfo/_zoneinfo.py -> build/lib.linux-armv7l-3.8/backports/zoneinfo
  copying src/backports/zoneinfo/_version.py -> build/lib.linux-armv7l-3.8/backports/zoneinfo
  copying src/backports/zoneinfo/_tzpath.py -> build/lib.linux-armv7l-3.8/backports/zoneinfo
  copying src/backports/zoneinfo/_common.py -> build/lib.linux-armv7l-3.8/backports/zoneinfo
  copying src/backports/zoneinfo/__init__.py -> build/lib.linux-armv7l-3.8/backports/zoneinfo
  running egg_info
  warning: no files found matching '*.png' under directory 'docs'
  warning: no files found matching '*.svg' under directory 'docs'
  no previously-included directories found matching 'docs/_build'
  no previously-included directories found matching 'docs/_output'
  writing manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt'
  copying src/backports/zoneinfo/__init__.pyi -> build/lib.linux-armv7l-3.8/backports/zoneinfo
  copying src/backports/zoneinfo/py.typed -> build/lib.linux-armv7l-3.8/backports/zoneinfo
  running build_ext
  creating build/temp.linux-armv7l-3.8
  creating build/temp.linux-armv7l-3.8/lib
  /usr/local/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-wrap-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DOPENSSL_NO_SSL3 -DOPENSSL_NO_SSL2 -I/usr/local/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/usr/include -DSYNOPLAT_F_ARMV7 -O2 -mcpu=cortex-a9 -march=armv7-a -mfpu=neon -mfloat-abi=hard -mthumb -fno-diagnostics-show-caret -Wno-unused-local-typedefs -include /usr/syno/include/platformconfig.h -DSYNO_ENVIRONMENT -DBUILD_ARCH=32 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DSYNO_RUNNING_DSM_BUILD_SYSTEM -g -pipe -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -O2 -Wno-unused-result -fPIC -I/volume1/@appstore/icloud_photo_station/env/include/python3.8 -c lib/zoneinfo_module.c -o build/temp.linux-armv7l-3.8/lib/zoneinfo_module.o -std=c99
  error: command '/usr/local/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-wrap-gcc' failed: No such file or directory
  ----------------------------------------
  ERROR: Failed building wheel for backports.zoneinfo
Failed to build backports.zoneinfo
ERROR: Could not build wheels for backports.zoneinfo, which is required to install pyproject.toml-based projects

environment:

(env) Billy@Rubin:~$ pip --version
^[[A^[[Apip 21.3.1 from /volume1/@appstore/icloud_photo_station/env/lib/python3.8/site-packages/pip (python 3.8)
^[[B(env) Billy@Rubin:~$ python --version
Python 3.8.8
(env) Billy@Rubin:~$ which python
/volume1/@appstore/icloud_photo_station/env/bin/python
(env) Billy@Rubin:~$ which pip
/volume1/@appstore/icloud_photo_station/env/bin/pip
(env) Billy@Rubin:~$  python /volume1/@appstore/icloud_photo_station/app/icloudpd.py         --username 'test'         --password 'redacted'         --auto-delete         --until-found 10         --directory ./output/
Traceback (most recent call last):
  File "/volume1/@appstore/icloud_photo_station/app/icloudpd.py", line 2, in <module>
    from icloudpd.base import main
  File "/volume1/@appstore/icloud_photo_station/app/icloudpd/base.py", line 12, in <module>
    import click
ModuleNotFoundError: No module named 'click'
(env) Billy@Rubin:~$ 

Removal

Is it possible to somehow delete all the photos that have been deleted? If the delete folder is already cleared and the photos and videos have been deleted a lot and you need to clean the downloaded photos.

Redownload 500gb?

AttributeError: 'NoneType' object has no attribute 'startswith'

2020-05-24 12:02:40 INFO Great, you're all set up. The script can now be run without user interaction until 2SA expires.
You can set up email notifications for when the two-step authentication expires.
(Use --help to view information about SMTP options.)
Traceback (most recent call last):
File "/volume1/@appstore/icloud_photo_station/app/icloudpd.py", line 5, in
main()
File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/volume1/@appstore/icloud_photo_station/app/icloudpd/base.py", line 277, in main
directory = os.path.normpath(directory)
File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/posixpath.py", line 335, in normpath
initial_slashes = path.startswith('/')
AttributeError: 'NoneType' object has no attribute 'startswith'

what did I miss please?

Problem building

i am a novice user trying to install on my synology the icloud photo station
i followed the instructions and my build stops with an error - i am afraid the https site in not reachable?
i would appreciate if you could help me
thanks
Andrea

(env) admin@Cabana-HD:/var/services/homes/acalace/icloud_photo_station/spk$ sh build.sh
Will not apply HSTS. The HSTS database must be a regular and non-world-writable file.
ERROR: could not open HSTS store at '/var/services/homes/admin/.wget-hsts'. HSTS will be disabled.
--2020-07-04 18:32:21-- http://raw.githubusercontent.com/SynologyOpenSource/pkgscripts-ng/master/include/pkg_util.sh
Resolving raw.githubusercontent.com... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com|151.101.0.133|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://raw.githubusercontent.com/SynologyOpenSource/pkgscripts-ng/master/include/pkg_util.sh [following]
--2020-07-04 18:32:21-- https://raw.githubusercontent.com/SynologyOpenSource/pkgscripts-ng/master/include/pkg_util.sh
Connecting to raw.githubusercontent.com|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10465 (10K) [text/plain]
Saving to: '_pkg_util.sh'

_pkg_util.sh 100%[=======================================================================================================>] 10.22K --.-KB/s in 0s

2020-07-04 18:32:22 (65.3 MB/s) - '_pkg_util.sh' saved [10465/10465]

build.sh: line 24: source: _pkg_util.sh: file not found

KeyError: 'albumNameEnc' - DMS6

2022-03-20 16:56:19 DEBUG Authenticating...
Traceback (most recent call last):
File "/volume1/@appstore/icloud_photo_station/app/icloudpd.py", line 5, in
main()
File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/volume1/@appstore/icloud_photo_station/app/icloudpd/base.py", line 261, in main
photos = icloud.photos.albums[album]
File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/pyicloud_ipd/services/photos.py", line 194, in albums
folder['fields']['albumNameEnc']['value']).decode('utf-8')
KeyError: 'albumNameEnc'

PyiCloudAPIResponseError

Overview

I have been using this without problem for a long time (thanks!), but for the last week or so I started to get the following error (screenshot below)

image

I don't have enough coding skills to understand what exactly the issue is...

Python3 Error

Hi, i'm trying to use python3 to run the script to check if it will run better, i think that you have an error in the file 'filesystem.py'

here is the error i'm getting:

Traceback (most recent call last):
  File "/volume1/@appstore/icloud_photo_station/app/download_photos.py", line 11, in <module>
    from filesystem import FileSystemStorage
  File "/volume1/@appstore/icloud_photo_station/app/filesystem.py", line 55
    print "Deleting %s!" % self.path
                       ^
SyntaxError: Missing parentheses in call to 'print'

ImportError: No module named click

Package built just fine and installed to the NAS (DS418play, DSM 6.2.3-25426 Update 2)

I have 2FA on my account and this is the error I received when issuing the command within an SSH session.

~$ python /volume1/@appstore/icloud_photo_station/app/icloudpd.py \
>     --username '[email protected]' \
>     --password 'pass' \
>     --auto-delete \
>     --until-found 10 \
>     --download output
Traceback (most recent call last):
  File "/volume1/@appstore/icloud_photo_station/app/icloudpd.py", line 2, in <module>
    from icloudpd.base import main
  File "/volume1/@appstore/icloud_photo_station/app/icloudpd/base.py", line 12, in <module>
    import click
ImportError: No module named click

Please advise, as I do not know where to start trying to work around this.

Is this still supported?

I see that the latest activity on this was Jan 2018. Is this still supported and working? Thanks.

Help with two factor authencation

So do I simply ssh into my DSM and run the following?

source /volume1/@appstore/icloud_photo_station/env/bin/activate
python /volume1/@appstore/icloud_photo_station/app/icloudpd.py \
--username REDACTED \
--password REDACTED \
--directory /volume1/Photos/Curtis

When I do that I get the following:

2021-08-23 20:53:43 DEBUG    Authenticating...
Traceback (most recent call last):
  File "/volume1/@appstore/icloud_photo_station/app/icloudpd.py", line 5, in <module>
    main()
  File "/volume1/@appstore/icloud_photo_station/env/lib/python3.8/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python3.8/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python3.8/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python3.8/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/volume1/@appstore/icloud_photo_station/app/icloudpd/base.py", line 255, in main
    icloud = authenticate(
  File "/volume1/@appstore/icloud_photo_station/app/icloudpd/authentication.py", line 29, in authenticate
    icloud = pyicloud_ipd.PyiCloudService(
  File "/volume1/@appstore/icloud_photo_station/env/lib/python3.8/site-packages/pyicloud_ipd/base.py", line 193, in __init__
    self.authenticate()
  File "/volume1/@appstore/icloud_photo_station/env/lib/python3.8/site-packages/pyicloud_ipd/base.py", line 222, in authenticate
    os.mkdir(self._cookie_directory)
FileNotFoundError: [Errno 2] No such file or directory: '/var/services/homes/cmfrazier/.pyicloud'

I also know it's connecting to Apple as I get a code sent to my devices....I'm just unsure where to enter the code.
Thanks

First run: KeyError: 'albumNameEnc'

Package built just fine and installed to the NAS (DS418play, DSM 6.2.3-25426 Update 2)

I have 2FA on my account and ran the command in an SSH session, the 2FA worked, but the command then failed. This is the error I received when issuing the command within the SSH session:

$ python /volume1/@appstore/icloud_photo_station/app/icloudpd.py  --username '[email protected]' --password 'pass' --auto-delete --recent 10  --album 'Recents'
2020-10-09 09:44:21 DEBUG    Authenticating...
Traceback (most recent call last):
  File "/volume1/@appstore/icloud_photo_station/app/icloudpd.py", line 5, in <module>
    main()
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/volume1/@appstore/icloud_photo_station/app/icloudpd/base.py", line 261, in main
    photos = icloud.photos.albums[album]
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/pyicloud_ipd/services/photos.py", line 194, in albums
    folder['fields']['albumNameEnc']['value']).decode('utf-8')
KeyError: 'albumNameEnc'

I have tried no album, no dice. Please advise

iOS 11 - Photos in HEIC Format

Hi, since iOS 11 Photos are save as HEIC Format in iCloud and also downloaded as such.

ios11-heic

This is completly useless for windows / linux... Maybe convert themautomatically to jpg could be a solution?

I also opened this issue on the original repo...

Error: Gone (410)

Hello,

I'm getting some errors, and this is one of them: Gone (410).
I'm running it on my Synology Nas.

I've posted it also in the original project
icloud-photos-downloader#30

Downloading IMG_6425.MOV to /volume1/Photo/iPhone-Backup/Idan/2017/05/17:  14%|▏| 1065/7356 [1:43:07<267:23:09, 153.01s/it]Traceback (most recent call last):
  File "/volume1/@appstore/icloud_photo_station/app/download_photos.py", line 279, in <module>
    download()
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/volume1/@appstore/icloud_photo_station/app/download_photos.py", line 112, in download
    exists = download_photo(photo, size, force_size, album, progress_bar)
  File "/volume1/@appstore/icloud_photo_station/app/download_photos.py", line 252, in download_photo
    stream=True
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/requests/sessions.py", line 521, in get
    return self.request('GET', url, **kwargs)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/pyicloud/base.py", line 74, in request
    self._raise_error(response.status_code, response.reason)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/pyicloud/base.py", line 122, in _raise_error
    raise api_error
pyicloud.exceptions.PyiCloudAPIResponseError: Gone (410)

auto-delete isn`t working

Hi,

I'm getting that error when trying 'auto-delete' option

Signing in...
Looking up all photos...
Downloading 7338 original photos and videos to /volume1/Photo/iPhone-Backup/Idan/ ...
/volume1/Photo/iPhone-Backup/Idan/2010/04/07 already exists.: 100%|███████████████| 7338/7338 [04:04<00:00, 30.02it/s]
All photos have been downloaded!
Deleting any files found in 'Recently Deleted'...
Traceback (most recent call last):
  File "/volume1/@appstore/icloud_photo_station/app/download_photos.py", line 279, in <module>
    download()
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/volume1/@appstore/icloud_photo_station/env/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/volume1/@appstore/icloud_photo_station/app/download_photos.py", line 147, in download
    item = album.item(filename)
AttributeError: 'FileSystemAlbum' object has no attribute 'item'

minor typo

cd icloud_photos_downloader.git/docker

the .git is extra and causing an error if copy/pasted from the readme.

Thank you for your contribution!

Python on Synology DSM7

Hi

following update to Synology DSM7 which Python 3 built in I'm getting the below error.

-sh: /volume1/homes//env/bin/icloudpd: /volume1/homes//env/bin/python3: bad interpreter: No such file or directory

Any help would be greatly appreciated

Keychain with DSM 7.x

Summary

Sorry for another question but can't seem to work out how to use the system keychain to store password with the new build for DSM 7.x. Any assistance would be appreciated.

Context

Using icloud_photo_station-0.3.0.spk for DSM 7.x using task scheduler

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.