cloudera / impyla

Python DB API 2.0 client for Impala and Hive (HiveServer2 protocol)
Apache License 2.0
730 stars 248 forks source link

error: metadata-generation-failed at thrift when installing impyla with python 3.9.17 #520

Open kevinkim5 opened 1 year ago

kevinkim5 commented 1 year ago

I am trying to install impyla with python 3.9.17, but it returns encounters this error when pip tries to install thrift==0.16.0 (from impyla)

assert '_distutils' in core.file, core.file AssertionError: error: metadata-generation-failed

Any fix for this or python needs to downgraded?

csringhofer commented 10 months ago

I tried installing impyla with python 3.9.18 + Ubunut 20.04 and it worked without issues: sudo apt-get install python3.9 sudo apt-get install python3.9-venv python3.9 -m venv venvs/impyla520 source venvs/impyla520/bin/activate pip install impyla

Do you have an idea on what could be different in your environment?