从 Tarball 失败 Django 错误安装 Hue?

Hue Install From Tarball Failure Django Error?

在运行之后PREFIX=/home/hue make install

接近尾声 通过 tarball 安装 hue 时,出现以下错误。我不确定发生了什么。我也安装了先决条件。 Using this guide

失败的命令:/home/hue/hue/build/env/bin/hue makemigrations --noinput

错误:

Traceback (most recent call last):
  File "/home/hue/hue/build/env/bin/hue", line 11, in <module>
    load_entry_point('desktop', 'console_scripts', 'hue')()
  File "/home/hue/hue/desktop/core/src/desktop/manage_entry.py", line 216, in entry
    execute_from_command_line(sys.argv)
  File "/home/hue/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/core/management/__init__.py", line 363, in execute_from_command_line
    utility.execute()
  File "/home/hue/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/core/management/__init__.py", line 307, in execute
    settings.INSTALLED_APPS
  File "/home/hue/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/conf/__init__.py", line 56, in __getattr__
    self._setup(name)
  File "/home/hue/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/conf/__init__.py", line 41, in _setup
    self._wrapped = Settings(settings_module)
  File "/home/hue/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/conf/__init__.py", line 110, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/hue/hue/desktop/core/src/desktop/settings.py", line 271, in <module>
    conf.initialize(_desktop_conf_modules, _config_dir)
  File "/home/hue/hue/desktop/core/src/desktop/lib/conf.py", line 598, in initialize
    conf_data = load_confs(_configs_from_dir(config_dir))
  File "/home/hue/hue/desktop/core/src/desktop/lib/conf.py", line 530, in load_confs
    for in_conf in conf_source:
  File "/home/hue/hue/desktop/core/src/desktop/lib/conf.py", line 511, in _configs_from_dir
    conf = ConfigObj(os.path.join(conf_dir, filename))
  File "/home/hue/hue/build/env/lib/python2.7/site-packages/configobj-5.0.6-py2.7.egg/configobj.py", line 1229, in __init__
    self._load(infile, configspec)
  File "/home/hue/hue/build/env/lib/python2.7/site-packages/configobj-5.0.6-py2.7.egg/configobj.py", line 1318, in _load
    raise error
configobj.ConfigObjError: Parsing failed with several errors.
First error at line 1046.

以防其他人遇到这个问题。所以问题源于在 运行 安装之前修改 hue.ini 文件。回滚到原来的 hue.ini 解决了这个问题。一定是我修改后的版本打错了,导致上面的解析错误。

Tarball 文件位置:

hue/desktop/conf/hue.ini