Why "ImportError: No module named builtins" appears after importing hive from PyHive package?
<p>I have a simple question to ask. I have been trying to execute HIVE queries from Python using <a href="https://github.com/cloudera/impyla" rel="nofollow">impyla</a> package. But I stuck into <a href="http://stackoverflow.com/questions/35854145/impyla-hangs-when-connecting-to-hiveserver2">cursor problem</a>, already a question has been asked on stackoverflow. In this question, a user answered and advised to use <a href="https://github.com/dropbox/PyHive" rel="nofollow">PyHive</a> instead.</p>

<p>Therefore, now I am trying to execute HIVE queries from Python using PyHive. But unluckily, I am stuck at another issue which seems to be not that complicated. As soon as I execute the following line in python I get an error:</p>

<pre><code>In [18]: from pyhive import hive
Traceback (most recent call last):

  File "&lt;ipython-input-18-747088b97eb4&gt;", line 1, in &lt;module&gt;
    from pyhive import hive

  File "build\bdist.win32\egg\pyhive\hive.py", line 13, in &lt;module&gt;

  File "build\bdist.win32\egg\pyhive\common.py", line 8, in &lt;module&gt;

ImportError: No module named builtins
</code></pre>

<p>Can anyone indicate where I am getting it wrong? Since, I have already <strong>successfully</strong> installed the PyHive package on my machine, so I don't expect this to appear. I have been searching allot to find a reason of this error. It will be really a great time saver if I know the solution today. Thank you very much for your time and support. </p>

<p><strong>UPDATE</strong></p>

<p>I am using:</p>

<ol>
<li>Windows 7 (64-bit)</li>
<li>Python 2.7 (32-bit)</li>
<li>Anaconda2 4.1.1 (32-bit)</li>
</ol>

<p>In python 3 the module <strong>builtin</strong> was renamed to builtins.</p>

<p>It is possible that you have installed a python 3 package and trying to run it with python 2</p>

python hadoop hive