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.

ipython exclusively crashes

See original GitHub issue

ipython version - 7.12 python version - 3.6, 3.7, 3.8 ubuntu 18.04 ipython and all modules installed with pip in virtualenv python compiled by myself with ./configure --prefix=path; make; make test; make install

Taceback does not mention any part of my code. When running my script: python script.py no errors occur.

Error is trigered by calling a class method. See line 181 in here

traceback

Traceback (most recent call last):
File "MYPATH/lib/python3.8/site-packages/jedi/cache.py", line 109, in wrapper
return dct[key]
KeyError: ((), frozenset())

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/MYPATH/bin/ipython", line 10, in <module>
sys.exit(start_ipython())
File "/MYPATH/lib/python3.8/site-packages/IPython/__init__.py", line 126, in start_ipython
return launch_new_instance(argv=argv, **kwargs)
File "MYPATH/lib/python3.8/site-packages/traitlets/config/application.py", line 664, in launch_instance
app.start()
File "MYPATH/lib/python3.8/site-packages/IPython/terminal/ipapp.py", line 356, in start
self.shell.mainloop()
File "MYPATH/lib/python3.8/site-packages/IPython/terminal/interactiveshell.py", line 558, in mainloop
self.interact()
File "MYPATH/lib/python3.8/site-packages/IPython/terminal/interactiveshell.py", line 541, in interact
code = self.prompt_for_code()
File "MYPATH/lib/python3.8/site-packages/IPython/terminal/interactiveshell.py", line 467, in prompt_for_code
text = self.pt_app.prompt(
File "MYPATH/lib/python3.8/site-packages/prompt_toolkit/shortcuts/prompt.py", line 997, in prompt
return self.app.run()
File "MYPATH/lib/python3.8/site-packages/prompt_toolkit/application/application.py", line 810, in run
return loop.run_until_complete(self.run_async(pre_run=pre_run))
File "/home/jregalado/Software/myPython/snakes/python3.8/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "MYPATH/lib/python3.8/site-packages/prompt_toolkit/application/application.py", line 777, in run_async
return await _run_async2()
File "MYPATH/lib/python3.8/site-packages/prompt_toolkit/application/application.py", line 765, in _run_async2
await self.cancel_and_wait_for_background_tasks()
File "MYPATH/lib/python3.8/site-packages/prompt_toolkit/application/application.py", line 862, in cancel_and_wait_for_background_tasks
await task
File "MYPATH/lib/python3.8/site-packages/prompt_toolkit/buffer.py", line 1854, in new_coroutine
await coroutine(*a, **kw)
File "MYPATH/lib/python3.8/site-packages/prompt_toolkit/buffer.py", line 1683, in async_completer
async for completion in self.completer.get_completions_async(
File "MYPATH/lib/python3.8/site-packages/prompt_toolkit/completion/base.py", line 269, in get_completions_async
async for completion in completer.get_completions_async(
File "MYPATH/lib/python3.8/site-packages/prompt_toolkit/completion/base.py", line 196, in get_completions_async
for item in self.get_completions(document, complete_event):
File "MYPATH/lib/python3.8/site-packages/IPython/terminal/ptutils.py", line 90, in get_completions
yield from self._get_completions(body, offset, cursor_position, self.ipy_completer)
File "MYPATH/lib/python3.8/site-packages/IPython/terminal/ptutils.py", line 100, in _get_completions
for c in completions:
File "MYPATH/lib/python3.8/site-packages/IPython/core/completer.py", line 438, in _deduplicate_completions
completions = list(completions)
File "MYPATH/lib/python3.8/site-packages/IPython/core/completer.py", line 1815, in completions
for c in self._completions(text, offset, _timeout=self.jedi_compute_type_timeout/1000):
File "MYPATH/lib/python3.8/site-packages/IPython/core/completer.py", line 1872, in _completions
signature = _make_signature(jm)
File "MYPATH/lib/python3.8/site-packages/IPython/core/completer.py", line 989, in _make_signature
return '(%s)'% ', '.join([f for f in (_formatparamchildren(p) for p in completion.params) if f])
File "MYPATH/lib/python3.8/site-packages/jedi/cache.py", line 111, in wrapper
result = method(self, *args, **kwargs)
File "MYPATH/lib/python3.8/site-packages/jedi/api/classes.py", line 421, in params
warnings.warn(
DeprecationWarning: Deprecated since version 0.16.0. Use get_signatures()[...].params

If you suspect this is an IPython 7.12.0 bug, please report it at:
https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@python.org

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
   %config Application.verbose_crash=True

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
aterenincommented, Jan 14, 2021

Having the same issue, and using jedi==0.14.1 fixes it.

1reaction
jniediekcommented, Jan 28, 2021

I was having the same issue, for me using jedi version 0.18.0 fixed it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IPython Crashes when Running Command - Stack Overflow
When I execute a command in IPython, it returns the result of the command but with an error. Later IPython exits.
Read more >
Python keeps crashing after using input() : r/IPython - Reddit
I've already run into a major problem - everytime I use the input() function in iPython (Python 3.6.0, Anaconda 4.3.0), the windows window...
Read more >
What's the cause of this strange crash behavior related to ...
The crashes occurs most often when we run a notebook and ask the notebook to do a bit too much plotting. It's impossible...
Read more >
Jupyter Notebook crashed, so I deployed my Data Science ...
Shifted between Anaconda and ran Jupyter via the Command Terminal; Change the laptop Settings to “Best Performance” from “Best Battery Life”; Only run...
Read more >
IPython reference — IPython 3.2.1 documentation
This behavior is different from standard Python, which when called as python -i will only execute one file and ignore your configuration setup....
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