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

Python console stops running after first execution #2308

Closed
Nodd opened this issue Apr 8, 2015 · 7 comments
Closed

Python console stops running after first execution #2308

Nodd opened this issue Apr 8, 2015 · 7 comments

Comments

@Nodd
Copy link
Contributor

Nodd commented Apr 8, 2015

Description

  • What steps will reproduce the problem?
    1. enter anythong that raises an exception in the standard python console, like 1/0
  • What is the expected output? What do you see instead?
    The python interpreter stops running, I have to chick on the green arrow to restart it.
  • Please provide any additional information below
    Here is what I see in the console once it has stopped:
Python 2.7.9 (default, Dec 11 2014, 04:42:00) 
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 1/0
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ZeroDivisionError: integer division or modulo by zero
>>> 

There is nothin in the internal console

Version and main components

  • Spyder Version: 3.0.0dev
  • Python Version: 2.7.9
  • Qt Version : 4.8.6, PyQt4 (API v2) 4.11.3 on Linux

Optional dependencies

pyflakes >=0.5.0: 0.8.1 (OK)
pep8 >=0.6 : 1.6.2 (OK)
pygments >=1.6 : 2.0.2 (OK)
IPython >=3.0 : 3.0.0 (OK)
zmq >=13.0.0 : 14.5.0 (OK)
pandas >=0.13.1 : 0.16.0 (OK)
sphinx >=0.6.6 : 1.2.3 (OK)
psutil >=0.3 : 2.2.1 (OK)
rope >=0.9.2 : 0.10.2 (OK)
jedi >=0.8.1 : 0.8.1 (OK)
matplotlib >=1.0: 1.4.3 (OK)
sympy >=0.7.3 : 0.7.6 (OK)
pylint >=0.25 : 1.4.3 (OK)

@Nodd Nodd changed the title Console stops running after exception Console stops running Apr 8, 2015
@Nodd
Copy link
Contributor Author

Nodd commented Apr 8, 2015

Actually, just pressing enter stops the interpreter, no need for an exception.

@goanpeca
Copy link
Member

Indeed I am getting the same on a similar configuration

@ccordoba12 ccordoba12 changed the title Console stops running Python console stops running when exceptions are generated Apr 12, 2015
@Nodd Nodd changed the title Python console stops running when exceptions are generated Python console stops running after first line Apr 12, 2015
@ccordoba12 ccordoba12 changed the title Python console stops running after first line Python console stops running after first exception Apr 20, 2015
@ccordoba12
Copy link
Member

I can't reproduce this error using the latest Anaconda.

@ccordoba12
Copy link
Member

@Nodd and @goanpeca, I think you'll have to help me to find its cause :-)

@Nodd Nodd changed the title Python console stops running after first exception Python console stops running after first execution May 27, 2015
@SylvainCorlay
Copy link
Member

Similar problem here: the python interpreter crashes on any code execution.

@ccordoba12
Copy link
Member

@SylvainCorlay, on which platform, Qt and Python versions?

@SylvainCorlay
Copy link
Member

Version and main components

  • Spyder Version: 3.0.0dev 47daafb (tip of master as of now)
  • Python Version: 2.7.9
  • Qt Versions: 4.8.6, PyQt4 (API v2) 4.11.3 on Linux

Optional dependencies

pyflakes >=0.5.0:  0.5.0 (OK)
pep8 >=0.6      :  1.6.2 (OK)
pygments >=1.6  :  2.0.2 (OK)
IPython >=3.0   :  3.1.0 (OK)
zmq >=13.0.0    :  14.6.0 (OK)
pandas >=0.13.1 :  0.15.2 (OK)
sphinx >=0.6.6  :  1.2.3 (OK)
psutil >=0.3    :  2.2.1 (OK)
rope >=0.9.2    :  0.10.2 (OK)
jedi >=0.8.1    :  0.8.1 (OK)
matplotlib >=1.0:  1.4.3 (OK)
sympy >=0.7.3   :  0.7.6 (OK)
pylint >=0.25   :  1.1.0 (OK)
``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants