Failed to import extension when using jira module
Created originally on Bitbucket by knjmooney (Kevin Mooney)
When launching thg, I get a failed to import extension error from extensions that import the jira module. Fortunately thg still launches and I'm able to use the extension as a custom tool.
#!bash
-> tree ~/bin/my-ext
/home/kevmoo02/bin/my-ext
├── __init__.py
└── __init__.pyc
0 directories, 2 files
-> cat ~/bin/my-ext/__init__.py
from jira.client import JIRA
from mercurial import ui, cmdutil
cmdtable = {}
command = cmdutil.command(cmdtable)
@command('my-ext',
[],
None)
def myext(ui, repo, **opts):
ui.prompt("Did it work?")
-> grep my-ext -B 1 ~/.hgrc
[extensions]
myext=~/bin/my-ext
-> thg
*** failed to import extension myext from ~/bin/my-ext: <unloaded module 'RLock'> object is not callable