Comments (3)
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:
- Install the Python 3.9 package in package manager
- Create a Python 3.9 virtual environment in the '/volume1/@appstore/icloud_photo_station' folder.
- 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.
Just wanted to add some detail. Mostly so I can remember it the next time...! :)
-
install Python 3.9 (from the Synology Package Station)
-
install icloud_photo_station-0.3.0.spk package manually from skarppi / icloud_photo_station
-
ssh into the Synology box
-
change ownership of the folder:
sudo chown -R icloud_photo_station:users /volume1/\@appstore/icloud_photo_station/
-
change into the folder:
cd /volume1/\@appstore/icloud_photo_station
-
recursively fix permissions of folders and files:
sudo find . -type d -exec chmod 0755 {} \;
sudo find . -type f -exec chmod 0644 {} \;
-
move the old environment:
mv env env.old
-
make a new environment with Python3.9:
/volume1/\@appstore/Python3.9/usr/bin/python -m venv env
-
change into the environment:
source /volume1/\@appstore/icloud_photo_station/env/bin/activate
-
get the dependencies list:
curl -O https://raw.githubusercontent.com/skarppi/icloud_photo_station/master/requirements.txt
-
install the dependencies:
pip install -r requirements.txt
-
test and activate 2FA:
python /volume1/\@appstore/icloud_photo_station/app/icloudpd.py --list-albums
-
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.
It looks like backports.zoneinfo
isn't even needed anymore with the default Python 3.8 available in current DSM 7.2-64570. So I removed the whole dependency from the latest 0.4.1 release. Seems to be working now with both the Python 3.8 and 3.9 versions.
from icloud_photo_station.
Related Issues (20)
- Problem building HOT 3
- PyiCloudAPIResponseError HOT 4
- No longer gives the choice of receiving a code (device or sms) HOT 2
- linux-amd64.dynamic: Permission denied
- Failed to execv() /tmp/staticx-JhBoMc/icloudpd-1.17.3-linux-amd64.dynamic: Permission denied
- ImportError: No module named click HOT 1
- First run: KeyError: 'albumNameEnc' HOT 3
- Python on Synology DSM7 HOT 1
- Keychain with DSM 7.x HOT 1
- Help with two factor authencation HOT 1
- KeyError: 'albumNameEnc' - DMS6 HOT 1
- auto-delete isn`t working HOT 1
- iOS 11 - Photos in HEIC Format HOT 1
- Password Special Characters HOT 1
- Is this still supported? HOT 2
- Removal HOT 1
- minor typo HOT 1
- AttributeError: 'NoneType' object has no attribute 'startswith' HOT 2
- Issue with authentication HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icloud_photo_station.