Overflow error: requested number of bytes is more than a Python string can hold
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
New
|
Undecided
|
Unassigned |
Bug Description
I added (bzr add *.ova) a 2.2 GB virtual machine to my bzr repository.
Then I issued bzr commit -m 'added vm to repository'
I expected the commit to work
I received the following error (the error did not occur after I issued bzr rm ---keep vm/vm.ova
$ bzr commit -m 'added vm'
Committing to: /path/to/
added vm
added vm/somescript.sh
added vm/vm.ova
added vm/manual.org
aborting commit write group: <exceptions.
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib64/
return the_callable(*args, **kwargs)
File "/usr/lib64/
ret = run(*run_argv)
File "/usr/lib64/
return self.run_
File "/usr/lib64/
return self._operation
File "/usr/lib64/
return _do_with_cleanups(
File "/usr/lib64/
result = func(*args, **kwargs)
File "/usr/lib64/
exclude=
File "/usr/lib64/
result = unbound(self, *args, **kwargs)
File "/usr/lib64/
result = WorkingTree3.
File "/usr/lib64/
result = unbound(self, *args, **kwargs)
File "/usr/lib64/
possible_
File "/usr/lib64/
possible_
File "/usr/lib64/
return _do_with_cleanups(
File "/usr/lib64/
result = func(*args, **kwargs)
File "/usr/lib64/
self.
File "/usr/lib64/
for file_id, path, fs_hash in self.builder.
File "/usr/lib64/
text = file_obj.read()
OverflowError: requested number of bytes is more than a Python string can hold
bzr 2.1.1 on python 2.4.3 (Linux-
arguments: ['/usr/bin/bzr', 'commit', '-m', 'added vm']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
launchpad /usr/lib64/
netrc_
news_merge /usr/lib64/
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
That's an interesting way to make a 32-bit python fail. The basic issue though, is that it's not sensible to version control huge files in this manner, see the master bug for more information.