git/list[1] front-page[2] threads[3] people[4] search[5] about
 

bug? Python traceback on git push

From
PWPedro Werneck <pjwerneck@gmail.com>
Date
May 30, 2012, 22:11 UTC
Message-ID
<CA+u+8CLcUtTCkWN2bZvR8JNmgnCoX+TwRK3_e64zWaV__jOo7A@mail.gmail.com>
git 1.7.9.5
I was pushing to a repository
push actually seems to have worked, but popped this weird python traceback
(tcf-env)werneck@werneck:~/devel/tcf-api/src/tcf$ git push
Warning: Permanently added 'bitbucket.org,207.223.240.181' (RSA) to
the list of known hosts.
Counting objects: 15, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 860 bytes, done.
Total 8 (delta 7), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/scripts/git/hooks/pre-receive",
line 9, in <module>
remote:     from bitbucket.apps.repo2.hooks import prehooks
remote:   File "/data/vol1/www/venvs/deployed/bitbucket/apps/repo2/hooks.py",
line 4, in <module>
remote:     from orochi.hooks import failonerror, HookError, HookManager
remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/orochi/hooks.py",
line 9, in <module>
remote:     from orochi.git import githook
remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/orochi/git.py",
line 23, in <module>
remote:     from orochi.lock import lock
remote:   File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/orochi/lock.py",
line 9, in <module>
remote:     from mercurial.lock import lock as mlock
remote: ImportError: No module named mercurial.lock
To git@bitbucket.org:titansgroup/tcf-api.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@bitbucket.org:titansgroup/tcf-api.git'
(tcf-env)werneck@werneck:~/devel/tcf-api/src/tcf$ git pull
Warning: Permanently added 'bitbucket.org,207.223.240.181' (RSA) to
the list of known hosts.
Already up-to-date.
(tcf-env)werneck@werneck:~/devel/tcf-api/src/tcf$ git push
Warning: Permanently added 'bitbucket.org,207.223.240.181' (RSA) to
the list of known hosts.
Counting objects: 15, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 860 bytes, done.
Total 8 (delta 7), reused 0 (delta 0)
remote: bb/acl: pjwerneck is allowed. accepted payload.
To git@bitbucket.org:titansgroup/tcf-api.git
   16b3b54..a50f671  master -> master
-- 
---
Pedro Werneck
Next: Jeff King
Message 1 of 2 in “bug? Python traceback on git push”
  1. Pedro WerneckMay 30, 2012
  2. Jeff KingMay 31, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.