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

immich v1.105 not compatibly with tool #4

Closed
robin2405 opened this issue May 31, 2024 · 6 comments
Closed

immich v1.105 not compatibly with tool #4

robin2405 opened this issue May 31, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@robin2405
Copy link

I get this error

Migrating favorites
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/robin/.local/lib/python3.10/site-packages/ppim-migrator/main.py", line 24, in
cli()
File "/home/robin/.local/lib/python3.10/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/home/robin/.local/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/robin/.local/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/robin/.local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/robin/.local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/robin/.local/lib/python3.10/site-packages/ppim-migrator/main.py", line 20, in migrate_favorites
migrator.migrate_favorites()
File "/home/robin/.local/lib/python3.10/site-packages/ppim-migrator/migrator.py", line 42, in migrate_favorites
matching_uids = self._get_matching_uids(photo_file_list)
File "/home/robin/.local/lib/python3.10/site-packages/ppim-migrator/migrator.py", line 79, in _get_matching_uids
items: list = search_result.get("assets").get("items")
AttributeError: 'NoneType' object has no attribute 'get'

@v411e
Copy link
Owner

v411e commented May 31, 2024

Whoops, thanks for reporting. Will look into it 👍

@v411e v411e self-assigned this May 31, 2024
@v411e v411e added the bug Something isn't working label May 31, 2024
@v411e
Copy link
Owner

v411e commented Jun 11, 2024

@robin2405 Could you try v0.0.3 and check if the issue got resolved? I updated the API to match the latest Immich API spec and a first test on my side was successful.

@robin2405
Copy link
Author

i have now different error

Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/robin/.local/lib/python3.10/site-packages/ppim-migrator/main.py", line 2, in
from .migrator import Migrator
File "/home/robin/.local/lib/python3.10/site-packages/ppim-migrator/migrator.py", line 100
f"Added a match: {filename} (pp: {photo_file}, im: {
^
SyntaxError: unterminated string literal (detected at line 100)

@v411e
Copy link
Owner

v411e commented Jun 12, 2024

Oh, looks like autopep8 introduced some syntax errors with misplaced line-breaks during auto-format. Should be fixed now. (v0.0.4)

@robin2405
Copy link
Author

0.0.4 worked with 1.105 i check also 1.106 that is not working with 0.0.4

@v411e
Copy link
Owner

v411e commented Jun 22, 2024

Alright, thanks for checking! Then I'll close this issue

@v411e v411e closed this as completed Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants