Python jirashell: something got lost in translation

Toomas Vendelin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 1, 2023

I have installed jira-3.5.1-py3-none-any.whl in a virtual environment. By the way, there are two dependencies missing in the distribution, so I had to install them in an extra step:

pip install keyring IPython

I get the following in response to any legitimate command, like

i = jira.issue("XYZ-1234")

Unhandled exception in event loop:
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/Users/auser/deleteme/lib/python3.11/site-packages/prompt_toolkit/input/vt100.py", line 173, in callback_wrapper
callback()
File "/Users/auser/deleteme/lib/python3.11/site-packages/prompt_toolkit/application/application.py", line 698, in read_from_input
self.key_processor.process_keys()
File "/Users/auser/deleteme/lib/python3.11/site-packages/prompt_toolkit/key_binding/key_processor.py", line 272, in process_keys
self._process_coroutine.send(key_press)
File "/Users/auser/deleteme/lib/python3.11/site-packages/prompt_toolkit/key_binding/key_processor.py", line 187, in _process
self._call_handler(matches[-1], key_sequence=buffer[:])
File "/Users/auser/deleteme/lib/python3.11/site-packages/prompt_toolkit/key_binding/key_processor.py", line 322, in _call_handler
handler.call(event)
File "/Users/auser/deleteme/lib/python3.11/site-packages/prompt_toolkit/key_binding/key_bindings.py", line 126, in call
result = self.handler(event)
^^^^^^^^^^^^^^^^^^^
File "/Users/auser/deleteme/lib/python3.11/site-packages/IPython/terminal/shortcuts/__init__.py", line 404, in handle_return_or_newline_or_execute
return newline_or_execute_outer(shell)(event)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/auser/deleteme/lib/python3.11/site-packages/IPython/terminal/shortcuts/__init__.py", line 427, in newline_or_execute
status, indent = shell.check_complete(check_text)
^^^^^^^^^^^^^^^^^^^^

Exception 'NoneType' object has no attribute 'check_complete'
Press ENTER to continue...

 

After some fiddling with previous versions, I've found a workaround:

pip install IPython==8.4.0

Now things are back to normal with my setup, but the wonderful Atlassian developers should probably look into it.

1 answer

0 votes
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 2, 2023

Hi,

This library is not developed by Atlassian so their developers won't work on it. By the way i recommend to use the REST API developed by Atlassian instead of these library.

https://docs.atlassian.com/software/jira/docs/api/REST/9.3.0/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events