Advertisement
yudjinDegtyarev

Untitled

Apr 24th, 2023
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.60 KB | None | 0 0
  1. TASK [noc : Install -node- python packages] ************************************
  2. task path: /home/yuriy/projects/noc/ansible/noc_roles/noc/tasks/init_venv_python3.yml:310
  3. fatal: [noc-node-redos]: FAILED! => {
  4. "changed": false,
  5. "cmd": [
  6. "/opt/noc/bin/pip3",
  7. "install",
  8. "--upgrade",
  9. "-r",
  10. "./.requirements/node.txt"
  11. ],
  12. "invocation": {
  13. "module_args": {
  14. "chdir": "/opt/noc",
  15. "editable": false,
  16. "executable": null,
  17. "extra_args": "--upgrade",
  18. "name": null,
  19. "requirements": "./.requirements/node.txt",
  20. "state": "present",
  21. "umask": null,
  22. "version": null,
  23. "virtualenv": "/opt/noc",
  24. "virtualenv_command": "virtualenv",
  25. "virtualenv_python": null,
  26. "virtualenv_site_packages": false
  27. }
  28. }
  29. }
  30.  
  31. MSG:
  32.  
  33. stdout: Requirement already satisfied: aiokafka==0.8.0 in ./lib/python/site-packages (from -r ./.requirements/node.txt (line 6)) (0.8.0)
  34. Collecting Django==3.2.18 (from -r ./.requirements/node.txt (line 7))
  35. Downloading Django-3.2.18-py3-none-any.whl (7.9 MB)
  36. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.9/7.9 MB 11.0 MB/s eta 0:00:00
  37. Collecting FastAPI==0.94.1 (from -r ./.requirements/node.txt (line 8))
  38. Downloading fastapi-0.94.1-py3-none-any.whl (56 kB)
  39. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.4/56.4 kB 733.3 kB/s eta 0:00:00
  40. Collecting Jinja2==3.0.3 (from -r ./.requirements/node.txt (line 9))
  41. Downloading Jinja2-3.0.3-py3-none-any.whl (133 kB)
  42. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.6/133.6 kB 2.0 MB/s eta 0:00:00
  43. Collecting PyYAML==6.0 (from -r ./.requirements/node.txt (line 10))
  44. Downloading PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (661 kB)
  45. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 661.8/661.8 kB 7.1 MB/s eta 0:00:00
  46. Collecting Pygments==2.14.0 (from -r ./.requirements/node.txt (line 11))
  47. Downloading Pygments-2.14.0-py3-none-any.whl (1.1 MB)
  48. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 7.8 MB/s eta 0:00:00
  49. Collecting XlsxWriter==3.0.9 (from -r ./.requirements/node.txt (line 12))
  50. Downloading XlsxWriter-3.0.9-py3-none-any.whl (152 kB)
  51. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 152.8/152.8 kB 2.2 MB/s eta 0:00:00
  52. Collecting atomicl==0.1.1 (from -r ./.requirements/node.txt (line 13))
  53. Downloading atomicl-0.1.1.tar.gz (9.1 kB)
  54. Preparing metadata (setup.py): started
  55. Preparing metadata (setup.py): finished with status 'done'
  56. Collecting blinker==1.5 (from -r ./.requirements/node.txt (line 14))
  57. Downloading blinker-1.5-py2.py3-none-any.whl (12 kB)
  58. Collecting bsdiff4==1.2.3 (from -r ./.requirements/node.txt (line 15))
  59. Downloading bsdiff4-1.2.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (31 kB)
  60. Collecting cachetools==5.3.0 (from -r ./.requirements/node.txt (line 16))
  61. Downloading cachetools-5.3.0-py3-none-any.whl (9.3 kB)
  62. Collecting crontab==0.22.9 (from -r ./.requirements/node.txt (line 17))
  63. Downloading crontab-0.22.9.tar.gz (20 kB)
  64. Preparing metadata (setup.py): started
  65. Preparing metadata (setup.py): finished with status 'done'
  66. Collecting csiphash==0.0.5 (from -r ./.requirements/node.txt (line 18))
  67. Downloading csiphash-0.0.5.tar.gz (12 kB)
  68. Preparing metadata (setup.py): started
  69. Preparing metadata (setup.py): finished with status 'done'
  70. Collecting demjson3==3.0.6 (from -r ./.requirements/node.txt (line 19))
  71. Downloading demjson3-3.0.6.tar.gz (131 kB)
  72. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 131.5/131.5 kB 996.2 kB/s eta 0:00:00
  73. Preparing metadata (setup.py): started
  74. Preparing metadata (setup.py): finished with status 'done'
  75. Collecting dnspython==2.3.0 (from -r ./.requirements/node.txt (line 20))
  76. Downloading dnspython-2.3.0-py3-none-any.whl (283 kB)
  77. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 283.7/283.7 kB 2.3 MB/s eta 0:00:00
  78. Collecting fs==2.4.16 (from -r ./.requirements/node.txt (line 21))
  79. Downloading fs-2.4.16-py2.py3-none-any.whl (135 kB)
  80. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 135.3/135.3 kB 2.0 MB/s eta 0:00:00
  81. Collecting geojson==3.0.1 (from -r ./.requirements/node.txt (line 22))
  82. Downloading geojson-3.0.1-py3-none-any.whl (15 kB)
  83. Collecting geopy==2.3.0 (from -r ./.requirements/node.txt (line 23))
  84. Downloading geopy-2.3.0-py3-none-any.whl (119 kB)
  85. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 119.8/119.8 kB 1.5 MB/s eta 0:00:00
  86. Collecting grpcio==1.51.3 (from -r ./.requirements/node.txt (line 24))
  87. Downloading grpcio-1.51.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB)
  88. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 6.6 MB/s eta 0:00:00
  89. Collecting http-parser==0.9.0 (from -r ./.requirements/node.txt (line 25))
  90. Downloading http-parser-0.9.0.tar.gz (167 kB)
  91. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 167.1/167.1 kB 2.2 MB/s eta 0:00:00
  92. Preparing metadata (setup.py): started
  93. Preparing metadata (setup.py): finished with status 'done'
  94. Collecting lz4==4.0.2 (from -r ./.requirements/node.txt (line 26))
  95. Downloading lz4-4.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
  96. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 4.0 MB/s eta 0:00:00
  97. Collecting manhole==1.7.0 (from -r ./.requirements/node.txt (line 27))
  98. Downloading manhole-1.7.0-py2.py3-none-any.whl (16 kB)
  99. Collecting markerlib==0.6.0 (from -r ./.requirements/node.txt (line 28))
  100. Downloading markerlib-0.6.0.tar.gz (3.8 kB)
  101. Preparing metadata (setup.py): started
  102. Preparing metadata (setup.py): finished with status 'done'
  103. Collecting mongoengine==0.27.0 (from -r ./.requirements/node.txt (line 29))
  104. Downloading mongoengine-0.27.0-py3-none-any.whl (110 kB)
  105. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 110.6/110.6 kB 1.4 MB/s eta 0:00:00
  106. Collecting motor==3.1.1 (from -r ./.requirements/node.txt (line 30))
  107. Downloading motor-3.1.1-py3-none-any.whl (56 kB)
  108. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.2/56.2 kB 761.0 kB/s eta 0:00:00
  109.  
  110. PLAY RECAP *********************************************************************
  111. noc-node-redos : ok=268 changed=140 unreachable=0 failed=1 skipped=182 rescued=0 ignored=1
  112.  
  113. Monday 24 April 2023 10:39:03 +0000 (0:00:24.881) 0:13:44.273 **********
  114. ===============================================================================
  115. Collecting networkx==3.1.0 (from -r ./.requirements/node.txt (line 31))
  116. Downloading networkx-3.1-py3-none-any.whl (2.1 MB)
  117. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 5.1 MB/s eta 0:00:00
  118. Collecting numpy==1.24.0 (from -r ./.requirements/node.txt (line 32))
  119. Downloading numpy-1.24.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
  120. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.3/17.3 MB 5.4 MB/s eta 0:00:00
  121. Collecting orjson==3.8.7 (from -r ./.requirements/node.txt (line 33))
  122. Downloading orjson-3.8.7-cp39-cp39-manylinux_2_28_x86_64.whl (140 kB)
  123. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.9/140.9 kB 967.8 kB/s eta 0:00:00
  124. Collecting progressbar2==4.0.0 (from -r ./.requirements/node.txt (line 34))
  125. Downloading progressbar2-4.0.0-py2.py3-none-any.whl (26 kB)
  126. Collecting psycopg2==2.8.6 (from -r ./.requirements/node.txt (line 35))
  127. Downloading psycopg2-2.8.6.tar.gz (383 kB)
  128. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 383.8/383.8 kB 2.8 MB/s eta 0:00:00
  129. Preparing metadata (setup.py): started
  130. Preparing metadata (setup.py): finished with status 'error'
  131.  
  132. :stderr: error: subprocess-exited-with-error
  133.  
  134. × python setup.py egg_info did not run successfully.
  135. │ exit code: 1
  136. ╰─> [23 lines of output]
  137. running egg_info
  138. creating /tmp/pip-pip-egg-info-5cjmekus/psycopg2.egg-info
  139. writing /tmp/pip-pip-egg-info-5cjmekus/psycopg2.egg-info/PKG-INFO
  140. Install CentOS system packages pre ------------------------------------ 115.42s
  141. /home/yuriy/projects/noc/ansible/noc_roles/pre/tasks/os/RED_7/main.yml:20 -----
  142. grafana : install library postgresql14-devel -------------------------- 110.27s
  143. /home/yuriy/projects/noc/ansible/system_roles/grafana/tasks/main.yml:17 -------
  144. clickhouse : Install CH ------------------------------------------------ 71.83s
  145. /home/yuriy/projects/noc/ansible/system_roles/clickhouse/tasks/os/RED_7/main.yml:15
  146. noc : Install CentOS system packages 2/2 ------------------------------- 48.41s
  147. /home/yuriy/projects/noc/ansible/noc_roles/noc/tasks/os/RED_7/main.yml:32 -----
  148. mongod : ReInstall MongoDB on version change --------------------------- 38.32s
  149. /home/yuriy/projects/noc/ansible/system_roles/mongod/tasks/os/RED_7/main.yml:41
  150. grafana : Install Grafana ---------------------------------------------- 34.24s
  151. /home/yuriy/projects/noc/ansible/system_roles/grafana/tasks/os/RED_7/main.yml:16
  152. writing dependency_links to /tmp/pip-pip-egg-info-5cjmekus/psycopg2.egg-info/dependency_links.txt
  153. writing top-level names to /tmp/pip-pip-egg-info-5cjmekus/psycopg2.egg-info/top_level.txt
  154. writing manifest file '/tmp/pip-pip-egg-info-5cjmekus/psycopg2.egg-info/SOURCES.txt'
  155.  
  156. Error: pg_config executable not found.
  157.  
  158. pg_config is required to build psycopg2 from source. Please add the directory
  159. containing pg_config to the $PATH or specify the full executable path with the
  160. option:
  161.  
  162. python setup.py build_ext --pg-config /path/to/pg_config build ...
  163.  
  164. or with the pg_config option in 'setup.cfg'.
  165.  
  166. If you prefer to avoid building psycopg2 from source, please install the PyPI
  167. 'psycopg2-binary' package instead.
  168.  
  169. noc : Pull NOC --------------------------------------------------------- 27.60s
  170. /home/yuriy/projects/noc/ansible/noc_roles/noc/tasks/git.yml:11 ---------------
  171. noc : Install -node- python packages ----------------------------------- 24.88s
  172. /home/yuriy/projects/noc/ansible/noc_roles/noc/tasks/init_venv_python3.yml:310
  173. consul : Install Consul ------------------------------------------------ 19.80s
  174. /home/yuriy/projects/noc/ansible/system_roles/consul/tasks/os/RED_7/main.yml:73
  175. consul : Consul HTTP API reachable? wait for port 8500 for 60 seconds -- 15.45s
  176. /home/yuriy/projects/noc/ansible/system_roles/consul/tasks/main.yml:79 --------
  177. mongod : Update replica set configuration ------------------------------ 15.39s
  178. /home/yuriy/projects/noc/ansible/system_roles/mongod/tasks/master.yml:55 ------
  179. mongod : Check replica set is initialized ------------------------------ 15.37s
  180. /home/yuriy/projects/noc/ansible/system_roles/mongod/tasks/master.yml:2 -------
  181. mongod : Initial replica set configuration ----------------------------- 15.37s
  182. For further information please check the 'doc/src/install.rst' file (also at
  183. <https://www.psycopg.org/docs/install.html>).
  184.  
  185. [end of output]
  186.  
  187. note: This error originates from a subprocess, and is likely not a problem with pip.
  188. error: metadata-generation-failed
  189.  
  190. × Encountered error while generating package metadata.
  191. ╰─> See above for output.
  192.  
  193. note: This is an issue with the package mentioned above, not pip.
  194. hint: See above for details.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement