cloudera / hue

Open source SQL Query Assistant service for Databases/Warehouses
https://cloudera.com
Apache License 2.0
1.17k stars 366 forks source link

/usr/share/hue/build/env/bin/python not found #21

Closed minhlab closed 11 years ago

minhlab commented 11 years ago

I tried to install hue on Ubuntu 12.04 (previously installed and uninstalled CHD4) and got into this error:

ubuntu@server1:~$ sudo apt-get install hue Reading package lists... Done Building dependency tree
Reading state information... Done The following extra packages will be installed: bigtop-jsvc hadoop hadoop-0.20-mapreduce hadoop-client hadoop-hdfs hadoop-mapreduce hadoop-yarn hbase hive hue-about hue-beeswax hue-filebrowser hue-help hue-jobbrowser hue-jobsub hue-oozie hue-plugins hue-proxy hue-shell hue-useradmin libcap2 libopts25 ntp Suggested packages: ntp-doc The following NEW packages will be installed: bigtop-jsvc hadoop hadoop-0.20-mapreduce hadoop-client hadoop-hdfs hadoop-mapreduce hadoop-yarn hbase hive hue hue-about hue-beeswax hue-filebrowser hue-help hue-jobbrowser hue-jobsub hue-oozie hue-plugins hue-proxy hue-shell hue-useradmin libcap2 libopts25 ntp 0 upgraded, 24 newly installed, 0 to remove and 2 not upgraded. Need to get 0 B/149 MB of archives. After this operation, 310 MB of additional disk space will be used. Do you want to continue [Y/n]? Y Selecting previously unselected package libcap2. (Reading database ... dpkg: warning: files list file for package `hue-common' missing, assuming package has no files currently installed. (Reading database ... 36031 files and directories currently installed.) Unpacking libcap2 (from .../libcap2_1%3a2.22-1ubuntu3_amd64.deb) ... Selecting previously unselected package libopts25. Unpacking libopts25 (from .../libopts25_1%3a5.12-0.1ubuntu1_amd64.deb) ... Selecting previously unselected package ntp. Unpacking ntp (from .../ntp_1%3a4.2.6.p3+dfsg-1ubuntu3.1_amd64.deb) ... Selecting previously unselected package bigtop-jsvc. Unpacking bigtop-jsvc (from .../bigtop-jsvc_0.4+391-1.cdh4.1.3.p0.27~precise-cdh4.1.3_amd64.deb) ... Selecting previously unselected package hadoop. Unpacking hadoop (from .../hadoop_2.0.0+556-1.cdh4.1.3.p0.23~precise-cdh4.1.3_all.deb) ... Selecting previously unselected package hadoop-hdfs. Unpacking hadoop-hdfs (from .../hadoop-hdfs_2.0.0+556-1.cdh4.1.3.p0.23~precise-cdh4.1.3_all.deb) ... Selecting previously unselected package hadoop-0.20-mapreduce. Unpacking hadoop-0.20-mapreduce (from .../hadoop-0.20-mapreduce_0.20.2+1270-1.cdh4.1.3.p0.23~precise-cdh4.1.3_amd64.deb) ... Selecting previously unselected package hadoop-yarn. Unpacking hadoop-yarn (from .../hadoop-yarn_2.0.0+556-1.cdh4.1.3.p0.23~precise-cdh4.1.3_all.deb) ... Selecting previously unselected package hadoop-mapreduce. Unpacking hadoop-mapreduce (from .../hadoop-mapreduce_2.0.0+556-1.cdh4.1.3.p0.23~precise-cdh4.1.3_all.deb) ... Selecting previously unselected package hadoop-client. Unpacking hadoop-client (from .../hadoop-client_2.0.0+556-1.cdh4.1.3.p0.23~precise-cdh4.1.3_all.deb) ... Selecting previously unselected package hbase. Unpacking hbase (from .../hbase_0.92.1+165-1.cdh4.1.3.p0.23~precise-cdh4.1.3_all.deb) ... Selecting previously unselected package hive. Unpacking hive (from .../hive_0.9.0+158-1.cdh4.1.3.p0.23~precise-cdh4.1.3_all.deb) ... Selecting previously unselected package hue-plugins. Unpacking hue-plugins (from .../hue-plugins_2.1.0+223-1.cdh4.1.3.p0.20~precise-cdh4.1.3_all.deb) ... Selecting previously unselected package hue-help. Unpacking hue-help (from .../hue-help_2.1.0+223-1.cdh4.1.3.p0.20~precise-cdh4.1.3_all.deb) ... Selecting previously unselected package hue-filebrowser. Unpacking hue-filebrowser (from .../hue-filebrowser_2.1.0+223-1.cdh4.1.3.p0.20~precise-cdh4.1.3_all.deb) ... Selecting previously unselected package hue-about. Unpacking hue-about (from .../hue-about_2.1.0+223-1.cdh4.1.3.p0.20~precise-cdh4.1.3_all.deb) ... Selecting previously unselected package hue-useradmin. Unpacking hue-useradmin (from .../hue-useradmin_2.1.0+223-1.cdh4.1.3.p0.20~precise-cdh4.1.3_all.deb) ... Selecting previously unselected package hue-jobbrowser. Unpacking hue-jobbrowser (from .../hue-jobbrowser_2.1.0+223-1.cdh4.1.3.p0.20~precise-cdh4.1.3_all.deb) ... Selecting previously unselected package hue-jobsub. Unpacking hue-jobsub (from .../hue-jobsub_2.1.0+223-1.cdh4.1.3.p0.20~precise-cdh4.1.3_all.deb) ... Selecting previously unselected package hue-beeswax. Unpacking hue-beeswax (from .../hue-beeswax_2.1.0+223-1.cdh4.1.3.p0.20~precise-cdh4.1.3_all.deb) ... Selecting previously unselected package hue-proxy. Unpacking hue-proxy (from .../hue-proxy_2.1.0+223-1.cdh4.1.3.p0.20~precise-cdh4.1.3_all.deb) ... Selecting previously unselected package hue-shell. Unpacking hue-shell (from .../hue-shell_2.1.0+223-1.cdh4.1.3.p0.20~precise-cdh4.1.3_amd64.deb) ... Selecting previously unselected package hue-oozie. Unpacking hue-oozie (from .../hue-oozie_2.1.0+223-1.cdh4.1.3.p0.20~precise-cdh4.1.3_all.deb) ... Selecting previously unselected package hue. Unpacking hue (from .../hue_2.1.0+223-1.cdh4.1.3.p0.20~precise-cdh4.1.3_all.deb) ... Processing triggers for ureadahead ... Processing triggers for man-db ... Setting up libcap2 (1:2.22-1ubuntu3) ... Setting up libopts25 (1:5.12-0.1ubuntu1) ... Setting up ntp (1:4.2.6.p3+dfsg-1ubuntu3.1) ...

minhlab commented 11 years ago

I figured it out.

I copied /usr/share/hue directory from another machine and tried sudo apt-get purge. I reported something about missing gcc.

I installed gcc and --purge remove everything and install again. Now it's working.

romainr commented 11 years ago

Glad that you found a workaround. This is not normal though and we are going to have a look.