question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OverflowError when downloading photo

See original GitHub issue

I’m unable to successfully run the script. It logs a bunch of photo names from 2020 back until 2015, then crashes with an error. There must be a photo in my library with a created at date that is invalid in some way.

...
/home/user/iCloud/2015/06/11/2015_06_11_183510.jpg
/home/user/iCloud/2015/06/11/2015_06_11_183503.jpg
/home/user/iCloud/2015/06/11/2015_06_11_181757.jpg
/home/user/iCloud/2015/06/11/2015_06_11_181457.jpg
Traceback (most recent call last):
File "/usr/bin/icloudpd", line 11, in <module>
load_entry_point('icloudpd==1.7.0', 'console_scripts', 'icloudpd')()
File "/usr/lib/python3.8/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.8/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.8/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/icloudpd-1.7.0-py3.8.egg/icloudpd/base.py", line 562, in main
File "/usr/lib/python3.8/site-packages/icloudpd-1.7.0-py3.8.egg/icloudpd/base.py", line 380, in download_photo
File "/usr/lib/python3.8/site-packages/pytz/tzinfo.py", line 201, in fromutc
return (dt + inf[0]).replace(tzinfo=self._tzinfos[inf])
OverflowError: date value out of range

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
boredazfcukcommented, Nov 28, 2020

I’ve just pushed an updated image to Dockerhub of my container. It now includes a new line in the log to show the exact command used to launch icloudpd e.g.:

2020-11-28 17:04:21 INFO     iCloudPD launch command: /usr/bin/icloudpd --directory /home/user/iCloud --cookie-directory /config --folder-structure {:%Y/%m} --username user@notmyemail.com --set-exif-datetime --auto-delete  2>&1
0reactions
menkejcommented, Nov 29, 2020

Excellent! Do you want to submit a pull request? Otherwise I’d do this change for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What I am doing wrong by allowing user to download file from ...
I will try to be clear with my question. All of my media files are uploaded to AWS, I created a view that...
Read more >
Getting "Body buffer overflow" error when download... - Google ...
Hi, Need help our current issue, do note that this is working in the Apigee version 4.17.01 and we experienced the problem in...
Read more >
EXIF Overflow Error - PhotoELF HELP
An EXIF Overflow Error occurs when you are saving a particular photo that has too much data embedded in the EXIF portion of...
Read more >
OverFlow error while uploading file - QNAP NAS Community ...
Hello, During the backup upload from HBS to a owncloud server through webdav I ge the following error: Failed to upload file/folder from ......
Read more >
Error when run from source: OverflowError:modification time ...
I download python2.6 since some old libraries this software requires goes with only up to python2.6. But when I run python dicomplyer_app.py.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found