ipython icon indicating copy to clipboard operation
ipython copied to clipboard

Crash when trying to open ipython

Open UltimateLobster opened this issue 3 years ago • 0 comments

Just tried to open ipython on my mac and it crashed. This happened consistently. I can try to work around this issue by updating python/use a different version of ipython. But the traceback recommended me to open an issue for you so here i am :)

Bellow is the traceback:

Python 3.10.1 (v3.10.1:2cd268a3a9, Dec  6 2021, 14:28:59) [Clang 13.0.0 (clang-1300.0.29.3)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.4.0 -- An enhanced Interactive Python. Type '?' for help.

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/bin/ipython", line 8, in <module>
    sys.exit(start_ipython())
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/IPython/__init__.py", line 124, in start_ipython
    return launch_new_instance(argv=argv, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/traitlets/config/application.py", line 846, in launch_instance
    app.start()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/IPython/terminal/ipapp.py", line 318, in start
    self.shell.mainloop()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/IPython/terminal/interactiveshell.py", line 680, in mainloop
    self.interact()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/IPython/terminal/interactiveshell.py", line 665, in interact
    code = self.prompt_for_code()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/IPython/terminal/interactiveshell.py", line 604, in prompt_for_code
    text = self.pt_app.prompt(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/prompt_toolkit/shortcuts/prompt.py", line 1020, in prompt
    return self.app.run(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/prompt_toolkit/application/application.py", line 891, in run
    return loop.run_until_complete(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 620, in run_until_complete
    future = tasks.ensure_future(future, loop=self)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/tasks.py", line 615, in ensure_future
    return _ensure_future(coro_or_future, loop=loop)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/tasks.py", line 634, in _ensure_future
    return loop.create_task(coro_or_future)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 433, in create_task
    task = tasks.Task(coro, loop=self, name=name)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 749, in call_soon
    handle = self._call_soon(callback, args, context)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 770, in _call_soon
    logger.info(f"Appending to ready {callback.__name__} with {[type(arg) for arg in args]}")
AttributeError: 'TaskStepMethWrapper' object has no attribute '__name__'

If you suspect this is an IPython 8.4.0 bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at [email protected]

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

Task was destroyed but it is pending!
task: <Task pending name='Task-1' coro=<Application.run_async() running at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/prompt_toolkit/application/application.py:630>>
sys:1: RuntimeWarning: coroutine 'Application.run_async' was never awaited

UltimateLobster avatar Aug 09 '22 08:08 UltimateLobster