Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python error on server-side hook #2

Open
sebbes opened this issue Jan 14, 2013 · 4 comments
Open

Python error on server-side hook #2

sebbes opened this issue Jan 14, 2013 · 4 comments

Comments

@sebbes
Copy link

sebbes commented Jan 14, 2013

Hi,

not sure anyone is still maintaining this project. I want to use the server-side hook to check against jira. When I enable the hook locally it works fine, when I try to push into the remote report I get the following error:

remote: /usr/lib/python2.6/site-packages/SOAPpy/wstools/XMLSchema.py:2641: DeprecationWarning: object.init() takes no parameters
remote: tuple.init(self, args)
remote: Traceback (most recent call last):
remote: File "hooks/update", line 619, in
remote: exit (main())
remote: File "hooks/update", line 74, in main
remote: return handle_update()
remote: File "hooks/update", line 185, in handle_update
remote: (jira_soap_client, jira_auth) = jira_start_session(jira_url)
remote: File "hooks/update", line 329, in jira_start_session
remote: auth = jira_login(jira_url, soap_client)
remote: File "hooks/update", line 349, in jira_login
remote: auth = jira_explicit_login(soap_client)
remote: File "hooks/update", line 388, in jira_explicit_login
remote: sys.stdin = open('/dev/tty', 'r')
remote: IOError: [Errno 6] No such device or address: '/dev/tty'
remote: error: hook declined to update refs/heads/master

Environment: server - OS: centos 6.3 (64 bit), python 2.6.6, client OS - Fedora 17 (64 bit), python 2.7.3

Appreciate if anyone could hint I went wrong.

regards,
Sebastian

@stephenreid
Copy link

Hi Sebastian,

Check out the pull request as it allows access from the keychain.

The /dev/tty hack may not work if with the hooks running server side.

@joyjit
Copy link
Owner

joyjit commented May 31, 2013

Sorry, I am not maintaining it (it was a temporary experiment for me).
But I see from github there are quite a few forks, so maybe someone else is actively maintaining a fork...
https://github.com/joyjit/git-jira-hook/network

@dlai0001
Copy link

I was able to get around the SOAPpy problem by doing

pip install soappy

However, now I"m running into
git -c diff.mnemonicprefix=false -c core.quotepath=false commit -q -F /var/folders/9p/lzwfy5x13w3f7ml9wnlxc13c0000gq/T/SourceTreeTemp.0sRhg4
Traceback (most recent call last):
File ".git/hooks/commit-msg", line 619, in
exit (main())
File ".git/hooks/commit-msg", line 65, in main
logging.basicConfig(level=loglevel, format=myname + ":%(levelname)s: %(message)s")
NameError: global name 'loglevel' is not defined

@bodiam
Copy link

bodiam commented Sep 26, 2013

Hi dlai0001,

Is seems you have to set the loglevel yourself, around line 10 or something, to set it to INFO/DEBUG/etc.

Hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants