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

No module named '_dummy' #6409

Closed
laserinyoureye opened this issue Sep 4, 2014 · 1 comment · Fixed by #6410
Closed

No module named '_dummy' #6409

laserinyoureye opened this issue Sep 4, 2014 · 1 comment · Fixed by #6410
Milestone

Comments

@laserinyoureye
Copy link

Running IPython 2.2.0 with Python 3.4.1 I get the following error when invoking:

C:\Python34\Scripts\ipython-script.py -i -c --confirm-exit --pylab

Error:
[TerminalIPythonApp] WARNING | Eventloop or matplotlib integration failed. Is matplotlib installed?
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
C:\Python34\lib\site-packages\IPython\core\shellapp.py in <lambda>(key)
    231         shell = self.shell
    232         if self.pylab:
--> 233             enable = lambda key: shell.enable_pylab(key, import_all=self.pylab_import_all)
    234             key = self.pylab
    235         elif self.matplotlib:

C:\Python34\lib\site-packages\IPython\core\interactiveshell.py in enable_pylab(self, gui, import_all, welcome_message)
   2980         from IPython.core.pylabtools import import_pylab
   2981
-> 2982         gui, backend = self.enable_matplotlib(gui)
   2983
   2984         # We want to prevent the loading of pylab to pollute the user's

C:\Python34\lib\site-packages\IPython\core\interactiveshell.py in enable_matplotlib(self, gui)
   2946         # Now we must activate the gui pylab wants to use, and fix %run to take
   2947         # plot updates into account
-> 2948         self.enable_gui(gui)
   2949         self.magics_manager.registry['ExecutionMagics'].default_runner = \
   2950             pt.mpl_runner(self.safe_execfile)

C:\Python34\lib\site-packages\IPython\terminal\interactiveshell.py in enable_gui(gui, app)
    314         from IPython.lib.inputhook import enable_gui as real_enable_gui
    315         try:
--> 316             return real_enable_gui(gui, app)
    317         except ValueError as e:
    318             raise UsageError("%s" % e)

C:\Python34\lib\site-packages\IPython\lib\inputhook.py in enable_gui(gui, app)
    539         e = "Invalid GUI request %r, valid ones are:%s" % (gui, guis.keys())
    540         raise ValueError(e)
--> 541     return gui_hook(app)
    542

C:\Python34\lib\site-packages\IPython\lib\inputhook.py in enable_qt4(self, app)
    259         """
    260         from IPython.lib.inputhookqt4 import create_inputhook_qt4
--> 261         from IPython.external.appnope import nope
    262         app, inputhook_qt4 = create_inputhook_qt4(self, app)
    263         self.set_inputhook(inputhook_qt4)

C:\Python34\lib\site-packages\IPython\external\appnope\__init__.py in <module>()
      9
     10     if sys.platform != "darwin" or V(platform.mac_ver()[0]) < V("10.9"):
---> 11         from _dummy import *
     12     else:
     13         from ._nope import *

ImportError: No module named '_dummy'

If I change line 11 in site-packages\IPython\external\appnope__initi__.py from:
from _dummy import *
to:
from ._dummy import *
it seems to work fine. Looks like the "." is missing.

takluyver added a commit to takluyver/ipython that referenced this issue Sep 4, 2014
@takluyver
Copy link
Member

Thanks, I've made PR #6410 to fix it.

@minrk minrk added this to the 2.3 milestone Sep 4, 2014
takluyver added a commit that referenced this issue Sep 11, 2014
Closes gh-6409

Ping @minrk - this fix should go into appnope as well.
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants