Giter Club home page Giter Club logo

Comments (3)

matthewroche avatar matthewroche commented on July 3, 2024 1

I'm not sure if this package is still maintained, but I had the same issue. As the error trace suggests, the issue appears to be installing the 'backports.zoneinfo' package. It turns out this isn't required in python 3.9, so my workaround was:

  1. Install the Python 3.9 package in package manager
  2. Create a Python 3.9 virtual environment in the '/volume1/@appstore/icloud_photo_station' folder.
  3. Manually install the packages from requirements.txt in this venv

Running icloudpd.py within the new Python 3.9 venv works perfectly for me.

from icloud_photo_station.

transilluminate avatar transilluminate commented on July 3, 2024

Just wanted to add some detail. Mostly so I can remember it the next time...! :)

  1. install Python 3.9 (from the Synology Package Station)

  2. install icloud_photo_station-0.3.0.spk package manually from skarppi / icloud_photo_station

  3. ssh into the Synology box

  4. change ownership of the folder:
    sudo chown -R icloud_photo_station:users /volume1/\@appstore/icloud_photo_station/

  5. change into the folder:
    cd /volume1/\@appstore/icloud_photo_station

  6. recursively fix permissions of folders and files:
    sudo find . -type d -exec chmod 0755 {} \;
    sudo find . -type f -exec chmod 0644 {} \;

  7. move the old environment:
    mv env env.old

  8. make a new environment with Python3.9:
    /volume1/\@appstore/Python3.9/usr/bin/python -m venv env

  9. change into the environment:
    source /volume1/\@appstore/icloud_photo_station/env/bin/activate

  10. get the dependencies list:
    curl -O https://raw.githubusercontent.com/skarppi/icloud_photo_station/master/requirements.txt

  11. install the dependencies:
    pip install -r requirements.txt

  12. test and activate 2FA:
    python /volume1/\@appstore/icloud_photo_station/app/icloudpd.py --list-albums

  13. deactivate the environment:
    deactivate

Now should work from the Synology Scheduler ... :)

It may be useful to have a script in your home folder to trigger 2FA when needed (edit for your login details):

Install 'SynoCLI File Tools' for nano editor, then: nano ~/trigger2FA.sh, paste:

#!/bin/bash
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>' \
  --list-albums

Change the permissions:chmod 700 ~/trigger2FA.sh

Run: ~/trigger2FA.sh

from icloud_photo_station.

Related Issues (19)

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.