1

安装后,当我做

$ ~/Canopy/canopy

我明白了

Traceback (most recent call last):
  File "/home/joon/Canopy/appdata/canopy-1.0.0.1160.rh5-x86_64/__boot__.py", line 9, in <module>
    sys.exit(main())
  File "build/bdist.linux-x86_64/egg/canopy/app/bootstrap.py", line 1335, in main
  File "build/bdist.linux-x86_64/egg/canopy/app/bootstrap.py", line 1315, in send_bug_report
  File "build/bdist.linux-x86_64/egg/canopy/feedback/data_reporter.py", line 390, in start
  File "/home/joon/Canopy/appdata/canopy-1.0.0.1160.rh5-x86_64/lib/python2.7/site-packages/enaml/core/import_hooks.py", line 131, in load_module
    exec code in mod.__dict__
  File "/home/joon/Canopy/appdata/canopy-1.0.0.1160.rh5-x86_64/lib/python2.7/site-packages/canopy/feedback/data_reporter_view.enaml", line 4, in 
    from pyface.api import clipboard
  File "/home/joon/Canopy/appdata/canopy-1.0.0.1160.rh5-x86_64/lib/python2.7/site-packages/pyface/api.py", line 16, in <module>
    from about_dialog import AboutDialog
  File "/home/joon/Canopy/appdata/canopy-1.0.0.1160.rh5-x86_64/lib/python2.7/site-packages/pyface/about_dialog.py", line 18, in <module>
    from toolkit import toolkit_object
  File "/home/joon/Canopy/appdata/canopy-1.0.0.1160.rh5-x86_64/lib/python2.7/site-packages/pyface/toolkit.py", line 73, in <module>
    _init_toolkit()
  File "/home/joon/Canopy/appdata/canopy-1.0.0.1160.rh5-x86_64/lib/python2.7/site-packages/pyface/toolkit.py", line 38, in _init_toolkit
    be = import_toolkit(ETSConfig.toolkit)
  File "/home/joon/Canopy/appdata/canopy-1.0.0.1160.rh5-x86_64/lib/python2.7/site-packages/pyface/toolkit.py", line 31, in import_toolkit
    __import__(be + 'init')
  File "/home/joon/Canopy/appdata/canopy-1.0.0.1160.rh5-x86_64/lib/python2.7/site-packages/pyface/ui/qt4/init.py", line 18, in <module>
    from pyface.qt import QtCore, QtGui, qt_api
  File "/home/joon/Canopy/appdata/canopy-1.0.0.1160.rh5-x86_64/lib/python2.7/site-packages/pyface/qt/__init__.py", line 35, in <module>
    prepare_pyqt4()
  File "/home/joon/Canopy/appdata/canopy-1.0.0.1160.rh5-x86_64/lib/python2.7/site-packages/pyface/qt/__init__.py", line 16, in prepare_pyqt4
    import sip
ImportError: No module named sip
~/Canopy/canopy: command not found   

当我这样做时

$ ~/Canopy/appdata/canopy-1.0.0.1160.rh5-x86_64/bin/ipython

我收到以下奇怪的错误:

zsh: /home/joon/Canopy/appdata/canopy-1.0.0.1160.rh5-x86_64/bin/ipython: bad interpreter: /home/builder/jenkins/workspace/Canopy_App/ARCH/x86_64/label/L: no such file or directory
~/Canopy/appdata/canopy-1.0.0.1160.rh5-x86_64/bin/ipython: command not found 

我现在尝试重新安装大约 10 次,但没有运气。

4

1 回答 1

2

要从用户虚拟环境运行 ipython,请参阅: https: //support.enthought.com/entries/23646538-Make-Canopy-s-Python-be-your-default-Python-ie-on-the-PATH- http://docs.enthought.com/canopy/configure/faq.html#where-are-all-of-the-python-packages-in-my-user-python-environment

关于您的 Canopy 启动问题,显然您是在告诉 Canopy 使用 PyQt(未安装)而不是 PySide(这是默认设置);也许您正在设置QT_API环境变量。如果你先清除它,或者这样设置它有帮助吗?: export QT_API=pyside

于 2013-05-13T01:13:13.667 回答