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

Sync fails with "TypeError: 'int' object has no attribute '__getitem__'" #80

Open
jacotec opened this issue Dec 30, 2017 · 3 comments
Open
Labels

Comments

@jacotec
Copy link

jacotec commented Dec 30, 2017

Hi,

I've discovered Lychee which looks like a good management tool for all the photos we sync automatically from our iPhones to a local Seafile server.

Unfortunately the very most photos do not sync due to an error. Affected are photos which are real photos taken by the iPhone camera while screenshots do sync.

ERROR;2017-12-30 21:02:09,348; lycheesync.lycheesyncer; could not add IMG_2497.JPG to album Marcos-IPhone-8Plus_2017
WARNING;2017-12-30 21:02:10,172; lycheesync.lycheemodel; invalid taketime: 2017:02:17 15:33:13 for /mnt/marco/IPhone/Marcos-IPhone-8Plus/2017/IMG_2498.JPG
ERROR;2017-12-30 21:02:10,172; lycheesync.lycheesyncer; 'int' object has no attribute '__getitem__'
Traceback (most recent call last):
  File "lycheesync/lycheesyncer.py", line 426, in sync
    photo = LycheePhoto(pid, self.conf, f, album)
  File "lycheesync/lycheemodel.py", line 214, in __init__
    self.exif.iso = value[0]
TypeError: 'int' object has no attribute '__getitem__'
@GustavePate
Copy link
Owner

Hi jacotec,

Sorry for the lag I have been very busy in the last month...
Could you provide me a photo that cause the problem ?

In theory it should be fixed in next release but I have currently no mean to test it and so to guarantee the fix is working.

@jacotec
Copy link
Author

jacotec commented Feb 17, 2018 via email

@donremo
Copy link

donremo commented May 28, 2018

Hi Gustave,
is this next release already avialable? I am facing the same issue as Gustave:

WARNING;2018-05-28 06:13:53,317; lycheesync.lycheesyncer; file at srcdir root won't be added to lychee, please move them in a subfolder: /media/hdd/LycheeImport
WARNING;2018-05-28 06:13:53,745; lycheesync.lycheemodel; invalid taketime: 2016:04:28 20:22:38 for /media/hdd/LycheeImport/201604 Maks !/IMG_0002.JPG
ERROR;2018-05-28 06:13:53,746; lycheesync.lycheesyncer; 'int' object has no attribute '__getitem__'
Traceback (most recent call last):
File "lycheesync/lycheesyncer.py", line 426, in sync
photo = LycheePhoto(pid, self.conf, f, album)
File "lycheesync/lycheemodel.py", line 214, in __init__
self.exif.iso = value[0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants