2

First time using jira-python, and I get this error when I run just a simple initialization.

from jira.client import JIRA
jira = JIRA()

Error:

File "C:\Python32\lib\site-packages\jira\resources.py", line 146 
if re.search(u"^User '(.*)' was not found in the system\.", error, re.U): 
SyntaxError: invalid syntax

Any ideas? I am running this with py32

skamsie
2,7566 gold badges42 silver badges50 bronze badges
asked Apr 9, 2014 at 16:45
2
  • Which jira-python version are you using? Commented Apr 9, 2014 at 16:47
  • jira-0.21 , installed using "pip install jira" Commented Apr 9, 2014 at 16:51

2 Answers 2

1

It looks very much like a bug.

They are claiming python 3 support, but there are u strings in the source code. Python 3 doesn't support u strings, all of the strings are unicode.

Consider submitting an issue to the python-jira bug tracker.

answered Apr 9, 2014 at 17:14
Sign up to request clarification or add additional context in comments.

Comments

0

I guess you already installed Jira in your CMD, like:

$ pip install jira

Then just try something like the following:

from jira import JIRA
jira = JIRA('https://jira.atlassian.com') #Project URL
issue = jira.issue('KEY-1')
print issue.fields.project.key # 'KEY'
print issue.fields.summary # 'Issue Summary'
answered Aug 14, 2021 at 9:09

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.