I am writing a module in Python called silk.jira.create.create
In that module I'm trying to import the jira third party module that I installed with pip.
from jira import JIRA
When I run the module I see a Error:
ImportError: cannot import name 'JIRA' from 'jira'
looking in the debug console I can see PyCharm is confused and has imported the wrong module. ie
jira.__file__
'C:\\<full path>\\silk\\jira\\__init__.py' <- I'm expecting the third party here
If I run this outside of PyCharm with python -m it works (no ImportError).
Any ideas what's going on here?