question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Console broken on current bundle

See original GitHub issue

🐛 Bug

upon opening the console…

traceback
---------------------------------------------------------------------------
Empty                                     Traceback (most recent call last)
/Applications/napari.app/Contents/Resources/app_packages/qtconsole/base_frontend_mixin.py in _dispatch(self=, msg={'buffers': [], 'content': {'banner': "Python 3.8.8 (default, Mar  6 2021, 04:04:59) \nT... enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.8'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}], 'implementation': 'ipython', 'implementation_version': '7.25.0', 'language_info': {'codemirror_mode': {'name': 'ipython', 'version': 3}, 'file_extension': '.py', 'mimetype': 'text/x-python', 'name': 'python', 'nbconvert_exporter': 'python', 'pygments_lexer': 'ipython3', 'version': '3.8.8'}, 'protocol_version': '5.3', 'status': 'ok'}, 'header': {'date': datetime.datetime(2021, 7, 1, 2, 34, 1, 80259, tzinfo=tzutc()), 'msg_id': '9e39513d-f9bf56e39d67df1adb30b4b0_1', 'msg_type': 'kernel_info_reply', 'session': '9e39513d-f9bf56e39d67df1adb30b4b0', 'username': 'talley', 'version': '5.3'}, 'metadata': {}, 'msg_id': '9e39513d-f9bf56e39d67df1adb30b4b0_1', 'msg_type': 'kernel_info_reply', 'parent_header': {'date': datetime.datetime(2021, 7, 1, 2, 34, 1, 77989, tzinfo=tzutc()), 'msg_id': '9e39513d-f9bf56e39d67df1adb30b4b0_0', 'msg_type': 'kernel_info_request', 'session': '9e39513d-f9bf56e39d67df1adb30b4b0', 'username': 'talley', 'version': '5.3'}})
    136         handler = getattr(self, '_handle_' + msg_type, None)
    137         if handler:
--> 138             handler(msg)
        handler = >
        msg = {'header': {'msg_id': '9e39513d-f9bf56e39d67df1adb30b4b0_1', 'msg_type': 'kernel_info_reply', 'username': 'talley', 'session': '9e39513d-f9bf56e39d67df1adb30b4b0', 'date': datetime.datetime(2021, 7, 1, 2, 34, 1, 80259, tzinfo=tzutc()), 'version': '5.3'}, 'msg_id': '9e39513d-f9bf56e39d67df1adb30b4b0_1', 'msg_type': 'kernel_info_reply', 'parent_header': {'msg_id': '9e39513d-f9bf56e39d67df1adb30b4b0_0', 'msg_type': 'kernel_info_request', 'username': 'talley', 'session': '9e39513d-f9bf56e39d67df1adb30b4b0', 'date': datetime.datetime(2021, 7, 1, 2, 34, 1, 77989, tzinfo=tzutc()), 'version': '5.3'}, 'metadata': {}, 'content': {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '7.25.0', 'language_info': {'name': 'python', 'version': '3.8.8', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.8.8 (default, Mar  6 2021, 04:04:59) \nType 'copyright', 'credits' or 'license' for more information\nIPython 7.25.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.8'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]}, 'buffers': []}
    139 
    140     def from_here(self, msg):

/Applications/napari.app/Contents/Resources/app_packages/qtconsole/jupyter_widget.py in _handle_kernel_info_reply(self=, rep={'buffers': [], 'content': {'banner': "Python 3.8.8 (default, Mar  6 2021, 04:04:59) \nT... enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.8'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}], 'implementation': 'ipython', 'implementation_version': '7.25.0', 'language_info': {'codemirror_mode': {'name': 'ipython', 'version': 3}, 'file_extension': '.py', 'mimetype': 'text/x-python', 'name': 'python', 'nbconvert_exporter': 'python', 'pygments_lexer': 'ipython3', 'version': '3.8.8'}, 'protocol_version': '5.3', 'status': 'ok'}, 'header': {'date': datetime.datetime(2021, 7, 1, 2, 34, 1, 80259, tzinfo=tzutc()), 'msg_id': '9e39513d-f9bf56e39d67df1adb30b4b0_1', 'msg_type': 'kernel_info_reply', 'session': '9e39513d-f9bf56e39d67df1adb30b4b0', 'username': 'talley', 'version': '5.3'}, 'metadata': {}, 'msg_id': '9e39513d-f9bf56e39d67df1adb30b4b0_1', 'msg_type': 'kernel_info_reply', 'parent_header': {'date': datetime.datetime(2021, 7, 1, 2, 34, 1, 77989, tzinfo=tzutc()), 'msg_id': '9e39513d-f9bf56e39d67df1adb30b4b0_0', 'msg_type': 'kernel_info_request', 'session': '9e39513d-f9bf56e39d67df1adb30b4b0', 'username': 'talley', 'version': '5.3'}})
    318             # finish handling started channels
    319             self._starting = False
--> 320             super()._started_channels()
        global super._started_channels = undefined
    321 
    322     def _started_channels(self):

/Applications/napari.app/Contents/Resources/app_packages/qtconsole/frontend_widget.py in _started_channels(self=)
    604             when the frontend is assigned an already listening KernelManager.
    605         """
--> 606         self.reset(clear=True)
        self.reset = >
        global clear = undefined
    607 
    608     #---------------------------------------------------------------------------

/Applications/napari.app/Contents/Resources/app_packages/qtconsole/frontend_widget.py in reset(self=, clear=True)
    654         # update output marker for stdout/stderr, so that startup
    655         # messages appear after banner:
--> 656         self._show_interpreter_prompt()
        self._show_interpreter_prompt = >
    657 
    658     def restart_kernel(self, message, now=False):

/Applications/napari.app/Contents/Resources/app_packages/qtconsole/jupyter_widget.py in _show_interpreter_prompt(self=, number=None)
    372         # If a number was not specified, make a prompt number request.
    373         if number is None:
--> 374             msg_id = self.kernel_client.execute('', silent=True)
        msg_id = undefined
        self.kernel_client.execute = >
        global silent = undefined
    375             info = self._ExecutionRequest(msg_id, 'prompt')
    376             self._request_info['execute'][msg_id] = info

/Applications/napari.app/Contents/Resources/app_packages/ipykernel/inprocess/client.py in execute(self=, code='', silent=True, store_history=True, user_expressions={}, allow_stdin=True)
    108                        allow_stdin=allow_stdin)
    109         msg = self.session.msg('execute_request', content)
--> 110         self._dispatch_to_kernel(msg)
        self._dispatch_to_kernel = >
        msg = {'header': {'msg_id': '9e39513d-f9bf56e39d67df1adb30b4b0_2', 'msg_type': 'execute_request', 'username': 'talley', 'session': '9e39513d-f9bf56e39d67df1adb30b4b0', 'date': datetime.datetime(2021, 7, 1, 2, 34, 1, 209574, tzinfo=datetime.timezone.utc), 'version': '5.3'}, 'msg_id': '9e39513d-f9bf56e39d67df1adb30b4b0_2', 'msg_type': 'execute_request', 'parent_header': {}, 'content': {'code': '', 'silent': True, 'store_history': True, 'user_expressions': {}, 'allow_stdin': True}, 'metadata': {}, 'tracker': }
    111         return msg['header']['msg_id']
    112 

/Applications/napari.app/Contents/Resources/app_packages/ipykernel/inprocess/client.py in _dispatch_to_kernel(self=, msg={'content': {'allow_stdin': True, 'code': '', 'silent': True, 'store_history': True, 'user_expressions': {}}, 'header': {'date': datetime.datetime(2021, 7, 1, 2, 34, 1, 209574, tzinfo=datetime.timezone.utc), 'msg_id': '9e39513d-f9bf56e39d67df1adb30b4b0_2', 'msg_type': 'execute_request', 'session': '9e39513d-f9bf56e39d67df1adb30b4b0', 'username': 'talley', 'version': '5.3'}, 'metadata': {}, 'msg_id': '9e39513d-f9bf56e39d67df1adb30b4b0_2', 'msg_type': 'execute_request', 'parent_header': {}, 'tracker': })
    178         loop = asyncio.get_event_loop()
    179         loop.run_until_complete(kernel.dispatch_shell(msg_parts))
--> 180         idents, reply_msg = self.session.recv(stream, copy=False)
        idents = undefined
        reply_msg = undefined
        self.session.recv = >
        stream = 
        global copy = undefined
    181         self.shell_channel.call_handlers_later(reply_msg)
    182 

/Applications/napari.app/Contents/Resources/app_packages/jupyter_client/session.py in recv(self=, socket=, mode=1, content=True, copy=False)
    807             socket = socket.socket
    808         try:
--> 809             msg_list = socket.recv_multipart(mode, copy=copy)
        msg_list = undefined
        socket.recv_multipart = >
        mode = 1
        copy = False
    810         except zmq.ZMQError as e:
    811             if e.errno == zmq.EAGAIN:

/Applications/napari.app/Contents/Resources/app_packages/ipykernel/inprocess/socket.py in recv_multipart(self=, flags=1, copy=False, track=False)
     30 
     31     def recv_multipart(self, flags=0, copy=True, track=False):
---> 32         return self.queue.get_nowait()
        self.queue.get_nowait = >
     33 
     34     def send_multipart(self, msg_parts, flags=0, copy=True, track=False):

/Applications/napari.app/Contents/Resources/Support/Python/Resources/lib/python3.8/queue.py in get_nowait(self=)
    196         raise the Empty exception.
    197         '''
--> 198         return self.get(block=False)
        self.get = >
        global block = undefined
    199 
    200     # Override these methods to implement other queue organizations

/Applications/napari.app/Contents/Resources/Support/Python/Resources/lib/python3.8/queue.py in get(self=, block=False, timeout=None)
    165             if not block:
    166                 if not self._qsize():
--> 167                     raise Empty
        global Empty = 
    168             elif timeout is None:
    169                 while not self._qsize():

Empty: 

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
goanpecacommented, Aug 25, 2021

Pinging @jaimergp

0reactions
tlambert03commented, Sep 6, 2021

Yep! Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rails console not working on server - Stack Overflow
Run rake rails:update:bin to get bin/bundle , bin/rails , and bin/rake . ... I'm trying to find out how to make cap not...
Read more >
How to Fix Content Package is No Longer Available Warzone ...
This is very easy to do. To fix this error, try power cycling your system by completely turning it off and then unplugging...
Read more >
The Most Common Xbox One Problems and How to Fix Them
The first thing you should do is make sure your console is updated with the most recent Microsoft patches. · If you are...
Read more >
broken game console lot for sale - eBay
Find great deals on eBay for broken game console lot. Shop with confidence. ... Nintendo Wii Spares Bundle Job Lot Some Working/ Some...
Read more >
Microsoft Xbox Series X Video Game Consoles for sale - eBay
Get the best deals on Microsoft Xbox Series X Video Game Consoles and upgrade your gaming setup with a new gaming console. Find...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found