laughingman7743 / PyAthenaJDBC

PyAthenaJDBC is an Amazon Athena JDBC driver wrapper for the Python DB API 2.0 (PEP 249).
MIT License
95 stars 31 forks source link

Pinned the JPype version to 0.7.1 or less #94

Closed laughingman7743 closed 4 years ago

laughingman7743 commented 4 years ago

https://github.com/jpype-project/jpype/commit/f4f9321d691176067ac404a6412676ea8b9da7c9#diff-2eeaed663bd0d25b7e608891384b7298

laughingman7743 commented 4 years ago

https://travis-ci.com/github/laughingman7743/PyAthenaJDBC/jobs/298264898

CLICK ME

``` $ python --version Python 2.7.15 $ pip --version pip 19.0.3 from /home/travis/virtualenv/python2.7.15/lib/python2.7/site-packages/pip (python 2.7) install 7.22s$ pip install tox codecov awscli before_script 2.71s$ ./scripts/test_data/upload_test_data.sh 11.51s$ tox GLOB sdist-make: /home/travis/build/laughingman7743/PyAthenaJDBC/setup.py py27 create: /home/travis/build/laughingman7743/PyAthenaJDBC/.tox/py27 py27 installdeps: futures, SQLAlchemy>=1.0.0, <2.0.0, numpy>=1.6, pytest>=3.5, pytest-cov, pytest-flake8>=1.0.1 py27 inst: /home/travis/build/laughingman7743/PyAthenaJDBC/.tox/.tmp/package/1/PyAthenaJDBC-2.0.5.zip ERROR: invocation failed (exit code 1), logfile: /home/travis/build/laughingman7743/PyAthenaJDBC/.tox/py27/log/py27-2.log ================================== log start =================================== Processing ./.tox/.tmp/package/1/PyAthenaJDBC-2.0.5.zip Collecting future (from PyAthenaJDBC==2.0.5) Collecting jpype1>=0.6.0 (from PyAthenaJDBC==2.0.5) Using cached https://files.pythonhosted.org/packages/a0/7a/52a266ca5566b0aea704fa8fc986d92eeaaa47ffcf61598b86a1e007bf9e/JPype1-0.7.2.tar.gz Collecting botocore>=1.0.0 (from PyAthenaJDBC==2.0.5) Using cached https://files.pythonhosted.org/packages/dc/40/058c6fbb24a721581a956ddde36cee0321ac496a6778dd76c910dd7eb381/botocore-1.15.21-py2.py3-none-any.whl Collecting python-dateutil<3.0.0,>=2.1 (from botocore>=1.0.0->PyAthenaJDBC==2.0.5) Using cached https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl Collecting jmespath<1.0.0,>=0.7.1 (from botocore>=1.0.0->PyAthenaJDBC==2.0.5) Using cached https://files.pythonhosted.org/packages/a3/43/1e939e1fcd87b827fe192d0c9fc25b48c5b3368902bfb913de7754b0dc03/jmespath-0.9.5-py2.py3-none-any.whl Collecting docutils<0.16,>=0.10 (from botocore>=1.0.0->PyAthenaJDBC==2.0.5) Using cached https://files.pythonhosted.org/packages/3a/dc/bf2b15d1fa15a6f7a9e77a61b74ecbbae7258558fcda8ffc9a6638a6b327/docutils-0.15.2-py2-none-any.whl Collecting urllib3<1.26,>=1.20; python_version != "3.4" (from botocore>=1.0.0->PyAthenaJDBC==2.0.5) Using cached https://files.pythonhosted.org/packages/e8/74/6e4f91745020f967d09332bb2b8b9b10090957334692eb88ea4afe91b77f/urllib3-1.25.8-py2.py3-none-any.whl Requirement already satisfied: six>=1.5 in ./.tox/py27/lib/python2.7/site-packages (from python-dateutil<3.0.0,>=2.1->botocore>=1.0.0->PyAthenaJDBC==2.0.5) (1.14.0) Building wheels for collected packages: PyAthenaJDBC, jpype1 Running setup.py bdist_wheel for PyAthenaJDBC: started Running setup.py bdist_wheel for PyAthenaJDBC: finished with status 'done' Stored in directory: /home/travis/.cache/pip/wheels/36/f7/ff/a5ea558bcf6a60505b07802b4b5c86383c30e07fc390799e06 Running setup.py bdist_wheel for jpype1: started Running setup.py bdist_wheel for jpype1: finished with status 'error' Complete output from command /home/travis/build/laughingman7743/PyAthenaJDBC/.tox/py27/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-lrOVd4/jpype1/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-gFe5eH --python-tag cp27: Found native jni.h at /usr/local/lib/jvm/openjdk11/include /opt/python/2.7.15/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'use_scm_version' warnings.warn(msg) running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/jpype copying jpype/_linux.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_darwin.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jpackage.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jcollection.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jexception.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/pickle.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/beans.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jmethod.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/imports.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_cygwin.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jcomparable.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_core.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jstring.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_classpath.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jtypes.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_gui.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jobject.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jinit.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jcustomizer.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_pykeywords.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/types.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jvmfinder.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_windows.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/__init__.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jclass.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jarray.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jproxy.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jio.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/nio.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/reflect.py -> build/lib.linux-x86_64-2.7/jpype running build_ext running build_java Using Jar cache creating build/lib creating build/lib/org creating build/lib/org/jpype creating build/lib/org/jpype/classloader copying native/jars/org/jpype/classloader/JPypeClassLoader.class -> build/lib/org/jpype/classloader copying native/jars/org.jpype.jar -> build/lib running build_thunk Building thunks including thunk build/lib/org/jpype/classloader/JPypeClassLoader.class Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-lrOVd4/jpype1/setup.py", line 52, in use_scm_version = True, File "/home/travis/build/laughingman7743/PyAthenaJDBC/.tox/py27/lib/python2.7/site-packages/setuptools/__init__.py", line 140, in setup return distutils.core.setup(**attrs) File "/opt/python/2.7.15/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/opt/python/2.7.15/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/opt/python/2.7.15/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/home/travis/build/laughingman7743/PyAthenaJDBC/.tox/py27/lib/python2.7/site-packages/wheel/bdist_wheel.py", line 188, in run self.run_command('build') File "/opt/python/2.7.15/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/opt/python/2.7.15/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/opt/python/2.7.15/lib/python2.7/distutils/command/build.py", line 127, in run self.run_command(cmd_name) File "/opt/python/2.7.15/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/opt/python/2.7.15/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/home/travis/build/laughingman7743/PyAthenaJDBC/.tox/py27/lib/python2.7/site-packages/setuptools/command/build_ext.py", line 78, in run _build_ext.run(self) File "/opt/python/2.7.15/lib/python2.7/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "setupext/build_ext.py", line 73, in build_extensions self.run_command("build_thunk") File "/opt/python/2.7.15/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/opt/python/2.7.15/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setupext/build_thunk.py", line 153, in run namespace="JPThunk") File "setupext/build_thunk.py", line 103, in createThunks outputClass(filename, name, fimpl) File "setupext/build_thunk.py", line 53, in outputClass output(fout, l) File "setupext/build_thunk.py", line 36, in output buffer.frombytes(l) AttributeError: 'array.array' object has no attribute 'frombytes' ---------------------------------------- Failed building wheel for jpype1 Running setup.py clean for jpype1 Successfully built PyAthenaJDBC Failed to build jpype1 Installing collected packages: future, jpype1, python-dateutil, jmespath, docutils, urllib3, botocore, PyAthenaJDBC Running setup.py install for jpype1: started Running setup.py install for jpype1: finished with status 'error' Complete output from command /home/travis/build/laughingman7743/PyAthenaJDBC/.tox/py27/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-lrOVd4/jpype1/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-GJkU2U/install-record.txt --single-version-externally-managed --compile --install-headers /home/travis/build/laughingman7743/PyAthenaJDBC/.tox/py27/include/site/python2.7/jpype1: Found native jni.h at /usr/local/lib/jvm/openjdk11/include /opt/python/2.7.15/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'use_scm_version' warnings.warn(msg) running install running build running build_py creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/jpype copying jpype/_linux.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_darwin.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jpackage.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jcollection.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jexception.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/pickle.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/beans.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jmethod.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/imports.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_cygwin.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jcomparable.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_core.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jstring.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_classpath.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jtypes.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_gui.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jobject.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jinit.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jcustomizer.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_pykeywords.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/types.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jvmfinder.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_windows.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/__init__.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jclass.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jarray.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jproxy.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/_jio.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/nio.py -> build/lib.linux-x86_64-2.7/jpype copying jpype/reflect.py -> build/lib.linux-x86_64-2.7/jpype running build_ext running build_java Using Jar cache copying native/jars/org/jpype/classloader/JPypeClassLoader.class -> build/lib/org/jpype/classloader copying native/jars/org.jpype.jar -> build/lib running build_thunk Building thunks including thunk build/lib/org/jpype/classloader/JPypeClassLoader.class Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-lrOVd4/jpype1/setup.py", line 52, in use_scm_version = True, File "/home/travis/build/laughingman7743/PyAthenaJDBC/.tox/py27/lib/python2.7/site-packages/setuptools/__init__.py", line 140, in setup return distutils.core.setup(**attrs) File "/opt/python/2.7.15/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/opt/python/2.7.15/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/opt/python/2.7.15/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/home/travis/build/laughingman7743/PyAthenaJDBC/.tox/py27/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/opt/python/2.7.15/lib/python2.7/distutils/command/install.py", line 563, in run self.run_command('build') File "/opt/python/2.7.15/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/opt/python/2.7.15/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/opt/python/2.7.15/lib/python2.7/distutils/command/build.py", line 127, in run self.run_command(cmd_name) File "/opt/python/2.7.15/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/opt/python/2.7.15/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/home/travis/build/laughingman7743/PyAthenaJDBC/.tox/py27/lib/python2.7/site-packages/setuptools/command/build_ext.py", line 78, in run _build_ext.run(self) File "/opt/python/2.7.15/lib/python2.7/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "setupext/build_ext.py", line 73, in build_extensions self.run_command("build_thunk") File "/opt/python/2.7.15/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/opt/python/2.7.15/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setupext/build_thunk.py", line 153, in run namespace="JPThunk") File "setupext/build_thunk.py", line 103, in createThunks outputClass(filename, name, fimpl) File "setupext/build_thunk.py", line 53, in outputClass output(fout, l) File "setupext/build_thunk.py", line 36, in output buffer.frombytes(l) AttributeError: 'array.array' object has no attribute 'frombytes' ---------------------------------------- Command "/home/travis/build/laughingman7743/PyAthenaJDBC/.tox/py27/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-lrOVd4/jpype1/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-GJkU2U/install-record.txt --single-version-externally-managed --compile --install-headers /home/travis/build/laughingman7743/PyAthenaJDBC/.tox/py27/include/site/python2.7/jpype1" failed with error code 1 in /tmp/pip-install-lrOVd4/jpype1/ =================================== log end ==================================== ___________________________________ summary ____________________________________ ERROR: py27: InvocationError for command /home/travis/build/laughingman7743/PyAthenaJDBC/.tox/py27/bin/python -m pip install --exists-action w .tox/.tmp/package/1/PyAthenaJDBC-2.0.5.zip (exited with code 1) The command "tox" exited with 1. cache.2 store build cache Done. Your build exited with 1. ````

codecov[bot] commented 4 years ago

Codecov Report

Merging #94 into master will increase coverage by 0.16%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #94      +/-   ##
==========================================
+ Coverage   90.71%   90.87%   +0.16%     
==========================================
  Files           8        8              
  Lines         603      603              
==========================================
+ Hits          547      548       +1     
+ Misses         56       55       -1
Impacted Files Coverage Δ
pyathenajdbc/converter.py 81.48% <0%> (+0.92%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update dcee649...0f00435. Read the comment docs.