Hi, I'm trying to build a pex that references a `p...
# general
b
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
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
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?