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

Pantsbuild fails to install cryptography-2.1.1 #3987

Closed
jincetomvinfy opened this issue Oct 19, 2017 · 16 comments
Closed

Pantsbuild fails to install cryptography-2.1.1 #3987

jincetomvinfy opened this issue Oct 19, 2017 · 16 comments

Comments

@jincetomvinfy
Copy link

I try to run a dockerized pants build for a scala project and it fails with an error message "error in cryptography setup command: Invalid environment marker: python_version < '3' ". I haven't manually specified anything to install cryptography. In the documentation of cryptography I could see that it happens either because of pip or setuptools is out of date. I tried to update this and there was no difference. It was working fine till 12 October 2017 (approx) and later it turned to be not functional.

I use the following versions of

Ubuntu -14.04

python -2.7.4

pants -1.0.0 (tried upgrading to 1.1.0 but no difference).

Any guidance would be highly appreciated.

@tiran
Copy link
Contributor

tiran commented Oct 19, 2017

Upgrade to the latest version of setuptools and pip, https://cryptography.readthedocs.io/en/latest/faq/#installing-cryptography-fails-with-invalid-environment-marker-python-version-3

@jincetomvinfy
Copy link
Author

I already tried updating that. But that didn't resolve the issue and I have already mentioned that in the question

@alex
Copy link
Member

alex commented Oct 19, 2017

Can you include a full traceback?

@jincetomvinfy
Copy link
Author

please find the full traceback

image

@jincetomvinfy
Copy link
Author

image

@jincetomvinfy
Copy link
Author

image

@jincetomvinfy
Copy link
Author

image

@jincetomvinfy
Copy link
Author

image

@alex
Copy link
Member

alex commented Oct 19, 2017

In the future, please post tracebacks as text, rather than as images, it makes things much simple to read.

Can you try upgrading to a newer version of pants, at least 1.1.2 or great.

@jincetomvinfy
Copy link
Author

I tried to update pants to 1.2.0 which is the stable version after 1.1.0 (which I had already tried). But the problem is, our codebase is large and it has several dependencies that can't be resolved by this new version of pants. Since the migration is a time consuming task, and our team is blocked by this issue, can there be any other alternative work around?

@alex
Copy link
Member

alex commented Oct 19, 2017

From my reading of the pex source code, it pins the version of setuptools it uses, and the versions it supports were bumped in more recent releases.

You'd have to ask the pants/pex team if there's a workaround on their side.

@jincetomvinfy
Copy link
Author

Okay thanks for the info, if you come to any solution from your side, please keep us posted here.

@aayush26
Copy link

 Downloading cryptography-2.1.1.tar.gz (441kB)

100% |████████████████████████████████| 450kB 2.3MB/s

Complete output from command python setup.py egg_info:

error in cryptography setup command: Invalid environment marker: platform_python_implementation != 'PyPy'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-0R7v1L/cryptography/

Is this error related to it? This error recently started to come while building my repo in Travis CI. Earlier, this issue never came.

$ python --version

Python 2.7.10 (7e8df3df9641, Jun 14 2016, 13:58:02)

[PyPy 5.3.1 with GCC 4.8.2]

$ pip --version

pip 8.1.2 from /home/travis/virtualenv/pypy-5.3.1/site-packages (python 2.7)

@alex
Copy link
Member

alex commented Oct 20, 2017

That error indicates an out of date version of setuptools, please try upgrading it.

@aayush26
Copy link

aayush26 commented Oct 20, 2017

@alex From which version of setuptools onwards, this issue should be resolved?

@alex
Copy link
Member

alex commented Oct 21, 2017

18.5 or greater I believe.

Closing this issue as there's no cryptography bug here.

@alex alex closed this as completed Oct 21, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants