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

no errors keyword for decode in python 2.6 #44

Closed
blalor opened this issue Feb 9, 2015 · 1 comment
Closed

no errors keyword for decode in python 2.6 #44

blalor opened this issue Feb 9, 2015 · 1 comment

Comments

@blalor
Copy link

blalor commented Feb 9, 2015

Attempting to run pex on Python 2.6.8 fails. I had to add -v to see the error, otherwise it just says it can't resolve the requirement.

[root@08b6ba92511a ~]# pex --python=/usr/bin/python2.6 -r fabric -v
pex: Unknown exception encountered: decode() takes no keyword arguments
pex: Traceback (most recent call last):
pex:   File "/usr/lib/python2.6/site-packages/pex/crawler.py", line 110, in execute
pex:     roots, rels = self.crawl_link(self.context, link)
pex:   File "/usr/lib/python2.6/site-packages/pex/crawler.py", line 87, in crawl_link
pex:     return cls.crawl_remote(context, link)
pex:   File "/usr/lib/python2.6/site-packages/pex/crawler.py", line 74, in crawl_remote
pex:     content = context.content(link)
pex:   File "/usr/lib/python2.6/site-packages/pex/http.py", line 122, in content
pex:     return fp.read().decode(encoding, errors='replace')
pex: TypeError: decode() takes no keyword arguments
Traceback (most recent call last):
  File "/usr/bin/pex", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python2.6/site-packages/pex/bin/pex.py", line 325, in main
    pex_builder = build_pex(args, options)
  File "/usr/lib/python2.6/site-packages/pex/bin/pex.py", line 303, in build_pex
    cache_ttl=options.cache_ttl)
  File "/usr/lib/python2.6/site-packages/pex/resolver.py", line 220, in resolve
    raise Unsatisfiable('Cannot satisfy requirements: %s' % requirement_set[requirement.key])
pex.resolver.Unsatisfiable: Cannot satisfy requirements: [Requirement.parse('fabric')]
wickman added a commit to wickman/pex that referenced this issue Feb 15, 2015
wickman added a commit that referenced this issue Feb 15, 2015
Fix issue #44 and add a regression test.
@wickman wickman closed this as completed Feb 15, 2015
@wickman
Copy link
Contributor

wickman commented Feb 15, 2015

Fixed by #46

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

No branches or pull requests

2 participants