您尚未登录。

#1 2014-07-07 17:30:49

刀尖红叶
会员
注册时间: 2011-09-15
帖子: 347

安装orange出现global name 'qt_framework_dir' is not defined

之前安装python-orange还好好地,这次竟然出现如下错误,怎么破?

==> Starting build()...
Traceback (most recent call last):
  File "setup.py", line 152, in <module>
    orangeqt_setup = imp.load_source('orangeqt_setup', os.path.join(os.path.dirname(__file__), 'source/orangeqt/setup.py'))
  File "source/orangeqt/setup.py", line 163, in <module>
    site_cfg = site_config()
  File "source/orangeqt/setup.py", line 144, in site_config
    framework_dir = get("qt", "framework_dir", default=qt_framework_dir)
NameError: global name 'qt_framework_dir' is not defined
==> ERROR: A failure occurred in build().
    Aborting...

平生只做一件事,做自己喜欢做的事~
个人网站:www.leafonsword.org

离线

#2 2014-11-16 10:51:46

everyx
会员
所在地: 安徽安庆
注册时间: 2011-08-27
帖子: 47

Re: 安装orange出现global name 'qt_framework_dir' is not defined

https://aur.archlinux.org/packages/python-orange/ 下面有人回复

Works fines after modification of "orange/source/orangeqt/setup.py" file (line 19):
"
try:
from PyQt4 import pyqtconfig
except ImportError:
pyqtconfig = None
"
with:

"
import PyQt4.pyqtconfig
"

Other possible solutions to try:
install pyqt4dev

离线

页脚