You are not logged in.

#1 2016-02-02 08:55:41

pie86
Member
Registered: 2009-09-06
Posts: 78

[SOLVED] IPython crashing after fatal error

Hi,

after a fresh installation of archlinux, ipython started crashing from time to time (I suspect it is related to numpy). Here's the steps to reproduce it:

 
$ ipython
Python 3.5.1 (default, Dec  7 2015, 12:58:09) 
Type "copyright", "credits" or "license" for more information.

IPython 4.0.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import numpy

In [2]: quit()
Do you really want to exit ([y]/n)? 
Fatal Python error: PyImport_GetModuleDict: no module dictionary!

Current thread 0x00007f4835191700 (most recent call first):
  File "/usr/lib/python3.5/site-packages/traitlets/traitlets.py", line 1076 in on_trait_change
  File "/usr/lib/python3.5/site-packages/IPython/core/extensions.py", line 64 in __del__
Aborted (core dumped)

I could not find any reference to this error on google.
Can someone confirm this?

Thanks,
Pietro

Last edited by pie86 (2016-02-03 08:40:57)

Offline

#2 2016-02-02 20:01:07

akgrant0710
Member
Registered: 2015-12-30
Posts: 25

Re: [SOLVED] IPython crashing after fatal error

No problem here, but I'm running ipython 4.0.2...

> ipython
Python 3.5.1 (default, Dec  7 2015, 12:58:09) 
Type "copyright", "credits" or "license" for more information.

IPython 4.0.2 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import numpy

In [2]: quit()
> 

Offline

#3 2016-02-03 06:54:43

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED] IPython crashing after fatal error

I can confirm the issue!

$ ipython -c "import numpy"
Fatal Python error: PyImport_GetModuleDict: no module dictionary!

Current thread 0x00007f51312bb700 (most recent call first):
  File "/usr/lib/python3.5/site-packages/traitlets/traitlets.py", line 1076 in on_trait_change
  File "/usr/lib/python3.5/site-packages/IPython/core/extensions.py", line 64 in __del__
Aborted (core dumped)

I'm using ipython 4.0.1. Maybe it is related to this https://bugs.python.org/issue26153 and this https://github.com/ipython/traitlets/issues/162.
However, it seems that the problem has already been fixed by upstream https://github.com/ipython/ipython/pull/9040: we just have to wait utill ipython 4.0.3 is released.


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#4 2016-02-03 08:40:18

pie86
Member
Registered: 2009-09-06
Posts: 78

Re: [SOLVED] IPython crashing after fatal error

Thank you! I'll mark as solved.

Offline

Board footer

Powered by FluxBB