Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script Crashes #11

Closed
kfoxton opened this issue Sep 5, 2024 · 2 comments
Closed

Script Crashes #11

kfoxton opened this issue Sep 5, 2024 · 2 comments

Comments

@kfoxton
Copy link

kfoxton commented Sep 5, 2024

Hi,

I recently imported my external library of photos, which I have both JPG and RAW, of each image, and was hoping to use your script to stack them together, but it seems like it is failing in counting? This happens after a few minutes of no output in the console: The below is the output:

/script # ./immich_auto_stack.py
2024-09-05 17:58:56,229 - INFO - ============== INITIALIZING ==============
2024-09-05 17:58:56,229 - INFO - ⬇️ Fetching assets:
2024-09-05 17:58:56,230 - INFO - Page size: 1000
2024-09-05 18:03:03,806 - INFO - Pages: None
2024-09-05 18:03:03,806 - INFO - Assets: 157831
Traceback (most recent call last):
File "/script/./immich_auto_stack.py", line 226, in
main()
File "/script/./immich_auto_stack.py", line 200, in main
children_id = [x['id'] for x in stack[1:] if x['stackCount'] == None ]
~^^^^^^^^^^^^^^
KeyError: 'stackCount'

Running as a Docker image, on UnRaid. Immich server version 1.113.0

@kfoxton
Copy link
Author

kfoxton commented Sep 5, 2024

Just want to add, prior to adding my external library, and only having 20K pictures in Immich, the script was able to run without issue.

@tenekev
Copy link
Owner

tenekev commented Sep 6, 2024

We know of the issue. It was introduced in the latest update because they refactored the whole stack functionality. The discussion is over in issue #10 so I'm going to close this. Basically, I'll update the script as soon as I can.

@tenekev tenekev closed this as completed Sep 6, 2024
Majorfi added a commit to Majorfi/immich-auto-stack that referenced this issue Sep 11, 2024
Linked to tenekev#10 and tenekev#11

I ran into the same issue and gave it a shot. I am no python expert, so tried to make it work with the new `stack` endpoint as I could and tested it on my library (10k photos) with success.

Happy to answer any questions!
Thank yoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants