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 console error in Spyder 3.0.0b3

See original GitHub issue

Description of your problem

When I want to call any function and type the left bracket in ipython console, the error message will prompt in internal console. The error message is as below:

Traceback (most recent call last):
  File "/usr/local/opt/pyenv/versions/3.5.1/lib/python3.5/site-packages/qtconsole/base_frontend_mixin.py", line 163, in _dispatch
    handler(msg)
  File "/usr/local/opt/pyenv/versions/3.5.1/lib/python3.5/site-packages/spyderlib/widgets/ipython.py", line 377, in _handle_inspect_reply
    signature = self.get_signature(content)
  File "/usr/local/opt/pyenv/versions/3.5.1/lib/python3.5/site-packages/spyderlib/widgets/ipython.py", line 296, in get_signature
    text = ANSI_OR_SPECIAL_PATTERN.sub('', text)
TypeError: expected string or bytes-like object

What steps will reproduce the problem?

  1. For example, we try to call the print('test').
  2. To input the print(.
  3. the error message will be prompt in the internal console.

How could I solve this problem?

Versions and main components

  • Spyder Version: Spyder 3.0.0b3
  • Python Version: 3.5.1 64bits (pyenv)
  • Operating system: Mac 10.11.5

Dependencies

jedi >=0.8.1 : 0.9.0 (OK) matplotlib >=1.0: 1.5.1 (OK) nbconvert >=4.0 : 4.2.0 (OK) numpy >=1.7 : 1.11.0 (OK) pandas >=0.13.1 : 0.18.1 (OK) pep8 >=0.6 : 1.7.0 (OK) psutil >=0.3 : 4.2.0 (OK) pyflakes >=0.6.0: 1.2.3 (OK) pygments >=1.6 : 2.1.3 (OK) pylint >=0.25 : 1.5.6 (OK) qtconsole >=4.0 : 4.2.1 (OK) rope >=0.9.4 : 0.9.4-1 (OK) sphinx >=0.6.6 : 1.4.3 (OK) sympy >=0.7.3 : 1.0 (OK)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Jun 11, 2016

I can confirm this problem was fixed in IPython 5.0 beta3.

@iamsc, please update with this command:

pip install --pre -U ipython
0reactions
iamsccommented, Jun 14, 2016

It works!!! Thanks~

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spyder 4.2.5 - iPython Console Not Working With Python 3.8.0
And every time I execute the command pip install spyder-kernels. It show the message: Fatal error in launcher: Unable to create process using...
Read more >
spyder - PyPI
Harness the power of as many IPython consoles as you like with full workspace and debugging support, all within the flexibility of a...
Read more >
Common Illnesses — Spyder 5 documentation
If you receive the message An error occurred while starting the kernel in the IPython Console, Spyder was unable to launch a new...
Read more >
What's New In Python 3.11 — Python 3.11.1 documentation
This article explains the new features in Python 3.11, compared to 3.10. For full details, see the ... PEP 657: Fine-grained error locations...
Read more >
由于种种原因spyder突然用不了了,于是进行了如下的神操作
3.0.0b2, 3.0.0b3, 3.0.0b4, 3.0.0b5, 3.0.0b6, 3.0.0b7, 3.0.0, 3.0.1, ... ERROR: pyls-spyder 0.3.2 requires python-language-server>=0.36.2, ...
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