https://pantsbuild.org/ logo
#pex
Title
# pex
c

calm-artist-46894

02/06/2020, 6:05 PM
pex version: 2.1.0 Failed to resolve requirements:
Copy code
~$ pex google-cloud-bigquery[bqstorage,pandas]~=1.17.0
Failed to execute PEX file. Needed manylinux2014_x86_64-cp-36-cp36m compatible dependencies for:
 1: grpcio<2.0dev,>=1.8.2; extra == "grpc"
    Required by:
      google-api-core==1.16.0
    But this pex only contains:
Any idea what cause the issue and possible workaround?
google-cloud-bigquery[bqstorage,pandas]
depends on
google-cloud-bigquery-storage
which then depends on
google-api-core[grpc]
which then on
grpcio >= 1.8.2, < 2.0dev
, but the dependencies wasn't resolved properly
Had to explicitly do
Copy code
pex grpcio==1.26.0 google-cloud-bigquery[bqstorage,pandas]~=1.17.0
h

happy-kitchen-89482

02/07/2020, 11:19 PM
Out of curiosity, what was the rest of the error, after "But this pex only contains:"?
I'm seeing similar errors in an unrelated context
c

calm-artist-46894

02/14/2020, 6:44 AM
It actually only contains an empty line.
Copy code
zxiong@zxiong-dt-02:~$ pex google-cloud-bigquery[bqstorage,pandas]~=1.17.0
Failed to execute PEX file. Needed manylinux2014_x86_64-cp-36-cp36m compatible dependencies for:
 1: grpcio<2.0dev,>=1.8.2; extra == "grpc"
    Required by:
      google-api-core==1.16.0
    But this pex only contains:

zxiong@zxiong-dt-02:~$ PEX_VERBOSE=9 pex google-cloud-bigquery[bqstorage,pandas]~=1.17.0
pex: Installed VendorImporter(root='/home/zxiong/.local/lib/python3.6/site-packages', importables=(_Importable(module='pyparsing', is_pkg=False, path='pex/vendor/_vendored/packaging', prefix='pex.third_party'), _Importable(module='six', is_pkg=False, path='pex/vendor/_vendored/packaging', prefix='pex.third_party'), _Importable(module='packaging', is_pkg=True, path='pex/vendor/_vendored/packaging', prefix='pex.third_party'), _Importable(module='pip', is_pkg=True, path='pex/vendor/_vendored/pip', prefix='pex.third_party'), _Importable(module='pkg_resources', is_pkg=True, path='pex/vendor/_vendored/setuptools', prefix='pex.third_party'), _Importable(module='setuptools', is_pkg=True, path='pex/vendor/_vendored/setuptools', prefix='pex.third_party'), _Importable(module='wheel', is_pkg=True, path='pex/vendor/_vendored/wheel', prefix='pex.third_party')))
pex: pex.third_party.packaging imported via _Loader(module_name='pex.third_party.packaging', vendor_module_name='pex.vendor._vendored.packaging.packaging')
pex: pex.third_party.pyparsing imported via _Loader(module_name='pex.third_party.pyparsing', vendor_module_name='pex.vendor._vendored.packaging.pyparsing')
pex: pex.third_party.pkg_resources imported via _Loader(module_name='pex.third_party.pkg_resources', vendor_module_name='pex.vendor._vendored.setuptools.pkg_resources')
pex: pex.third_party.pkg_resources.extern imported via _Loader(module_name='pex.third_party.pkg_resources.extern', vendor_module_name='pex.vendor._vendored.setuptools.pkg_resources.extern')
pex: pex.third_party.pkg_resources.extern.six imported via _Loader(module_name='pex.third_party.pkg_resources.extern.six', vendor_module_name='pex.vendor._vendored.setuptools.pkg_resources.extern.six')
pex: pex.third_party.pkg_resources.extern.six.moves imported via _Loader(module_name='pex.third_party.pkg_resources.extern.six.moves', vendor_module_name='pex.vendor._vendored.setuptools.pkg_resources.extern.six.moves')
pex: pex.third_party.pkg_resources.extern.packaging imported via _Loader(module_name='pex.third_party.pkg_resources.extern.packaging', vendor_module_name='pex.vendor._vendored.setuptools.pkg_resources.extern.packaging')
pex: pex.third_party.pkg_resources.extern.packaging.version imported via _Loader(module_name='pex.third_party.pkg_resources.extern.packaging.version', vendor_module_name='pex.vendor._vendored.setuptools.pkg_resources.extern.packaging.version')
pex: pex.third_party.pkg_resources.extern.packaging.specifiers imported via _Loader(module_name='pex.third_party.pkg_resources.extern.packaging.specifiers', vendor_module_name='pex.vendor._vendored.setuptools.pkg_resources.extern.packaging.specifiers')
pex: pex.third_party.pkg_resources.extern.pyparsing imported via _Loader(module_name='pex.third_party.pkg_resources.extern.pyparsing', vendor_module_name='pex.vendor._vendored.setuptools.pkg_resources.extern.pyparsing')
pex: pex.third_party.pkg_resources.extern.six.moves.urllib imported via _Loader(module_name='pex.third_party.pkg_resources.extern.six.moves.urllib', vendor_module_name='pex.vendor._vendored.setuptools.pkg_resources.extern.six.moves.urllib')
pex: pex.third_party.pkg_resources.extern.packaging.requirements imported via _Loader(module_name='pex.third_party.pkg_resources.extern.packaging.requirements', vendor_module_name='pex.vendor._vendored.setuptools.pkg_resources.extern.packaging.requirements')
pex: pex.third_party.pkg_resources.extern.packaging.markers imported via _Loader(module_name='pex.third_party.pkg_resources.extern.packaging.markers', vendor_module_name='pex.vendor._vendored.setuptools.pkg_resources.extern.packaging.markers')
pex: pex.third_party.pkg_resources imported via _Loader(module_name='pex.third_party.pkg_resources', vendor_module_name='pex.vendor._vendored.setuptools.pkg_resources')
Failed to execute PEX file. Needed manylinux2014_x86_64-cp-36-cp36m compatible dependencies for:
 1: grpcio<2.0dev,>=1.8.2; extra == "grpc"
    Required by:
      google-api-core==1.16.0
    But this pex only contains:

zxiong@zxiong-dt-02:~$
h

happy-kitchen-89482

02/18/2020, 11:19 AM
thanks!