Ошибка отладки: невозможно выполнить «x86_64-QNAP-linux-gnu-gcc»: нет такого файла или каталога - PullRequest
0 голосов
/ 08 апреля 2019

Использование tox для запуска открытого стека kuryr libnetwork tool. Но tox не может установить необходимые зависимости.

Там, где у меня нет yum install, apt-get install не работает. Единственный способ - загрузить исходный код и установить его.

pip / curl / wget отлично работает.

Сведения об окружающей среде:

1> Базовый python как python 2.7 и установленный python 3.5

2> tox --version

3.8.4 импортировано из /usr/local/ceph/lib/python2.7/site-packages/tox/init.pyc tox -e fullstack

3> [/share/CACHEDEV1_DATA/.qpkg/QKuryr/rootfs/opt/kuryr-libnetwork] # pip --version пип 19.0.3 из /usr/local/ceph/lib/python2.7/site-packages/pip (python 2.7)

4> [/share/CACHEDEV1_DATA/.qpkg/QKuryr/rootfs/opt/kuryr-libnetwork] # virtualenv --version 1.11.6

5> Пакет Python Dev (python devtools) уже установлен

Я был бы очень признателен за некоторые материалы! Спасибо!

Команда: tox

Ошибка 1:

============================================================================== log start ===============================================================================
   DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
   Ignoring jsbeautifier: markers 'python_version == "3.4"' don't match your environment
   Ignoring jsbeautifier: markers 'python_version == "3.5"' don't match your environment
   Ignoring hyperframe: markers 'python_version == "3.4"' don't match your environment
   Ignoring hyperframe: markers 'python_version == "3.5"' don't match your environment
   Ignoring cssutils: markers 'python_version == "3.4"' don't match your environment
Ignoring zVMCloudConnector: markers 'python_version == "3.5"' don't match your environment
   Ignoring zVMCloudConnector: markers 'python_version == "3.6"' don't match your environment
   Ignoring tornado: markers 'python_version == "3.4"' don't match your environment
   Ignoring tornado: markers 'python_version == "3.5"' don't match your environment

Ошибка 2:

python-novaclient 11.1.0 has requirement keystoneauth1>=3.5.0, but you'll have keystoneauth1 3.4.0 which is incompatible.
nova 14.0.10 has requirement oslo.messaging==6.4.1, but you'll have oslo-messaging 5.35.4 which is incompatible.
nova 14.0.10 has requirement psutil<2.0.0,>=1.1.1, but you'll have psutil 5.4.8 which is incompatible.
nova 14.0.10 has requirement SQLAlchemy<1.1.0,>=1.0.10, but you'll have sqlalchemy 1.2.1 which is incompatible.
oslo-vmware 2.32.1 has requirement oslo.concurrency>=3.26.0, but you'll have oslo-concurrency 3.25.1 which is incompatible.
os-brick 2.6.1 has requirement oslo.concurrency>=3.26.0, but you'll have oslo-concurrency 3.25.1 which is incompatible.
oslo-versionedobjects 1.34.1 has requirement oslo.concurrency>=3.26.0, but you'll have oslo-concurrency 3.25.1 which is incompatible.
os-vif 1.12.0 has requirement pyroute2>=0.5.2; sys_platform != "win32", but you'll have pyroute2 0.4.21 which is incompatible.
os-win 4.1.1 has requirement oslo.concurrency>=3.26.0, but you'll have oslo-concurrency 3.25.1 which is incompatible.
networkx 2.2 has requirement decorator>=4.3.0, but you'll have decorator 4.2.1 which is incompatible.
cinder 9.0.0 has requirement oslo.messaging==6.4.1, but you'll have oslo-messaging 5.35.4 which is incompatible.
cinder 9.0.0 has requirement SQLAlchemy<1.1.0,>=1.0.10, but you'll have sqlalchemy 1.2.1 which is incompatible.
python-glanceclient 2.14.0 has requirement keystoneauth1>=3.6.2, but you'll have keystoneauth1 3.4.0 which is incompatible.

  x86_64-QNAP-linux-gnu-gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNETIFACES_VERSION=0.10.6 -I/usr/local/ceph/include/python2.7 -c netifaces.c -o build/temp.linux-x86_64-2.7/netifaces.o
    unable to execute 'x86_64-QNAP-linux-gnu-gcc': No such file or directory
    error: command 'x86_64-QNAP-linux-gnu-gcc' failed with exit status 1

Ошибка 3:

============================================================================== log start ===============================================================================
  No LICENSE.txt / LICENSE found in source
New python executable in /share/CACHEDEV1_DATA/.qpkg/QKuryr/rootfs/opt/kuryr-libnetwork/.tox/py27/bin/python2.7
Also creating executable in /share/CACHEDEV1_DATA/.qpkg/QKuryr/rootfs/opt/kuryr-libnetwork/.tox/py27/bin/python
Command /share/CACHEDEV1_DAT...x/py27/bin/python2.7 -m pip config list had error code 1
Installing setuptools, pip, wheel...

  Complete output from command /share/CACHEDEV1_DAT...x/py27/bin/python2.7 - setuptools pip wheel:
  Traceback (most recent call last):
  File "<stdin>", line 13, in <module>
ImportError: cannot import name main
----------------------------------------
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
  File "/share/CACHEDEV1_DATA/.qpkg/Python3/src/lib/python3.5/site-packages/virtualenv.py", line 2567, in <module>
    main()
  File "/share/CACHEDEV1_DATA/.qpkg/Python3/src/lib/python3.5/site-packages/virtualenv.py", line 793, in main
    symlink=options.symlink,
  File "/share/CACHEDEV1_DATA/.qpkg/Python3/src/lib/python3.5/site-packages/virtualenv.py", line 1088, in create_environment
    install_wheel(to_install, py_executable, search_dirs, download=download)
  File "/share/CACHEDEV1_DATA/.qpkg/Python3/src/lib/python3.5/site-packages/virtualenv.py", line 935, in install_wheel
    _install_wheel_with_search_dir(download, project_names, py_executable, search_dirs)
  File "/share/CACHEDEV1_DATA/.qpkg/Python3/src/lib/python3.5/site-packages/virtualenv.py", line 1025, in _install_wheel_with_search_dir
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=script)
  File "/share/CACHEDEV1_DATA/.qpkg/Python3/src/lib/python3.5/site-packages/virtualenv.py", line 886, in call_subprocess
    raise OSError("Command {} failed with error code {}".format(cmd_desc, proc.returncode))
OSError: Command /share/CACHEDEV1_DAT...x/py27/bin/python2.7 - setuptools pip wheel failed with error code 1
Running virtualenv with interpreter /usr/local/bin/python2.7

=============================================================================== log end ================================================================================
ERROR: InvocationError for command /share/CACHEDEV1_DATA/.qpkg/Python3/src/bin/python3.5 -m virtualenv --python /usr/local/bin/python2.7 py27 (exited with code 1)
pep8 create: /share/CACHEDEV1_DATA/.qpkg/QKuryr/rootfs/opt/kuryr-libnetwork/.tox/pep8
pep8 installdeps: -r/share/CACHEDEV1_DATA/.qpkg/QKuryr/rootfs/opt/kuryr-libnetwork/requirements.txt, -r/share/CACHEDEV1_DATA/.qpkg/QKuryr/rootfs/opt/kuryr-libnetwork/test-requirements.txt
ERROR: invocation failed (exit code 1), logfile: /share/CACHEDEV1_DATA/.qpkg/QKuryr/rootfs/opt/kuryr-libnetwork/.tox/pep8/log/pep8-1.log
...