Python Forum
[PyGUI] Unknown error: kernel process exited
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGUI] Unknown error: kernel process exited
#1
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
Reply
#2
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020