Hue安装问题 - Mac OS

时间:2016-01-05 12:23:11

标签: python macos hue

我正在尝试在Mac上设置Hue。

这是我提到的GitHub链接: https://github.com/cloudera/hue#development-prerequisites

$ git clone https://github.com/cloudera/hue.git
$ cd hue
$ make apps

获取此错误::运行build / env / bin / hue runserver

hue soundarya $ build / env / bin / hue runserver

Validating models...

Unhandled exception in thread started by <function wrapper at 0x108be1cf8>
Traceback (most recent call last):
  File "/Users/soundarya/virtenv/hue_venv/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/utils/autoreload.py", line 93, in wrapper
    fn(*args, **kwargs)
  File "/Users/soundarya/virtenv/hue_venv/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/commands/runserver.py", line 102, in inner_run
    self.validate(display_num_errors=True)
  File "/Users/soundarya/virtenv/hue_venv/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/base.py", line 310, in validate
    num_errors = get_validation_errors(s, app)
  File "/Users/soundarya/virtenv/hue_venv/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/validation.py", line 34, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/Users/soundarya/virtenv/hue_venv/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/models/loading.py", line 196, in get_app_errors
    self._populate()
  File "/Users/soundarya/virtenv/hue_venv/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/models/loading.py", line 78, in _populate
    self.load_app(app_name)
  File "/Users/soundarya/virtenv/hue_venv/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/models/loading.py", line 99, in load_app
    models = import_module('%s.models' % app_name)
  File "/Users/soundarya/virtenv/hue_venv/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/Users/soundarya/virtenv/hue_venv/hue/apps/jobbrowser/src/jobbrowser/models.py", line 20, in <module>
    import lxml.html
  File "/Users/soundarya/virtenv/hue_venv/hue/build/env/lib/python2.7/site-packages/lxml-3.3.6-py2.7-macosx-10.11-intel.egg/lxml/html/__init__.py", line 42, in <module>
    from lxml import etree
ImportError: dlopen(/Users/soundarya/virtenv/hue_venv/hue/build/env/lib/python2.7/site-packages/lxml-3.3.6-py2.7-macosx-10.11-intel.egg/lxml/etree.so, 2): Library not loaded: libxml2.2.dylib
  Referenced from: /Users/soundarya/virtenv/hue_venv/hue/build/env/lib/python2.7/site-packages/lxml-3.3.6-py2.7-macosx-10.11-intel.egg/lxml/etree.so
  Reason: Incompatible library version: etree.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0

任何人都可以帮我解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

尚未满足先决条件。您必须安装此处列出的所有要求:Development Prerequisites。要解决此错误,您必须安装python2.7-dev包(而不是python2.7-devel)以及其他要求。