我认为 jupyter-qtconsole 坏了,因为我是 运行 os x 10.10.5。没有更新怎么解决?
I think jupyter-qtconsole is broken because I am running os x 10.10.5. How to fix without update?
快速说明:我在提出问题时遇到了问题。我不太了解jupyter-qtconsole,所以我不太确定我实际面临的问题。
我正在 mac 书上 os x 10.10.5 运行 pyenv 虚拟环境。典型的全新虚拟环境会安装以下内容:
numpy
scipy
matplotlib
jupyter
qtconsole
pyqt5
sip (Recent addition)
jupyter_qtconsole_colorschemes
从命令行调出控制台 -> jupyter qtconsole
别名 jqt
今天我经历了这个过程并遇到了一个错误。请注意,我的其他虚拟环境仍然运行良好。
以下是我发现的可重现的错误:
Cloud-Control:codingProjects KJSwanson$ cd 704
pyenv-virtualenv: deactivate 3.6.0/envs/test2
pyenv-virtualenv: activate 704
pyenv-virtualenv: prompt changing will be removed from future release. configure `export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
(704)
Cloud-Control:704 KJSwanson$ jqt
Traceback (most recent call last):
File "/Users/KJSwanson/.pyenv/versions/704/bin/jupyter-qtconsole", line 7, in <module>
from qtconsole.qtconsoleapp import main
File "/Users/KJSwanson/.pyenv/versions/3.6.4/envs/704/lib/python3.6/site-packages/qtconsole/qtconsoleapp.py", line 60, in <module>
from qtconsole.qt import QtCore, QtGui
File "/Users/KJSwanson/.pyenv/versions/3.6.4/envs/704/lib/python3.6/site-packages/qtconsole/qt.py", line 23, in <module>
QtCore, QtGui, QtSvg, QT_API = load_qt(api_opts)
File "/Users/KJSwanson/.pyenv/versions/3.6.4/envs/704/lib/python3.6/site-packages/qtconsole/qt_loaders.py", line 365, in load_qt
result = loaders[api]()
File "/Users/KJSwanson/.pyenv/versions/3.6.4/envs/704/lib/python3.6/site-packages/qtconsole/qt_loaders.py", line 272, in import_pyqt5
from PyQt5 import QtCore, QtSvg, QtWidgets, QtGui, QtPrintSupport
ImportError: dlopen(/Users/KJSwanson/.pyenv/versions/3.6.4/envs/704/lib/python3.6/site-packages/PyQt5/QtCore.so, 2): Symbol not found: __os_log_default
Referenced from: /Users/KJSwanson/.pyenv/versions/3.6.4/envs/704/lib/python3.6/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (which was built for Mac OS X 10.11)
Expected in: /usr/lib/libSystem.B.dylib
in /Users/KJSwanson/.pyenv/versions/3.6.4/envs/704/lib/python3.6/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore
-> (which was built for Mac OS X 10.11)
1) 由于我的 machine OS 版本是 10.10.5 这实际上是我在使用 jupyter qtconsole 时遇到问题的原因吗? (对模块 jupyter-qtconsole 的一些更新有冲突吗?)
2) 如果不是这个原因,有什么问题可以建议吗?
这是交易。
PyQt5 是问题所在。最新版本似乎需要 os x 10.11.x.
我的解决方案是卸载 PyQt5 并安装 v=5.9.2 版本,该版本适用于不同的虚拟环境。
快速说明:我在提出问题时遇到了问题。我不太了解jupyter-qtconsole,所以我不太确定我实际面临的问题。
我正在 mac 书上 os x 10.10.5 运行 pyenv 虚拟环境。典型的全新虚拟环境会安装以下内容:
numpy
scipy
matplotlib
jupyter
qtconsole
pyqt5
sip (Recent addition)
jupyter_qtconsole_colorschemes
从命令行调出控制台 -> jupyter qtconsole
别名 jqt
今天我经历了这个过程并遇到了一个错误。请注意,我的其他虚拟环境仍然运行良好。
以下是我发现的可重现的错误:
Cloud-Control:codingProjects KJSwanson$ cd 704
pyenv-virtualenv: deactivate 3.6.0/envs/test2
pyenv-virtualenv: activate 704
pyenv-virtualenv: prompt changing will be removed from future release. configure `export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
(704)
Cloud-Control:704 KJSwanson$ jqt
Traceback (most recent call last):
File "/Users/KJSwanson/.pyenv/versions/704/bin/jupyter-qtconsole", line 7, in <module>
from qtconsole.qtconsoleapp import main
File "/Users/KJSwanson/.pyenv/versions/3.6.4/envs/704/lib/python3.6/site-packages/qtconsole/qtconsoleapp.py", line 60, in <module>
from qtconsole.qt import QtCore, QtGui
File "/Users/KJSwanson/.pyenv/versions/3.6.4/envs/704/lib/python3.6/site-packages/qtconsole/qt.py", line 23, in <module>
QtCore, QtGui, QtSvg, QT_API = load_qt(api_opts)
File "/Users/KJSwanson/.pyenv/versions/3.6.4/envs/704/lib/python3.6/site-packages/qtconsole/qt_loaders.py", line 365, in load_qt
result = loaders[api]()
File "/Users/KJSwanson/.pyenv/versions/3.6.4/envs/704/lib/python3.6/site-packages/qtconsole/qt_loaders.py", line 272, in import_pyqt5
from PyQt5 import QtCore, QtSvg, QtWidgets, QtGui, QtPrintSupport
ImportError: dlopen(/Users/KJSwanson/.pyenv/versions/3.6.4/envs/704/lib/python3.6/site-packages/PyQt5/QtCore.so, 2): Symbol not found: __os_log_default
Referenced from: /Users/KJSwanson/.pyenv/versions/3.6.4/envs/704/lib/python3.6/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (which was built for Mac OS X 10.11)
Expected in: /usr/lib/libSystem.B.dylib
in /Users/KJSwanson/.pyenv/versions/3.6.4/envs/704/lib/python3.6/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore
-> (which was built for Mac OS X 10.11)
1) 由于我的 machine OS 版本是 10.10.5 这实际上是我在使用 jupyter qtconsole 时遇到问题的原因吗? (对模块 jupyter-qtconsole 的一些更新有冲突吗?)
2) 如果不是这个原因,有什么问题可以建议吗?
这是交易。
PyQt5 是问题所在。最新版本似乎需要 os x 10.11.x.
我的解决方案是卸载 PyQt5 并安装 v=5.9.2 版本,该版本适用于不同的虚拟环境。