-
Notifications
You must be signed in to change notification settings - Fork 58
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 3 incompatibility: passing custom format #73
Comments
I encounter the same issue unfortunately. When I make this change:
Things start to move a bit. At least there is some output. This works: Although the output starts with: b' Any python guru that can solve this??? When %labels is added to the format string, the output states;
How to add, '%issue type' and '%prio-customer' to the format string? With %prio-customer, the output will be: And with '%issue type', the output is similar: It would be very useful to have the --format argument working for python > 3.4! |
Having similar issue:
|
passing custom format leads to an error in python3:
@ $ jira-cli view -6029 --format="%key"
Traceback (most recent call last):
File "/venv/bin/jira-cli", line 11, in
sys.exit(cli())
File "/venv/lib/python3.6/site-packages/jiracli/interface.py", line 272, in cli
return post_args.cmd(jira, post_args).execute()
File "/venv/lib/python3.6/site-packages/jiracli/processor.py", line 30, in execute
return self.eval()
File "/venv/lib/python3.6/site-packages/jiracli/processor.py", line 75, in eval
comments_only=self.args.comments_only
File "/venv/lib/python3.6/site-packages/jiracli/bridge/init.py", line 68, in format_issue
ret_str = ret_str.replace(k, issue.setdefault(v.lower(),"")).encode('utf-8')
TypeError: a bytes-like object is required, not 'str'
The text was updated successfully, but these errors were encountered: