Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

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

Open
orsenthil opened this issue Sep 9, 2015 · 7 comments

Comments

@orsenthil
Copy link
Contributor

On master

$ git log origin/master -n 1 |head -n 3
commit d4454f233914d0a7586da8c5d07575d8b63124fe
Author: John Sirois <john.sirois@gmail.com>
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 <john.sirois@gmail.com>
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
@jsirois
Copy link
Contributor

jsirois commented Sep 9, 2015

I'm confused - twitter/commons ./pants test is broken for you as of d4454f2 on Aug 24th, 2015 but it works as of bc7248d 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!

@orsenthil
Copy link
Contributor Author

  • twitter/commons ./pants test is broken for me on HEAD. That is d4454f2 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

@jsirois
Copy link
Contributor

jsirois commented Sep 9, 2015

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

@jsirois
Copy link
Contributor

jsirois commented Sep 9, 2015

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.

@orsenthil
Copy link
Contributor Author

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.

@jsirois
Copy link
Contributor

jsirois commented Sep 9, 2015

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.

@copumpkin
Copy link

Did you ever figure out what was going on here?

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants