简体   繁体   English

运行裤子构建时无法安装加密

[英]Fails to install cryptography when a pants build is run

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' ". 我尝试为scala项目运行dockerized裤子构建,但失败,并显示一条错误消息“ 密码设置命令错误:无效的环境标记: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. 在密码学文档中,我可以看到它是由于pip或setuptools过期而发生的。 I tried to update this as well. 我也尝试对此进行更新。 But in case of pants I'm not very sure where should I specify this also. 但是对于裤子,我不太确定该在哪里指定。 I specified this in pants file and in thidparty " requirements.txt " file. 我在裤子文件和thidparty的“ requirements.txt ”文件中指定了此文件。 But no difference . 但是没有区别。 It was working fine but suddenly it failed one day. 它工作正常,但是突然有一天失败了。

I use the following versions of 我使用以下版本

Ubuntu -14.04 Ubuntu -14.04

python -2.7.4 python -2.7.4

pants -1.0.0 (tried upgrading to 1.1.0 but no difference) 裤子-1.0.0(尝试升级到1.1.0,但没有区别)

Explicitly mentioning following versions in requirements.txt for pants builds will resolve the issue 在长裤中明确提到require.txt中的以下版本将解决此问题

pycparser==2.17 cryptography==2.0.1 pycparser == 2.17密码== 2.0.1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM