Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mspacek opened this issue Jun 13, 2011 · 1 comment
Closed
Milestone

Comments

@mspacek
Copy link
Contributor

mspacek commented Jun 13, 2011

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
Copy link
Contributor Author

mspacek commented Jun 13, 2011

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

@mspacek mspacek closed this as completed Jun 13, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant