Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Broken thriftpy dependency with python3 when installing v0.14.2

See original GitHub issue

Hi. With upgrade to 0.14.2 there seems to be broken thriftpy dependency. Here are some data how to reproduce the bug.


[jask@hal3042 ~]$ virtualenv -p /usr/bin/python3 venv
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/jask/venv/bin/python3
Also creating executable in /home/jask/venv/bin/python
Installing setuptools, pip, wheel...done.

[jask@hal3042 ~]$ ./venv/bin/pip install impyla
Collecting impyla
Collecting thrift>=0.9.3 (from impyla)
Collecting bitarray (from impyla)
Collecting six (from impyla)
  Using cached
Installing collected packages: six, thrift, bitarray, impyla
Successfully installed bitarray-0.8.3 impyla-0.14.2 six-1.12.0 thrift-0.11.0


[jask@hal3042 ~]$ ./venv/bin/python
Python 3.7.2 (default, Jan 16 2019, 19:49:22) 
[GCC 8.2.1 20181215 (Red Hat 8.2.1-6)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from impala.dbapi import connect
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jask/venv/lib/python3.7/site-packages/impala/", line 28, in <module>
    import impala.hiveserver2 as hs2
  File "/home/jask/venv/lib/python3.7/site-packages/impala/", line 33, in <module>
    from impala._thrift_api import (
  File "/home/jask/venv/lib/python3.7/site-packages/impala/", line 61, in <module>
    from thriftpy import load
ModuleNotFoundError: No module named 'thriftpy'

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

jirislavcommented, Feb 6, 2019

I think build tests would be useful in this case as this would not happen next time.

AbdealiLoKocommented, Aug 26, 2020

I wonder if thriftpy2 is needed anymore for py3+ ? From what I see in:

It seems to indicate that it is only a compatibility layer until thrift supports py3. As per my understanding, Thrift currently does support py3, so maybe this compat layer can just be removed now ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Broken python dependencies after trying to re-install
So i deleted all folders that were listed under whereis python , probably that was a bad idea. Now if I run sudo...
Read more >
PythonPackage — Spack 0.14.2 documentation
This file is used by package managers like pip to determine a package's dependencies and the version of dependencies required, so if the...
Read more >
thriftpy - PyPI
6+, python3.3+, pypy and pypy3. Pure python implementation. No longer need to compile & install the 'thrift' package. All you need ...
Read more >
Installing - PyGMT
We recommend using the Anaconda Python distribution to ensure you have all dependencies installed and the conda package manager available.
Read more >
Prodigy installation breaking on Python3.6
Installing the prodigy .whl on both mac and linux conda ... The problem appears to be with the installation of uvloop which is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found