简体   繁体   English

木星笔记本无法启动 - 未找到符号错误

[英]Jupiter notebook won't start - Symbol not found error

A while back, I upgraded my python version via brew to 3.9.0 and now, whenever I try to start Jupiter notebook, I get this error:不久前,我通过 brew 将我的 python 版本升级到 3.9.0,现在,每当我尝试启动 Jupiter notebook 时,我都会收到此错误:

Traceback (most recent call last):
  File "/Users/me/Library/Python/3.9/bin/jupyter-notebook", line 5, in <module>
    from notebook.notebookapp import main
  File "/Users/me/Library/Python/3.9/lib/python/site-packages/notebook/notebookapp.py", line 49, in <module>
    from zmq.eventloop import ioloop
  File "/usr/local/lib/python3.9/site-packages/zmq/__init__.py", line 62, in <module>
    from zmq import backend
  File "/usr/local/lib/python3.9/site-packages/zmq/backend/__init__.py", line 32, in <module>
    raise original_error from None
  File "/usr/local/lib/python3.9/site-packages/zmq/backend/__init__.py", line 27, in <module>
    _ns = select_backend(first)
  File "/usr/local/lib/python3.9/site-packages/zmq/backend/select.py", line 32, in select_backend
    mod = import_module(name)
  File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/local/lib/python3.9/site-packages/zmq/backend/cython/__init__.py", line 6, in <module>
    from . import (
ImportError: dlopen(/usr/local/lib/python3.9/site-packages/zmq/backend/cython/constants.cpython-39-darwin.so, 2): Symbol not found: ____chkstk_darwin
  Referenced from: /usr/local/lib/python3.9/site-packages/zmq/backend/cython/../../.dylibs/libsodium.23.dylib (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib
 in /usr/local/lib/python3.9/site-packages/zmq/backend/cython/../../.dylibs/libsodium.23.dylib

I've tried completely uninstalling and reinstalling jupiter to no avail.我已经尝试完全卸载并重新安装 jupiter 无济于事。 I've also tried reinstalling the zmq module that seems to be a part of this error chain.我还尝试重新安装似乎是此错误链一部分的 zmq 模块。 My thought is that there must be some component that's avoiding my uninstalls that needs to be fixed/updated, but I'm not sure what it could be.我的想法是必须有一些组件可以避免我需要修复/更新的卸载,但我不确定它可能是什么。

I'm also running MacOS 10.13.6.我也在运行 MacOS 10.13.6。 I notice it states that one of these modules was built for Mac OS X 10.15.我注意到它指出其中一个模块是为 Mac OS X 10.15 构建的。 Could this instead be the issue?这可能是问题吗?

The answer provided in this link worked for me: Cannot run jupyter everywhere (terminal, anaconda distributer) Mac os 10.12.6此链接中提供的答案对我有用:无法在任何地方运行 jupyter(终端,anaconda 分发器)Mac os 10.12.6

"downgraded pyzmq to 20.0.0 and it worked fine. pip install pyzmq==20.0.0 “将 pyzmq 降级到 20.0.0 并且运行良好。pip install pyzmq==20.0.0

I believe the issue is in pyzmq's cython packaging - and should be raised as a bug to them."我相信问题出在 pyzmq 的 cython 包装中——应该作为一个错误向他们提出。”

The bug has been raised and is expected to be fixed by release 21.0.2该错误已被提出,预计将在 21.0.2 版本中修复

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM