Hue Error - setuptools pip wheel failed with

Hi ,

I am trying to install hue 4.6… I am getting below error.

“PYTHON_VER is python2.7”
— Creating virtual environment at /tech/data/app/hue-4.6.0/build/env
/usr/bin/python2.7 /tech/data/app/hue-4.6.0/tools/virtual-bootstrap/virtual-bootstrap.py
-qq --system-site-packages /tech/data/app/hue-4.6.0/build/env
Traceback (most recent call last):
File “/tech/data/app/hue-4.6.0/tools/virtual-bootstrap/virtual-bootstrap.py”, line 2335, in
main()
File “/tech/data/app/hue-4.6.0/tools/virtual-bootstrap/virtual-bootstrap.py”, line 713, in main
symlink=options.symlink)
File “/tech/data/app/hue-4.6.0/tools/virtual-bootstrap/virtual-bootstrap.py”, line 945, in create_environment
download=download,
File “/tech/data/app/hue-4.6.0/tools/virtual-bootstrap/virtual-bootstrap.py”, line 901, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File “/tech/data/app/hue-4.6.0/tools/virtual-bootstrap/virtual-bootstrap.py”, line 797, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /tech/data/app/hue-4…ld/env/bin/python2.7 - setuptools pip wheel failed with error code 1
make: *** [/tech/data/app/hue-4.6.0/build/env/stamp] Error 1

I have installed new local python 2.7.11 for this.
also i have installed virtualenv .

am i missing anything?

#which python
~/python/Python-2.7.11/python
#python -V
Python 2.7.11

Sounds like issue with dependencies.

https://docs.gethue.com/administrator/installation/dependencies/

For Hue 4.x in Centos + HDP Stack (Ambari) my dependencies are:

wget  
npm
tar
asciidoc
krb5-devel
libxml2-devel
libxslt-devel		   
openldap-devel
python-devel
python-simplejson
python-setuptools
python-psycopg2
sqlite-devel
rsync
saslwrapper-devel
pycrypto
gmp-devel
libyaml-devel
cyrus-sasl-plain
cyrus-sasl-devel
cyrus-sasl-gssapi
libffi-devel
ant
gcc
gcc-c++
libffi-devel
make
mysql
mysql-devel

@steven-dfheinz

I installed all the dependencies. but the installation fails at npm. with below error.

npm ERR! Linux 3.10.0-957.1.3.el7.x86_64
npm ERR! argv “/usr/bin/node” “/bin/npm” “install”
npm ERR! node v6.17.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! libxmljs@0.19.7 install: node-pre-gyp install --fallback-to-build --loglevel http
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the libxmljs@0.19.7 install script ‘node-pre-gyp install --fallback-to-build --loglevel http’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the libxmljs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build --loglevel http
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs libxmljs
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls libxmljs
npm ERR! There is likely additional logging output above.

I already have the latest version of npm and nodejs
am I missing anything?

@brett Your versions of npm and node match mine, so thats definitely not the issue. I suspect whatever os/repos you are using are different than mine. In your error above it says:

“If you do, this is most likely a problem with the libxmljs package”

Can you try to install additional libxmljs packages manually? For example: yum install libxml*

In the hue dependencies is “libxml2-devel” but this may not install enough of its own dependencies in your environment. Maybe if you work on this, then Hue will install 100%.

1 Like