Я сталкиваюсь с этой ошибкой при стеке devstack.
Команда «python setup.py egg_info» завершилась с ошибкой с кодом 1 в / opt / stack / keystone /
Если кто-нибудь знаетпочему это происходит и что за исправление было бы очень ценно.Я склонен пытаться обновить PIP, но я знаю, что это в виртуальной среде.Как мне обновить pip для виртуальной среды?
Спасибо!
+inc/python:pip_install:359 sudo -H http_proxy= https_proxy= no_proxy= PIP_FIND_LINKS= SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite /usr/local/bin/pip2.7 install -c /opt/stack/requirements/upper-constraints.txt --upgrade -r /opt/stack/keystone/test-requirements.txt -e /opt/stack/keystone
Ignoring Django: markers 'python_version == "3.4"' don't match your environment
Ignoring Django: markers 'python_version == "3.5"' don't match your environment
Ignoring Django: markers 'python_version == "3.6"' don't match your environment
Ignoring SecretStorage: markers 'python_version == "3.4"' don't match your environment
Ignoring SecretStorage: markers 'python_version == "3.5"' don't match your environment
Ignoring SecretStorage: markers 'python_version == "3.6"' don't match your environment
Ignoring asyncio: markers 'python_version == "3.4"' don't match your environment
Ignoring asyncio: markers 'python_version == "3.5"' don't match your environment
Ignoring asyncio: markers 'python_version == "3.6"' don't match your environment
Ignoring cmd2: markers 'python_version == "3.4"' don't match your environment
Ignoring cmd2: markers 'python_version == "3.5"' don't match your environment
Ignoring cmd2: markers 'python_version == "3.6"' don't match your environment
Ignoring dnspython3: markers 'python_version == "3.4"' don't match your environment
Ignoring dnspython3: markers 'python_version == "3.5"' don't match your environment
Ignoring dnspython3: markers 'python_version == "3.6"' don't match your environment
Ignoring jeepney: markers 'python_version == "3.4"' don't match your environment
Ignoring jeepney: markers 'python_version == "3.5"' don't match your environment
Ignoring jeepney: markers 'python_version == "3.6"' don't match your environment
Ignoring mypy: markers 'python_version == "3.4"' don't match your environment
Ignoring mypy: markers 'python_version == "3.5"' don't match your environment
Ignoring mypy: markers 'python_version == "3.6"' don't match your environment
Ignoring mypy-extensions: markers 'python_version == "3.4"' don't match your environment
Ignoring mypy-extensions: markers 'python_version == "3.5"' don't match your environment
Ignoring mypy-extensions: markers 'python_version == "3.6"' don't match your environment
Ignoring typed-ast: markers 'python_version == "3.4"' don't match your environment
Ignoring typed-ast: markers 'python_version == "3.5"' don't match your environment
Ignoring typed-ast: markers 'python_version == "3.6"' don't match your environment
Obtaining file:///opt/stack/keystone
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/stack/keystone/setup.py", line 29, in <module>
pbr=True)
File "/usr/local/lib/python2.7/dist-packages/setuptools/__init__.py", line 140, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 370, in __init__
k: v for k, v in attrs.items()
File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 529, in finalize_options
ep.load()(self, ep.name, value)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2332, in load
return self.resolve()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2338, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python2.7/dist-packages/pbr/core.py", line 53, in <module>
from pbr import util
File "/usr/local/lib/python2.7/dist-packages/pbr/util.py", line 86, in <module>
import pbr.hooks
File "/usr/local/lib/python2.7/dist-packages/pbr/hooks/__init__.py", line 16, in <module>
from pbr.hooks import backwards
File "/usr/local/lib/python2.7/dist-packages/pbr/hooks/backwards.py", line 17, in <module>
from pbr import packaging
File "/usr/local/lib/python2.7/dist-packages/pbr/packaging.py", line 45, in <module>
from pbr import testr_command
File "/usr/local/lib/python2.7/dist-packages/pbr/testr_command.py", line 162, in <module>
from testrepository import commands
File "/usr/local/lib/python2.7/dist-packages/testrepository/commands/__init__.py", line 40, in <module>
import subunit
File "/usr/local/lib/python2.7/dist-packages/subunit/__init__.py", line 130, in <module>
from testtools import content, content_type, ExtendedToOriginalDecorator
File "/usr/local/lib/python2.7/dist-packages/testtools/__init__.py", line 71, in <module>
from testtools.testcase import (
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 189, in <module>
fixtures = try_import('fixtures')
File "/usr/local/lib/python2.7/dist-packages/extras/__init__.py", line 50, in try_import
__import__(module_name)
File "/usr/local/lib/python2.7/dist-packages/fixtures/__init__.py", line 89, in <module>
from fixtures._fixtures import (
File "/usr/local/lib/python2.7/dist-packages/fixtures/_fixtures/__init__.py", line 55, in <module>
from fixtures._fixtures.mockpatch import (
File "/usr/local/lib/python2.7/dist-packages/fixtures/_fixtures/mockpatch.py", line 22, in <module>
mock = extras.try_imports(['mock', 'unittest.mock'], None)
File "/usr/local/lib/python2.7/dist-packages/extras/__init__.py", line 92, in try_imports
module = try_import(module_name, error_callback=error_callback)
File "/usr/local/lib/python2.7/dist-packages/extras/__init__.py", line 50, in try_import
__import__(module_name)
File "/usr/local/lib/python2.7/dist-packages/mock/__init__.py", line 2, in <module>
import mock.mock as _mock
File "/usr/local/lib/python2.7/dist-packages/mock/mock.py", line 81, in <module>
inspectsignature = funcsigs.signature
AttributeError: 'module' object has no attribute 'signature'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /opt/stack/keystone/
You are using pip version 9.0.3, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
+inc/python:pip_install:1 exit_trap
+./stack.sh:exit_trap:515 local r=1
++./stack.sh:exit_trap:516 jobs -p
+./stack.sh:exit_trap:516 jobs=
+./stack.sh:exit_trap:519 [[ -n '' ]]
+./stack.sh:exit_trap:525 '[' -f '' ']'
+./stack.sh:exit_trap:530 kill_spinner
+./stack.sh:kill_spinner:425 '[' '!' -z '' ']'
+./stack.sh:exit_trap:532 [[ 1 -ne 0 ]]
+./stack.sh:exit_trap:533 echo 'Error on exit'
Error on exit
+./stack.sh:exit_trap:535 type -p generate-subunit
+./stack.sh:exit_trap:536 generate-subunit 1538684856 64 fail
Traceback (most recent call last):
File "/usr/local/bin/generate-subunit", line 7, in <module>
from os_testr.generate_subunit import main
File "/usr/local/lib/python2.7/dist-packages/os_testr/generate_subunit.py", line 21, in <module>
import subunit
File "/usr/local/lib/python2.7/dist-packages/subunit/__init__.py", line 130, in <module>
from testtools import content, content_type, ExtendedToOriginalDecorator
File "/usr/local/lib/python2.7/dist-packages/testtools/__init__.py", line 71, in <module>
from testtools.testcase import (
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 189, in <module>
fixtures = try_import('fixtures')
File "/usr/local/lib/python2.7/dist-packages/extras/__init__.py", line 50, in try_import
__import__(module_name)
File "/usr/local/lib/python2.7/dist-packages/fixtures/__init__.py", line 89, in <module>
from fixtures._fixtures import (
File "/usr/local/lib/python2.7/dist-packages/fixtures/_fixtures/__init__.py", line 55, in <module>
from fixtures._fixtures.mockpatch import (
File "/usr/local/lib/python2.7/dist-packages/fixtures/_fixtures/mockpatch.py", line 22, in <module>
mock = extras.try_imports(['mock', 'unittest.mock'], None)
File "/usr/local/lib/python2.7/dist-packages/extras/__init__.py", line 92, in try_imports
module = try_import(module_name, error_callback=error_callback)
File "/usr/local/lib/python2.7/dist-packages/extras/__init__.py", line 50, in try_import
__import__(module_name)
File "/usr/local/lib/python2.7/dist-packages/mock/__init__.py", line 2, in <module>
import mock.mock as _mock
File "/usr/local/lib/python2.7/dist-packages/mock/mock.py", line 81, in <module>
inspectsignature = funcsigs.signature
AttributeError: 'module' object has no attribute 'signature'