Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raised pex.resolver.Untranslateable when trying to use lxml library #397

Closed
askaliuk opened this issue Jul 26, 2017 · 2 comments
Closed
Labels

Comments

@askaliuk
Copy link

On OSX El Captain 10.11.6

$ pex lxml==3.7.3 --platform linux-x86_64
Traceback (most recent call last):
  File "/Users/test/.virtualenvs/gagarin/bin/pex", line 9, in <module>
    load_entry_point('pex==1.2.9', 'console_scripts', 'pex')()
  File "/Users/test/.virtualenvs/gagarin/lib/python2.7/site-packages/pex/bin/pex.py", line 596, in main
    pex_builder = build_pex(reqs, options, resolver_options_builder)
  File "/Users/test/.virtualenvs/gagarin/lib/python2.7/site-packages/pex/bin/pex.py", line 547, in build_pex
    for dist in resolveds:
  File "/Users/test/.virtualenvs/gagarin/lib/python2.7/site-packages/pex/resolver.py", line 438, in resolve_multi
    allow_prereleases):
  File "/Users/test/.virtualenvs/gagarin/lib/python2.7/site-packages/pex/resolver.py", line 376, in resolve
    return resolver.resolve(resolvables_from_iterable(requirements, builder))
  File "/Users/test/.virtualenvs/gagarin/lib/python2.7/site-packages/pex/resolver.py", line 209, in resolve
    dist = self.build(package, resolvable.options)
  File "/Users/test/.virtualenvs/gagarin/lib/python2.7/site-packages/pex/resolver.py", line 282, in build
    dist = super(CachingResolver, self).build(package, options)
  File "/Users/test/.virtualenvs/gagarin/lib/python2.7/site-packages/pex/resolver.py", line 177, in build
    raise Untranslateable('Package %s is not translateable by %s' % (package, translator))
pex.resolver.Untranslateable: Package SourcePackage(u'file:///Users/test/.pex/build/lxml-3.7.3.tar.gz') is not translateable by ChainedTranslator(WheelTranslator, EggTranslator, SourceTranslator)
@jsirois
Copy link
Member

jsirois commented Jul 26, 2017

In order to build a pex that supports a platform other than the current platform, you need to point pex at pre-built binary packages (wheel or egg) for the foreign platform. Your command line suggests you haven't done this since there are no flags customizing resolution (ie: pex is trying to find a linux-x86_64 lxml on pypi and failing).

@jsirois
Copy link
Member

jsirois commented Jul 26, 2017

Closing this as answered but please re-open if this explanation is not enough to help you get past this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants