Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

qtconsole --pure: "TypeError: string indices must be integers, not str" #520

Closed
mspacek opened this Issue · 1 comment

1 participant

@mspacek

Not that I ever want to run in pure Python mode, but I keep testing it and finding problems. Running ipython-qtconsole --pure I get this:

>>> a = 1
>>> a
>>> 

i.e. the value of a isn't printed. I get this in the parent terminal:

{'content': {'user_variables': [], 'code': 'a\n', 'user_expressions': {}, 'silent': False},
 'header': {'username': 'mspacek', 'msg_id': 1, 'session': '6ceda2c2-593f-4741-bd5c-8c8969a2288a'},
 'msg_type': 'execute_request',
 'parent_header': {}}
{'content': {'status': 'ok', 'payload': {}},
 'header': {'username': u'kernel', 'msg_id': 4, 'session': '4dcdb4cc-eef5-4c86-a915-ccfb26458ca9'},
 'msg_type': u'execute_reply',
 'parent_header': {'username': 'mspacek', 'msg_id': 1, 'session': '6ceda2c2-593f-4741-bd5c-8c8969a2288a'}}
Traceback (most recent call last):
  File "/home/mspacek/source/ipython/IPython/frontend/qt/base_frontend_mixin.py", line 102, in _dispatch
    handler(msg)
  File "/home/mspacek/source/ipython/IPython/frontend/qt/console/frontend_widget.py", line 372, in _handle_pyout
    self._append_plain_text(msg['content']['data']['text/plain'] + '\n')
TypeError: string indices must be integers, not str

Since I hadn't noticed it before, I think this may be a new problem from a recent commit.

@mspacek

Hm, don't know how this duplicate issue was created...

@mspacek mspacek closed this
@damianavila damianavila referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@damianavila damianavila referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.