commons icon indicating copy to clipboard operation
commons copied to clipboard

Error while running tests. SourcePackage is not translateable by ChainedTranslator(EggTranslator, SourceTranslator)

Open orsenthil opened this issue 10 years ago • 7 comments

On master

$ git log origin/master -n 1 |head -n 3
commit d4454f233914d0a7586da8c5d07575d8b63124fe
Author: John Sirois <[email protected]>
Date:   Mon Aug 24 15:09:53 2015

running the tests

$ ./pants test tests/python/twitter/common:all

gives me an error

Exception message: Package     SourcePackage(u'https://pypi.python.org/packages/source/w/wheel/wheel-0.24.0.tar.gz#md5=3b0d66f0d127ea8befaa5d11453107fd') is not translateable by ChainedTranslator(EggTranslator, SourceTranslator)

If I go back to an old commit (this was the latest which succeeded for me)

$ git log HEAD -n 1 |head -n 6
commit bc7248da0974ab8a39ca36956ac6880029b85b00
Author: John Sirois <[email protected]>
Date:   Sun Aug 9 20:29:10 2015

    Upgrade to pants 0.0.41

and run the tests.

$ ./pants test tests/python/twitter/common:all

The test execution is successful.

  • The difference between these versions are only about pants version update.
  • FWIW, I tried the latest version of pants in pantsbuild/pants and could not reproduce this error. I am raising this against twitter/commons

orsenthil avatar Sep 09 '15 01:09 orsenthil

I'm confused - twitter/commons ./pants test is broken for you as of d4454f233914d0a7586da8c5d07575d8b63124fe on Aug 24th, 2015 but it works as of bc7248da0974ab8a39ca36956ac6880029b85b00 on August 9th 2015 and also on latest pants. That seems to indicate this is a bug report of a past bug that is now gone in both pants and twitter/commons. What am I missing? It seems odd to file a historical bug report!

jsirois avatar Sep 09 '15 01:09 jsirois

  • twitter/commons ./pants test is broken for me on HEAD. That is d4454f233914 committed on Aug 24th, 2015.
  • I tried to move back in history to see if ./pants test works again for a particular old commit and it works against bc7248d which was on August 9th 2015.
  • To determine if this was a bug with pants itself, I tried ./pants test in the pantsbuild repo and could not reproduce it.

So, I was trying to determine, what it is these 3 versions

d4454f2 Upgrade to pants 0.0.44.
146de30 Kill cruft no longer used/needed by comons.
88377b2 Upgrade to pants 0.0.42.

That causes ./pants test to fail with the above error message in twitter/commons

orsenthil avatar Sep 09 '15 02:09 orsenthil

Ah - my apologies, Somehow I read 9th as ... September? But its not even the 9th yet - so I guess I'm crazy.

jsirois avatar Sep 09 '15 02:09 jsirois

Please re-run on HEAD , 1st mv ~/.pex /tmp/pex-save with PEX_VERBOSE=5 ./pants clean-all test .. and include the full output here.

jsirois avatar Sep 09 '15 02:09 jsirois

Here it is: https://gist.github.com/orsenthil/b070adc4e4b3fa4edf9c

pex: Translating /private/var/folders/_2/kqmfvpxj3_l3dnj5wq1y6j1c0000gn/T/tmpeoU6ID/wheel-0.24.0.tar.gz into distribution :: Packaging wheel :: Installing /var/folders/_2/kqmfvpxpex: Target package EggPackage('file:///private/var/folders/_2/kqmfvpxj3_l3dnj5wq1y6j1c0000gn/T/tmpiZeu3m/wheel-0.24.0-py2.6.egg') is not compatible with CPython-2.7.10 / macosx-10.10-x86_64
pex: Translating /private/var/folders/_2/kqmfvpxj3_l3dnj5wq1y6j1c0000gn/T/tmpeoU6ID/wheel-0.24.0.tar.gz into distribution: 499.5ms

The log shows the error is caused while pex tries to package wheel. The error message about version 2.7.10 and macosx-10.10-x86_64 is misleading because, as I said, I could run tests against an older commit and they can package wheel -0.24.0 on the same system with same interpreter properly.

orsenthil avatar Sep 09 '15 03:09 orsenthil

Thank you, that error message is actually gold:

pex: Translating /private/var/folders/_2/kqmfvpxj3_l3dnj5wq1y6j1c0000gn/T/tmpeoU6ID/wheel-0.24.0.tar.gz into distribution :: Packaging wheel :: Installing /var/folders/_2/kqmfvpxpex: Target package EggPackage('file:///private/var/folders/_2/kqmfvpxj3_l3dnj5wq1y6j1c0000gn/T/tmpiZeu3m/wheel-0.24.0-py2.6.egg') is not compatible with CPython-2.7.10 / macosx-10.10-x86_64

Note, wheel-0.24.0-py2.6.egg is not compatible with CPython-2.7.10 - which makes sense, 2.6 != 2.7.

I'll dig more later.

jsirois avatar Sep 09 '15 03:09 jsirois

Did you ever figure out what was going on here?

copumpkin avatar Feb 06 '17 23:02 copumpkin