Open gjask opened 5 years ago
Thanks. Working on a patch for this now. For now, python 2.x seems unaffected. For python3, running pip install thriftpy
separately should fix the problem.
I think build tests would be useful in this case as this would not happen next time.
This has indeed been an educational experience.
Because pip installs had been broken by 0.14.2 ( see issue #336 ), a patched release has been provided, that essentially just restores the last working version.
If 0.14.2 is already installed, an upgrade will install the new release, which simply repackages the last working version. This should hopefully unblock installation failures until this and other build problems can be addressed.
(impyla_test_venv) $ pip list | grep impyla
impyla 0.14.2
(impyla_test_venv) $ pip install -U impyla
Collecting impyla
Requirement already satisfied, skipping upgrade: six in ./impyla_test_venv/lib/python2.7/site-packages (from impyla) (1.12.0)
Requirement already satisfied, skipping upgrade: bitarray in ./impyla_test_venv/lib/python2.7/site-packages (from impyla) (0.8.3)
Collecting thrift<=0.9.3 (from impyla)
Installing collected packages: thrift, impyla
Found existing installation: thrift 0.11.0
Uninstalling thrift-0.11.0:
Successfully uninstalled thrift-0.11.0
Found existing installation: impyla 0.14.2
Uninstalling impyla-0.14.2:
Successfully uninstalled impyla-0.14.2
Successfully installed impyla-0.14.2.2 thrift-0.9.3
I also ran into this problem. It looks like one potential solution is to modify setup.py
to conditionally install thriftpy
(or thriftpy2
, as suggested in #329) for Python 3.
@dknupp, it looks like you've done this in https://github.com/cloudera/impyla/compare/master...dknupp:install_thriftpy_python3. I'm not super familiar with Python "environment markers" in dependencies, so while reading up on them I came across https://github.com/inveniosoftware/troubleshooting/issues/1 which describes some potential pitfalls and corner-cases when using older setuptools versions. If you're worried about those older versions then it looks like the approach taken at https://github.com/abseil/abseil-py/commit/2b6ff1281d517df54570c68f2ff69ca9f55ff32b#diff-2eeaed663bd0d25b7e608891384b7298R43 might work.
Alpha release 0.15a1 is now up on pypi for folks to try out.
pip install impyla==0.15a1
Alpha release 0.15a1 is now up on pypi for folks to try out.
pip install impyla==0.15a1
i use pip install impyla==0.15a1
order to install,but i still get error:
Traceback (most recent call last):
File "hive_test.py", line 9, in
I wonder if thriftpy2 is needed anymore for py3+ ? From what I see in: https://github.com/cloudera/impyla/blob/0284cc0850a1acf53507ba1366022fc36e6df517/impala/_thrift_api.py#L14-L18
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 ?
Hi. With upgrade to
0.14.2
there seems to be broken thriftpy dependency. Here are some data how to reproduce the bug.Installation
Run