Running setup.py bdist_wheel for cffi Failed building wheel for cryptography

I am trying to build в docker image. I have в install.sh file which will run when it is built. The contents of install.sh is схвати follows

sudo apt-get install -y python-dev python3.5 python3.5-dev
# Install virtualenv
sudo wget https://bootstrap.pypa.io/ez_setup.py -O /tmp/ez_setup.py
sudo python3.5 /tmp/ez_setup.py
sudo easy_install-3.5 pip
pip3.5 install virtualenv
#pip install -U cffi
virtualenv -p python3.5 $HOME/venv/3.5
# Install pip packages
. $HOME/venv/3.5/bin/activate
pip install pyopenssl ndg-httpsclient pyasn1
pip install nose mock pytest coverage
CFLAGS="-O0" pip install lxml
deactivate

When pip install pyopenssl ndg-httpsclient pyasn1 is executed, I recieve the following ошибка

running install_egg_info
Copying src/cryptography.egg-info to build/bdist.linux-x86_64/wheel/cryptography-1.1.1-py3.5.egg-info
running install_scripts
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ytr1o8ux/cryptography/setup.py", line 318, in <module>
**keywords_with_side_effects(sys.argv)
File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/root/venv/3.5/lib/python3.5/site-packages/wheel/bdist_wheel.py", line 213, in run
archive_basename = self.get_archive_basename()
File "/root/venv/3.5/lib/python3.5/site-packages/wheel/bdist_wheel.py", line 161, in get_archive_basename
impl_tag, abi_tag, plat_tag = self.get_tag()
File "/root/venv/3.5/lib/python3.5/site-packages/wheel/bdist_wheel.py", line 155, in get_tag
assert tag == supported_tags[0]
AssertionError

----------------------------------------
Running setup.py bdist_wheel for cffi
Failed building wheel for cryptography

After looking at this соединение, I tried to использовал updated wheels package

wget http://nipy.bic.berkeley.edu/scipy_installers/wheel-0.24.0-py2.py3-none-any.whl
pip install wheel-0.24.0-py2.py3-non-any.whl

Still the same ошибка. Inspite of this ошибка, the image is successfully built. Any help will be appreciated.

Thanks in advance.

0
задан 4 December 2015 в 13:46

1 ответ

Это, кажется, проблема с wheel пакет, как описано в этом билете: https://bitbucket.org/pypa/wheel/issues/146/wheel-building-fails-on-cpython-350b3

, Обновляющий wheel в virtualenv, должен решить проблему (версия 0.26.0 в данный момент).

1
ответ дан 30 September 2019 в 02:12

Другие вопросы по тегам:

Похожие вопросы: