Python Forum

Full Version: Unknown error: kernel process exited
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I recently install pyzo with anaconda. I install all the scientific package (and matplotlib) and start coding without any problems. But today the console give me this error:

Kernel process terminated for restart. (0) Invalid script file: "C:\Program Files (x86)\pyzo\LotkaVolterra.py" Traceback (most recent call last): File "C:\Program Files (x86)\pyzo\source\pyzo\pyzokernel\start.py", line 150, in <module> __pyzo__.run() File "C:\Program Files (x86)\pyzo\source\pyzo\pyzokernel\interpreter.py", line 217, in run self._prepare() File "C:\Program Files (x86)\pyzo\source\pyzo\pyzokernel\interpreter.py", line 262, in _prepare self._prepare_environment(startup_info) File "C:\Program Files (x86)\pyzo\source\pyzo\pyzokernel\interpreter.py", line 378, in _prepare_environment if scriptFilename.endswith('.ipynb'): AttributeError: 'NoneType' object has no attribute 'endswith' The kernel process exited. (1)

for every thing i try to do (even just print(2)... and another code that was working last week). It is not always exactly this form but always a kernel process exited. I reinstall everything and nothing work. Any ideas?
Thanks by advance,
MlleFidna
Error:
" line 378, in _prepare_environment if scriptFilename.endswith('.ipynb'): AttributeError: 'NoneType' object has no attribute 'endswith' "
Are you running this from the interpreter, or from a script?  It seems odd that "scriptFilename" would ever be None.