0

尝试在 OS X 上从 Canopy 启动笔记本时出现错误。我正在从 github 上的最新版本安装。qtconsole 也会发生这种情况,所以我认为 zmq 有点奇怪。如果我使用 enpkg 安装 1.0,它会按预期工作。我也尝试从 github 安装 pyzmq,将作为安装的一部分的扩展链接到现有的 zmq(通过 MacPorts 的 3.2.3)。希望这是可以修复的。我已经在整个网络上查看了这样的错误,但我没有看到任何指向我的错误的东西,特别是。感谢您抽出宝贵时间查看此内容。

FWIW,我还有一个 Python3 virtualenv 安装了 ipython 的 dev 分支,它也可以按预期工作。

(Canopy 64bit) ~ $ ipython notebook
/Users/chris/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/frontend.py:30: UserWarning: The top-level `frontend` package has been deprecated. All its subpackages have been moved to the top `IPython` level.
  warn("The top-level `frontend` package has been deprecated. "
Traceback (most recent call last):
  File "/Users/chris/Library/Enthought/Canopy_64bit/User/bin/ipython", line 10, in <module>
    sys.exit(launch_new_instance())
  File "/Users/chris/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/config/application.py", line 537, in launch_instance
    app.initialize(argv)
  File "<string>", line 2, in initialize
  File "/Users/chris/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/config/application.py", line 89, in catch_config_error
    return method(app, *args, **kwargs)
  File "/Users/chris/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 310, in initialize
    super(TerminalIPythonApp, self).initialize(argv)
  File "<string>", line 2, in initialize
  File "/Users/chris/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/config/application.py", line 89, in catch_config_error
    return method(app, *args, **kwargs)
  File "/Users/chris/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/core/application.py", line 361, in initialize
    self.parse_command_line(argv)
  File "/Users/chris/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 305, in parse_command_line
    return super(TerminalIPythonApp, self).parse_command_line(argv)
  File "<string>", line 2, in parse_command_line
  File "/Users/chris/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/config/application.py", line 89, in catch_config_error
    return method(app, *args, **kwargs)
  File "/Users/chris/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/config/application.py", line 467, in parse_command_line
    return self.initialize_subcommand(subc, subargv)
  File "<string>", line 2, in initialize_subcommand
  File "/Users/chris/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/config/application.py", line 89, in catch_config_error
    return method(app, *args, **kwargs)
  File "/Users/chris/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/config/application.py", line 399, in initialize_subcommand
    subapp = import_item(subapp)
  File "/Users/chris/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/utils/importstring.py", line 42, in import_item
    module = __import__(package, fromlist=[obj])
  File "/Users/chris/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/html/notebookapp.py", line 64, in <module>
    from .services.kernels.kernelmanager import MappingKernelManager
  File "/Users/chris/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/html/services/kernels/kernelmanager.py", line 21, in <module>
    from IPython.kernel.multikernelmanager import MultiKernelManager
  File "/Users/chris/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/kernel/__init__.py", line 8, in <module>
    from .client import KernelClient
  File "/Users/chris/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/kernel/client.py", line 38, in <module>
    class KernelClient(LoggingConfigurable, ConnectionFileMixin):
  File "/Users/chris/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/kernel/client.py", line 55, in KernelClient
    context = Instance(zmq.Context)
AttributeError: 'module' object has no attribute 'Context'
4

0 回答 0