$ python -c "import zlib;zlib.crc32('a'*(1<<31))"
Traceback (most recent call last):
File "<string>", line 1, in <module>
OverflowError: size does not fit in an int
(venv.2.7.12) $ python -c "import zlib;zlib.crc32('a'*(1<<31))"
Traceback (most recent call last):
File "<string>", line 1, in <module>
OverflowError: size does not fit in an int
Some more testing:
I installed a virtualenv with python 2.7.12 and duplicity 0.7.09, but the problem still remains.
Then I ran the little test mentioned in https:/ /bugs.python. org/issue27130 which shows that zlib has a problem zipping files > 4Gb:
When looking at the timestamps of the comments, it seems this issue was fixed after 2.7.12 came out, so it will probably be in the next release.
I am currently running a backup with all files >4Gb excluded to see if that completes OK.
---
$ python --version
Python 2.7.6
$ python -c "import zlib;zlib. crc32(' a'*(1<< 31 - 1))"
$ python -c "import zlib;zlib. crc32(' a'*(1<< 31))"
Traceback (most recent call last):
File "<string>", line 1, in <module>
OverflowError: size does not fit in an int
---
$ . venv.2. 7.12/bin/ activate
(venv.2.7.12) $ python --version
Python 2.7.12
(venv.2.7.12) $ python -c "import zlib;zlib. crc32(' a'*(1<< 31 - 1))"
(venv.2.7.12) $ python -c "import zlib;zlib. crc32(' a'*(1<< 31))"
Traceback (most recent call last):
File "<string>", line 1, in <module>
OverflowError: size does not fit in an int