无法在GNU / Linux中启动Canopy(openSUSE 12.3)

时间:2013-05-13 00:10:22

标签: enthought

安装后,当我这样做时

$ ~/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次,但没有运气。

1 个答案:

答案 0 :(得分:2)

要从用户虚拟环境运行ipython,请参阅以下内容: https://support.enthought.com/entries/23646538-Make-Canopy-s-Python-be-your-default-Python-i-e-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