kompira enterprise 1.6.2.post1 のインストールについて
こんにちは。
kompira enterpriseのインストールを手順通りに行っていると、
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-x11pmy_2/cryptography/setup.py", line 14, in <module>
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-x11pmy_2/cryptography/
You are using pip version 9.0.3, however version 21.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
というエラーが出ます。pipのアップデートを行い
pip 21.0.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
setuptools、setuptools_rustのアップデートも行った後に再度実行しても同じエラー画面となりインストールに失敗します。
何か解決方法はありますでしょうか?
〇環境(AWS EC2)
・OS Red Hat Enterprise Linux release 8.3 (Ootpa) CentOS Linux release 8.2.2004 (Core)
・Python 3.6.8
-
正式なコメント
pip のバージョンが古くなったため、当該のエラーが発生しているようです。
回避策として、特権ユーザで
# /opt/kompira/bin/pip install --upgrade pip
を実行したのちに改めて、install.shを実行してみて頂けますでしょうか。
コメントアクション -
回答ありがとうございます。
sudo /opt/kompira/bin/pip install --upgrade pip のちにバージョンを確認し、
pip 21.0.1 from /opt/kompira/lib64/python3.8/site-packages/pip (python 3.8)
と確認したのちもう一度インストールしますと、
src/kerberos.c:17:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/kompira/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-joewj93y/pykerberos_707035aca0644c5d9c0283864774e161/setup.py'"'"'; __file__='"'"'/tmp/pip-install-joewj93y/pykerberos_707035aca0644c5d9c0283864774e161/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-n89gwjhy/install-record.txt --single-version-externally-managed --compile --install-headers /opt/kompira/include/site/python3.8/pykerberos Check the logs for full command output.となり先ほどとは違ったエラーにより失敗してしまいます。
サインインしてコメントを残してください。
コメント
4件のコメント