https://pantsbuild.org/ logo
#general
Title
# general
b

best-nightfall-7221

12/11/2019, 8:56 PM
Hi, I'm trying to build a pex that references a
python_requirements_library
and getting this. Whats the best way to debug it?
Copy code
Exception message: Package SourcePackage(u'file:///aiq/build/.pants.d/python-setup/resolved_requirements/CPython-2.7.6/mysqlclient-1.4.6.tar.gz') is not translateable by ChainedTranslator(WheelTranslator, EggTranslator, SourceTranslator)
-ldebug
doesnt tell me much. I do have a build cache but disabled it, and
python-repos
is only pointing to a local dir with only that wheel. And this works fine:
Copy code
pip wheel --no-cache-dir mysqlclient==1.4.6 --wheel-dir=./
pip install ./mysqlclient-xxx-none-linux.whl
I'm on ubuntu14 and ub18 and noticed in one case, it builds a
none
wheel, in another case it builds
cp27mu
. But fails to
pants1.7 binary :mypex
in both cases.
h

happy-kitchen-89482

12/12/2019, 1:49 AM
What version of pants are you on?
Try running with PEX_VERBOSE=9 PEX_DEBUG=9 (I forget which is relevant here) in your environment, that may give something useful.
b

best-nightfall-7221

12/12/2019, 3:11 AM
That worked! (I mean, still fails, but gave me info to debug further). Thanks. I suppose I should have checked the pex docs, not the pants docs. FYI I'm on 1.7, does newer pants make
-ldebug
get passed on to each various goal?
2 Views