bzr commit throws ValueError (Insecure string pickle) if BZR_EDITOR isn't set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Expired
|
Undecided
|
Unassigned |
Bug Description
OS: Mac OS X 10.11.4 build 15E65
Python: 2.7.11 (installed via homebrew)
Description:
Attempting to do a commit via `bzr commit` fails, when I'd expect my default editor (vim) to display. This happens when BZR_EDITOR isn't set. If I explicitly set it, `bzr commit` works.
What happens:
bzr throws "ERROR: exceptions.
Steps to recreate:
$ export BZR_EDITOR=
$ bzr clone lp:charms/trusty/cassandra
$ cd cassandra
$ bzr merge lp:~stub/charms/trusty/cassandra/blamejuju
M testing/
All changes applied successfully.
$ bzr commit
Committing to: /Users/
modified testing/
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/local/
return the_callable(*args, **kwargs)
File "/usr/local/
ret = run(*run_argv)
File "/usr/local/
return self.run(
File "/usr/local/
return self._operation
File "/usr/local/
self.cleanups, self.func, *args, **kwargs)
File "/usr/local/
result = func(*args, **kwargs)
File "/usr/local/
lossy=lossy)
File "/usr/local/
result = unbound(self, *args, **kwargs)
File "/usr/local/
result = WorkingTree.
File "/usr/local/
result = unbound(self, *args, **kwargs)
File "/usr/local/
*args, **kwargs)
File "/usr/local/
lossy=lossy)
File "/usr/local/
self.cleanups, self.func, self, *args, **kwargs)
File "/usr/local/
result = func(*args, **kwargs)
File "/usr/local/
message = message_
File "/usr/local/
start_
File "/usr/local/
if not _run_editor(
File "/usr/local/
x = call(edargs + [filename])
File "/usr/local/
return Popen(*popenargs, **kwargs).wait()
File "/usr/local/
errread, errwrite)
File "/usr/local/
child_exception = pickle.loads(data)
File "/usr/local/
return Unpickler(
File "/usr/local/
dispatch[
File "/usr/local/
raise ValueError, "insecure string pickle"
ValueError: insecure string pickle
bzr 2.7.0 on python 2.7.11 (Darwin-
arguments: ['/usr/
plugins: bash_completion
fastimport[
netrc_
weave_
encoding: 'utf-8', fsenc: 'utf-8', lang: 'en_CA.UTF-8'
*** 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.
Workaround:
The first workaround I found was this:
$ bzr commit -m "[stub] Detect and workaround provisioning failures"
Committing to: /Users/
modified testing/
Committed revision 374.
Ultimately, though, it seems to be related to BZR_EDITOR not being set. This fixes the exception:
# BZR_EDITOR=`which vim` bzr commit
What should happen:
If BZR_EDITOR isn't set, it should fall back to whatever sane default there is or display a user-friendly error message prompting the user to configure one.
That seems pretty weird and certainly unheard of.
Are you sure 'bzr config editor' is not set ?
Failing that, bzr tries $VISUAL, $EDITOR '/usr/bin/editor', 'vi', 'pico', nano' and 'joe'
So it may me that your install does something weird with one of those ?