authentification token atlassian

karim -Atlassway-
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
April 3, 2020

hello Team

 

I used this for authentification 

#!/usr/bin/python3.6

# library modules
from jira import JIRA

user = 'karim.belhadj@ovyka.com'
apikey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
server = 'https://ist-efr.atlassian.net'

options = {
'server': server
}

jira = JIRA(options, basic_auth=(user,apikey) )


# print all of the project keys as an example
for project in jira.projects():
print(project.key)

 

 

I get this error  cannot import name 'JIRA' from 'jira' 

 

Thank you

1 answer

0 votes
Carlos Garcia Navarro
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 3, 2020

Hi @karim -Atlassway-

I wonder if this article may help find the root of your problem: https://github.com/pycontribs/jira/issues/320

From the aforementioned article:

"There are a couple things that could be happening here.
A. There is a clashing jira.py
B. The python jira module is not installed at all
C. The python jira module is not installed for the correct version"

You can find more details regarding the problems and solutions in the article. I hope it helps.

Carlos

Suggest an answer

Log in or Sign up to answer