'module' object has no attribute 'bzrcommitmessage'

Bug #110539 reported by Stuart Colville
2
Affects Status Importance Assigned to Milestone
publish-bot
Fix Released
Undecided
Christopher Armstrong

Bug Description

bzr: ERROR: exceptions.AttributeError: 'module' object has no attribute 'bzrcommitmessage'

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bzrlib/commands.py", line 650, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bzrlib/commands.py", line 612, in run_bzr
    ret = run(*run_argv)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bzrlib/commands.py", line 304, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bzrlib/builtins.py", line 2118, in run
    reporter=reporter)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bzrlib/workingtree_4.py", line 244, in commit
    result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 160, in commit
    revprops=revprops, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/bzrlib/commit.py", line 369, in commit
    'rev_id':self.rev_id})
  File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'bzrcommitmessage'

bzr 0.15.0 on python 2.5.0.final.0 (darwin)
arguments: ['/Library/Frameworks/Python.framework/Versions/Current/bin/bzr', 'commit', '-m', 'testing commit message']

Revision history for this message
Stuart Colville (muffinresearch) wrote :

I think this may be around some changes to the plugin hooks for 0.15

Revision history for this message
Christopher Armstrong (radix) wrote :

I'm using the commit hook with bzr 0.15 and with the currently documented setup in README and it still works. This error is the same as the one that occurs when ~/.bazaar/plugins doesn't have bzrcommitmessage.py, I think. Can you verify that you've symlinked or copied the file correctly?

Changed in publish-bot:
status: Unconfirmed → Needs Info
Revision history for this message
Stuart Colville (muffinresearch) wrote :

Ok ignore this. Interestingly I found the cause was due to using a path in locations.conf via a volume on my mac instead of the path that is symlinked into the volume. Maybe this is something to do with how Python was seeing the path I'm not sure.

Revision history for this message
Stuart Colville (muffinresearch) wrote :

Changed to rejected as this was a path issue.

Changed in publish-bot:
status: Needs Info → Rejected
Revision history for this message
Stuart Colville (muffinresearch) wrote :

Actually the problem was because the function is called "send_commit" and it should be "post_commit" Changing this and everything works as expected.

Changed in publish-bot:
status: Rejected → Unconfirmed
Revision history for this message
Stuart Colville (muffinresearch) wrote :

That's the main function call in bzrcommitmessage.py that's wrong in case I wasn't clear

Revision history for this message
Christopher Armstrong (radix) wrote :

Oh, thanks. I've fixed the example in README.txt in trunk.

Changed in publish-bot:
assignee: nobody → radix
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.