mysterious-farmer-45668
08/13/2018, 10:25 PMmysterious-farmer-45668
08/13/2018, 10:25 PMException caught: (<class 'pex.resolver.Untranslateable'>)
Exception message: Package SourcePackage(u'file:///Users/seolh001/projects/de-monorepo/.pants.d/python-setup/resolved_requirements/CPython-2.7.14/thrift-0.11.0.tar.gz') is not translateable by ChainedTranslator(WheelTranslator, EggTranslator, SourceTranslator)
mysterious-farmer-45668
08/13/2018, 10:26 PMmysterious-farmer-45668
08/13/2018, 10:35 PMmysterious-farmer-45668
08/13/2018, 10:39 PMpex: Target package WheelPackage('file:///private/var/folders/7y/9l6fcjcn6pj__cgcnk3ggdxwzs6css/T/tmpKOdQHO/thrift-0.11.0-cp27-cp27m-macosx_10_12_x86_64.whl') is not compatible with [('cp27', 'cp27u', 'linux_x86_64'), ('cp27', 'cp27m', 'manylinux1_x86_64'), ('py2', 'none', 'any'), ('cp27', 'cp27mu', 'manylinux1_x86_64'), ('cp27', 'none', 'any'), ('cp27', 'cp27dm', 'manylinux1_x86_64'), ('cp27', 'cp27u', 'manylinux1_x86_64'), ('cp27', 'cp27d', 'manylinux1_x86_64'), ('cp27', 'cp27mu', 'linux_x86_64'), ('cp27', 'none', 'linux_x86_64'), ('py2', 'none', 'linux_x86_64'), ('cp27', 'cp27dm', 'linux_x86_64'), ('cp27', 'cp27d', 'linux_x86_64'), ('cp27', 'cp27m', 'linux_x86_64'), ('py27', 'none', 'any'), ('cp27', 'cp27dmu', 'linux_x86_64'), ('cp27', 'none', 'manylinux1_x86_64'), ('cp2', 'none', 'any'), ('py2', 'none', 'manylinux1_x86_64'), ('cp27', 'cp27dmu', 'manylinux1_x86_64')]
pex: Packaging thrift: 3206.8ms
mysterious-farmer-45668
08/13/2018, 10:51 PMenough-analyst-54434
08/13/2018, 10:54 PMmysterious-farmer-45668
08/13/2018, 10:54 PMmysterious-farmer-45668
08/13/2018, 11:02 PMmysterious-farmer-45668
08/13/2018, 11:03 PMthrfit-0.11.0-cp27-cp27m-macosx_10_12_x86_64.whl
be attempted to packaged when I specified that the platform should be linux-x86_64
?mysterious-farmer-45668
08/13/2018, 11:03 PMmysterious-farmer-45668
08/13/2018, 11:14 PMmysterious-farmer-45668
08/13/2018, 11:15 PMcp27-cp27mu-linux_x86_64
and another for cp27-cp27mu-manylinux1_x86_64
? my guess would be nowide-energy-11069
08/13/2018, 11:21 PMwide-energy-11069
08/13/2018, 11:22 PMdazzling-florist-39383
08/15/2018, 3:30 PMaloof-angle-91616
08/18/2018, 2:34 PM./pants binary src/python/pants/util:s3_log_aggregator_bin
-- is the correct way to solve this to not download a .tar.gz
for the s3-log-parse
package (which pex doesn't appear to know how to deal with), or define a new EggTgzArchiveTranslator
which can understand this?aloof-angle-91616
08/18/2018, 2:36 PMplatforms = ['current']
to the python_binary()
target at src/python/pants/util:s3_log_aggregator_bin
aloof-angle-91616
08/18/2018, 2:37 PMaloof-angle-91616
08/18/2018, 2:37 PMaloof-angle-91616
08/18/2018, 2:38 PM> tar --list -f ~/.cache/pants/python_cache/requirements/CPython-2.7.15/s3-log-parse-0.1.1.tar.gz
s3-log-parse-0.1.1/
s3-log-parse-0.1.1/s3_log_parse.egg-info/
s3-log-parse-0.1.1/s3_log_parse.egg-info/dependency_links.txt
s3-log-parse-0.1.1/s3_log_parse.egg-info/requires.txt
s3-log-parse-0.1.1/s3_log_parse.egg-info/top_level.txt
s3-log-parse-0.1.1/s3_log_parse.egg-info/entry_points.txt
s3-log-parse-0.1.1/s3_log_parse.egg-info/SOURCES.txt
s3-log-parse-0.1.1/s3_log_parse.egg-info/PKG-INFO
s3-log-parse-0.1.1/setup.py
s3-log-parse-0.1.1/setup.cfg
s3-log-parse-0.1.1/PKG-INFO
s3-log-parse-0.1.1/s3logparse/
s3-log-parse-0.1.1/s3logparse/__init__.py
s3-log-parse-0.1.1/s3logparse/cli.py
s3-log-parse-0.1.1/s3logparse/s3logparse.py
s3-log-parse-0.1.1/README.rst
aloof-angle-91616
08/18/2018, 2:48 PMaloof-angle-91616
08/18/2018, 2:56 PM./pants run <target...>
to have access to the pants environment? this excerpt from above: pkg_resources.VersionConflict: (pycodestyle 2.4.0 (/home/cosmicexplorer/tools/pants/build-support/pants_dev_deps.venv/lib/python2.7/site-packages), Requirement.parse('pycodestyle<2.4.0,>=2.0.0'))
seems to imply the pants venv is interacting with the PYTHONPATH
exposed to python binaries? because the target src/python/pants/util:s3_log_aggregator_bin
i think shouldn't be getting anything from the pants venv? i could be way mistaken. in fact, that's probably wrong in that that python binary target depends on 3rdparty/python:future
, which is in requirements.txt
and therefore probably taken from the pants venv intentionally (an except of the BUILD file): python_library(
name = 's3_log_aggregator',
sources = ['s3_log_aggregator.py'],
dependencies = [
'3rdparty/python:future',
'3rdparty/python:s3logparse'
]
)
python_binary(
name = 's3_log_aggregator_bin',
entry_point = 'pants.util.s3_log_aggregator',
dependencies = [
':s3_log_aggregator'
]
)
aloof-angle-91616
08/18/2018, 3:15 PMaloof-angle-91616
08/18/2018, 3:16 PMaloof-angle-91616
08/18/2018, 3:20 PMenough-analyst-54434
08/21/2018, 4:47 PMrough-minister-58256
08/21/2018, 6:59 PMenough-analyst-54434
08/21/2018, 7:16 PMaloof-angle-91616
08/25/2018, 2:07 AM