Advertisement
dafrandle

tox output

Mar 31st, 2022
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 17.87 KB | None | 0 0
  1. (venv) dafrandle@linux-mint-VM:\~/PycharmProjects/djangoProject$ tox
  2. py38 inst-nodeps: /home/dafrandle/PycharmProjects/djangoProject/.tox/.tmp/package/1/UNKNOWN-0.0.0.tar.gz
  3. ERROR: invocation failed (exit code 1), logfile: /home/dafrandle/PycharmProjects/djangoProject/.tox/py38/log/py38-10.log
  4. =============================================================================================================== log start ===============================================================================================================
  5. Processing ./.tox/.tmp/package/1/UNKNOWN-0.0.0.tar.gz
  6. Installing build dependencies: started
  7. Installing build dependencies: finished with status 'done'
  8. Getting requirements to build wheel: started
  9. Getting requirements to build wheel: finished with status 'error'
  10. error: subprocess-exited-with-error
  11.  
  12. × Getting requirements to build wheel did not run successfully.
  13. exit code: 1
  14. ╰─\> \[6 lines of output\]
  15. No parent package detected, impossible to derive `name`
  16. running egg_info
  17. writing UNKNOWN.egg-info/PKG-INFO
  18. writing dependency_links to UNKNOWN.egg-info/dependency_links.txt
  19. writing top-level names to UNKNOWN.egg-info/top_level.txt
  20. error: package directory 'templates' does not exist
  21. \[end of output\]
  22.  
  23. note: This error originates from a subprocess, and is likely not a problem with pip.
  24. error: subprocess-exited-with-error
  25.  
  26. × Getting requirements to build wheel did not run successfully.
  27. exit code: 1
  28. ╰─\> See above for output.
  29.  
  30. note: This error originates from a subprocess, and is likely not a problem with pip.
  31.  
  32. ================================================================================================================ log end ================================================================================================================
  33. py39 create: /home/dafrandle/PycharmProjects/djangoProject/.tox/py39
  34. py39 installdeps: -r/home/dafrandle/PycharmProjects/djangoProject/requirements_dev.txt
  35. ERROR: invocation failed (exit code 1), logfile: /home/dafrandle/PycharmProjects/djangoProject/.tox/py39/log/py39-1.log
  36. =============================================================================================================== log start ===============================================================================================================
  37. Collecting Django\~=4.0.3
  38. Using cached Django-4.0.3-py3-none-any.whl (8.0 MB)
  39. Collecting djangorestframework\~=3.13.1
  40. Using cached djangorestframework-3.13.1-py3-none-any.whl (958 kB)
  41. Collecting django-gravatar2\~=1.4.4
  42. Using cached django_gravatar2-1.4.4-py2.py3-none-any.whl (7.9 kB)
  43. Collecting psycopg2\~=2.9.3
  44. Using cached psycopg2-2.9.3.tar.gz (380 kB)
  45. Preparing metadata (setup.py): started
  46. Preparing metadata (setup.py): finished with status 'done'
  47. Collecting beautifulsoup4\~=4.10.0
  48. Using cached beautifulsoup4-4.10.0-py3-none-any.whl (97 kB)
  49. Collecting pytest-django\~=4.5.2
  50. Using cached pytest_django-4.5.2-py3-none-any.whl (20 kB)
  51. Collecting tox\~=3.24.5
  52. Using cached tox-3.24.5-py2.py3-none-any.whl (85 kB)
  53. Collecting flake8\~=4.0.1
  54. Using cached flake8-4.0.1-py2.py3-none-any.whl (64 kB)
  55. Collecting asgiref\<4,\>=3.4.1
  56. Using cached asgiref-3.5.0-py3-none-any.whl (22 kB)
  57. Collecting sqlparse\>=0.2.2
  58. Using cached sqlparse-0.4.2-py3-none-any.whl (42 kB)
  59. Collecting pytz
  60. Using cached pytz-2022.1-py2.py3-none-any.whl (503 kB)
  61. Collecting soupsieve\>1.2
  62. Using cached soupsieve-2.3.1-py3-none-any.whl (37 kB)
  63. Collecting pytest\>=5.4.0
  64. Using cached pytest-7.1.1-py3-none-any.whl (297 kB)
  65. Collecting virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,\>=16.0.0
  66. Using cached virtualenv-20.14.0-py2.py3-none-any.whl (8.8 MB)
  67. Collecting six\>=1.14.0
  68. Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
  69. Collecting toml\>=0.9.4
  70. Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
  71. Collecting packaging\>=14
  72. Using cached packaging-21.3-py3-none-any.whl (40 kB)
  73. Collecting py\>=1.4.17
  74. Using cached py-1.11.0-py2.py3-none-any.whl (98 kB)
  75. Collecting filelock\>=3.0.0
  76. Using cached filelock-3.6.0-py3-none-any.whl (10.0 kB)
  77. Collecting pluggy\>=0.12.0
  78. Using cached pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
  79. Collecting pycodestyle\<2.9.0,\>=2.8.0
  80. Using cached pycodestyle-2.8.0-py2.py3-none-any.whl (42 kB)
  81. Collecting mccabe\<0.7.0,\>=0.6.0
  82. Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
  83. Collecting pyflakes\<2.5.0,\>=2.4.0
  84. Using cached pyflakes-2.4.0-py2.py3-none-any.whl (69 kB)
  85. Collecting pyparsing!=3.0.5,\>=2.0.2
  86. Using cached pyparsing-3.0.7-py3-none-any.whl (98 kB)
  87. Collecting tomli\>=1.0.0
  88. Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
  89. Collecting iniconfig
  90. Using cached iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
  91. Collecting attrs\>=19.2.0
  92. Using cached attrs-21.4.0-py2.py3-none-any.whl (60 kB)
  93. Collecting distlib\<1,\>=0.3.1
  94. Using cached distlib-0.3.4-py2.py3-none-any.whl (461 kB)
  95. Collecting platformdirs\<3,\>=2
  96. Using cached platformdirs-2.5.1-py3-none-any.whl (14 kB)
  97. Building wheels for collected packages: psycopg2
  98. Building wheel for psycopg2 (setup.py): started
  99. Building wheel for psycopg2 (setup.py): finished with status 'error'
  100. error: subprocess-exited-with-error
  101.  
  102. × python setup.py bdist_wheel did not run successfully.
  103. exit code: 1
  104. ╰─\> \[38 lines of output\]
  105. running bdist_wheel
  106. running build
  107. running build_py
  108. creating build
  109. creating build/lib.linux-x86_64-3.9
  110. creating build/lib.linux-x86_64-3.9/psycopg2
  111. copying lib/\_json.py -\> build/lib.linux-x86_64-3.9/psycopg2
  112. copying lib/\_range.py -\> build/lib.linux-x86_64-3.9/psycopg2
  113. copying lib/errors.py -\> build/lib.linux-x86_64-3.9/psycopg2
  114. copying lib/\_ipaddress.py -\> build/lib.linux-x86_64-3.9/psycopg2
  115. copying lib/extras.py -\> build/lib.linux-x86_64-3.9/psycopg2
  116. copying lib/pool.py -\> build/lib.linux-x86_64-3.9/psycopg2
  117. copying lib/__init__.py -\> build/lib.linux-x86_64-3.9/psycopg2
  118. copying lib/errorcodes.py -\> build/lib.linux-x86_64-3.9/psycopg2
  119. copying lib/tz.py -\> build/lib.linux-x86_64-3.9/psycopg2
  120. copying lib/extensions.py -\> build/lib.linux-x86_64-3.9/psycopg2
  121. copying lib/sql.py -\> build/lib.linux-x86_64-3.9/psycopg2
  122. running build_ext
  123. building 'psycopg2.\_psycopg' extension
  124. creating build/temp.linux-x86_64-3.9
  125. creating build/temp.linux-x86_64-3.9/psycopg
  126. x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC "-DPSYCOPG_VERSION=2.9.3 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=120009 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/home/dafrandle/PycharmProjects/djangoProject/.tox/py39/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/12/server -I/usr/include/libxml2 -I/usr/include/mit-krb5 -c psycopg/adapter_asis.c -o build/temp.linux-x86_64-3.9/psycopg/adapter_asis.o -Wdeclaration-after-statement
  127. In file included from psycopg/adapter_asis.c:28:
  128. ./psycopg/psycopg.h:35:10: fatal error: Python.h: No such file or directory
  129. 35 | #include \<Python.h\>
  130. |          ^\~\~\~\~\~\~\~\~\~
  131. compilation terminated.
  132.  
  133.       It appears you are missing some prerequisite to build the package from source.
  134.      
  135.       You may install a binary package by installing 'psycopg2-binary' from PyPI.
  136.       If you want to install psycopg2 from source, please install the packages
  137.       required for the build and try again.
  138.      
  139.       For further information please check the 'doc/src/install.rst' file (also at
  140.       <https://www.psycopg.org/docs/install.html>).
  141.      
  142.       error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
  143.       [end of output]
  144.  
  145. note: This error originates from a subprocess, and is likely not a problem with pip.
  146. ERROR: Failed building wheel for psycopg2
  147. Running setup.py clean for psycopg2
  148. Failed to build psycopg2
  149. Installing collected packages: pytz, mccabe, iniconfig, django-gravatar2, distlib, tomli, toml, sqlparse, soupsieve, six, pyparsing, pyflakes, pycodestyle, py, psycopg2, pluggy, platformdirs, filelock, attrs, asgiref, virtualenv, packaging, flake8, Django, beautifulsoup4, tox, pytest, djangorestframework, pytest-django
  150. Running setup.py install for psycopg2: started
  151. Running setup.py install for psycopg2: finished with status 'error'
  152. error: subprocess-exited-with-error
  153.  
  154. × Running setup.py install for psycopg2 did not run successfully.
  155. exit code: 1
  156. ╰─\> \[40 lines of output\]
  157. running install
  158. /home/dafrandle/PycharmProjects/djangoProject/.tox/py39/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  159. warnings.warn(
  160. running build
  161. running build_py
  162. creating build
  163. creating build/lib.linux-x86_64-3.9
  164. creating build/lib.linux-x86_64-3.9/psycopg2
  165. copying lib/\_json.py -\> build/lib.linux-x86_64-3.9/psycopg2
  166. copying lib/\_range.py -\> build/lib.linux-x86_64-3.9/psycopg2
  167. copying lib/errors.py -\> build/lib.linux-x86_64-3.9/psycopg2
  168. copying lib/\_ipaddress.py -\> build/lib.linux-x86_64-3.9/psycopg2
  169. copying lib/extras.py -\> build/lib.linux-x86_64-3.9/psycopg2
  170. copying lib/pool.py -\> build/lib.linux-x86_64-3.9/psycopg2
  171. copying lib/__init__.py -\> build/lib.linux-x86_64-3.9/psycopg2
  172. copying lib/errorcodes.py -\> build/lib.linux-x86_64-3.9/psycopg2
  173. copying lib/tz.py -\> build/lib.linux-x86_64-3.9/psycopg2
  174. copying lib/extensions.py -\> build/lib.linux-x86_64-3.9/psycopg2
  175. copying lib/sql.py -\> build/lib.linux-x86_64-3.9/psycopg2
  176. running build_ext
  177. building 'psycopg2.\_psycopg' extension
  178. creating build/temp.linux-x86_64-3.9
  179. creating build/temp.linux-x86_64-3.9/psycopg
  180. x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC "-DPSYCOPG_VERSION=2.9.3 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=120009 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/home/dafrandle/PycharmProjects/djangoProject/.tox/py39/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/12/server -I/usr/include/libxml2 -I/usr/include/mit-krb5 -c psycopg/adapter_asis.c -o build/temp.linux-x86_64-3.9/psycopg/adapter_asis.o -Wdeclaration-after-statement
  181. In file included from psycopg/adapter_asis.c:28:
  182. ./psycopg/psycopg.h:35:10: fatal error: Python.h: No such file or directory
  183. 35 | #include \<Python.h\>
  184. |          ^\~\~\~\~\~\~\~\~\~
  185. compilation terminated.
  186.  
  187.       It appears you are missing some prerequisite to build the package from source.
  188.      
  189.       You may install a binary package by installing 'psycopg2-binary' from PyPI.
  190.       If you want to install psycopg2 from source, please install the packages
  191.       required for the build and try again.
  192.      
  193.       For further information please check the 'doc/src/install.rst' file (also at
  194.       <https://www.psycopg.org/docs/install.html>).
  195.      
  196.       error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
  197.       [end of output]
  198.  
  199. note: This error originates from a subprocess, and is likely not a problem with pip.
  200. error: legacy-install-failure
  201.  
  202. × Encountered error while trying to install package.
  203. ╰─\> psycopg2
  204.  
  205. note: This is an issue with the package mentioned above, not pip.
  206. hint: See above for output from the failure.
  207.  
  208. ================================================================================================================ log end ================================================================================================================
  209. ERROR: could not install deps \[-r/home/dafrandle/PycharmProjects/djangoProject/requirements_dev.txt\]; v = InvocationError('/home/dafrandle/PycharmProjects/djangoProject/.tox/py39/bin/python -m pip install -r/home/dafrandle/PycharmProjects/djangoProject/requirements_dev.txt', 1)
  210. py310 create: /home/dafrandle/PycharmProjects/djangoProject/.tox/py310
  211. py310 installdeps: -r/home/dafrandle/PycharmProjects/djangoProject/requirements_dev.txt
  212. ERROR: invocation failed (exit code 1), logfile: /home/dafrandle/PycharmProjects/djangoProject/.tox/py310/log/py310-1.log
  213. =============================================================================================================== log start ===============================================================================================================
  214. Traceback (most recent call last):
  215. File "/usr/lib/python3.10/runpy.py", line 196, in \_run_module_as_main
  216. return \_run_code(code, main_globals, None,
  217. File "/usr/lib/python3.10/runpy.py", line 86, in \_run_code
  218. exec(code, run_globals)
  219. File "/home/dafrandle/PycharmProjects/djangoProject/.tox/py310/lib/python3.10/site-packages/pip/__main__.py", line 29, in \<module\>
  220. from pip.\_internal.cli.main import main as \_main
  221. File "/home/dafrandle/PycharmProjects/djangoProject/.tox/py310/lib/python3.10/site-packages/pip/\_internal/cli/main.py", line 9, in \<module\>
  222. from pip.\_internal.cli.autocompletion import autocomplete
  223. File "/home/dafrandle/PycharmProjects/djangoProject/.tox/py310/lib/python3.10/site-packages/pip/\_internal/cli/autocompletion.py", line 10, in \<module\>
  224. from pip.\_internal.cli.main_parser import create_main_parser
  225. File "/home/dafrandle/PycharmProjects/djangoProject/.tox/py310/lib/python3.10/site-packages/pip/\_internal/cli/main_parser.py", line 8, in \<module\>
  226. from pip.\_internal.cli import cmdoptions
  227. File "/home/dafrandle/PycharmProjects/djangoProject/.tox/py310/lib/python3.10/site-packages/pip/\_internal/cli/cmdoptions.py", line 23, in \<module\>
  228. from pip.\_internal.cli.parser import ConfigOptionParser
  229. File "/home/dafrandle/PycharmProjects/djangoProject/.tox/py310/lib/python3.10/site-packages/pip/\_internal/cli/parser.py", line 12, in \<module\>
  230. from pip.\_internal.configuration import Configuration, ConfigurationError
  231. File "/home/dafrandle/PycharmProjects/djangoProject/.tox/py310/lib/python3.10/site-packages/pip/\_internal/configuration.py", line 26, in \<module\>
  232. from pip.\_internal.utils.logging import getLogger
  233. File "/home/dafrandle/PycharmProjects/djangoProject/.tox/py310/lib/python3.10/site-packages/pip/\_internal/utils/logging.py", line 27, in \<module\>
  234. from pip.\_internal.utils.misc import ensure_dir
  235. File "/home/dafrandle/PycharmProjects/djangoProject/.tox/py310/lib/python3.10/site-packages/pip/\_internal/utils/misc.py", line 39, in \<module\>
  236. from pip.\_internal.locations import get_major_minor_version
  237. File "/home/dafrandle/PycharmProjects/djangoProject/.tox/py310/lib/python3.10/site-packages/pip/\_internal/locations/__init__.py", line 14, in \<module\>
  238. from . import \_distutils, \_sysconfig
  239. File "/home/dafrandle/PycharmProjects/djangoProject/.tox/py310/lib/python3.10/site-packages/pip/\_internal/locations/\_distutils.py", line 9, in \<module\>
  240. from distutils.cmd import Command as DistutilsCommand
  241. ModuleNotFoundError: No module named 'distutils.cmd'
  242.  
  243. ================================================================================================================ log end ================================================================================================================
  244. ERROR: could not install deps \[-r/home/dafrandle/PycharmProjects/djangoProject/requirements_dev.txt\]; v = InvocationError('/home/dafrandle/PycharmProjects/djangoProject/.tox/py310/bin/python -m pip install -r/home/dafrandle/PycharmProjects/djangoProject/requirements_dev.txt', 1)
  245. flake8 inst-nodeps: /home/dafrandle/PycharmProjects/djangoProject/.tox/.tmp/package/1/UNKNOWN-0.0.0.tar.gz
  246. ERROR: invocation failed (exit code 1), logfile: /home/dafrandle/PycharmProjects/djangoProject/.tox/flake8/log/flake8-7.log
  247. =============================================================================================================== log start ===============================================================================================================
  248. Processing ./.tox/.tmp/package/1/UNKNOWN-0.0.0.tar.gz
  249. Installing build dependencies: started
  250. Installing build dependencies: finished with status 'done'
  251. Getting requirements to build wheel: started
  252. Getting requirements to build wheel: finished with status 'error'
  253. error: subprocess-exited-with-error
  254.  
  255. × Getting requirements to build wheel did not run successfully.
  256. exit code: 1
  257. ╰─\> \[6 lines of output\]
  258. No parent package detected, impossible to derive `name`
  259. running egg_info
  260. writing UNKNOWN.egg-info/PKG-INFO
  261. writing dependency_links to UNKNOWN.egg-info/dependency_links.txt
  262. writing top-level names to UNKNOWN.egg-info/top_level.txt
  263. error: package directory 'templates' does not exist
  264. \[end of output\]
  265.  
  266. note: This error originates from a subprocess, and is likely not a problem with pip.
  267. error: subprocess-exited-with-error
  268.  
  269. × Getting requirements to build wheel did not run successfully.
  270. exit code: 1
  271. ╰─\> See above for output.
  272.  
  273. note: This error originates from a subprocess, and is likely not a problem with pip.
  274.  
  275. ================================================================================================================ log end ================================================================================================================
  276. \___\_ summary \___\_
  277. ERROR:   py38: InvocationError for command /home/dafrandle/PycharmProjects/djangoProject/.tox/py38/bin/python -m pip install --no-deps -U .tox/.tmp/package/1/UNKNOWN-0.0.0.tar.gz (exited with code 1)
  278. ERROR:   py39: could not install deps \[-r/home/dafrandle/PycharmProjects/djangoProject/requirements_dev.txt\]; v = InvocationError('/home/dafrandle/PycharmProjects/djangoProject/.tox/py39/bin/python -m pip install -r/home/dafrandle/PycharmProjects/djangoProject/requirements_dev.txt', 1)
  279. ERROR:   py310: could not install deps \[-r/home/dafrandle/PycharmProjects/djangoProject/requirements_dev.txt\]; v = InvocationError('/home/dafrandle/PycharmProjects/djangoProject/.tox/py310/bin/python -m pip install -r/home/dafrandle/PycharmProjects/djangoProject/requirements_dev.txt', 1)
  280. ERROR:   flake8: InvocationError for command /home/dafrandle/PycharmProjects/djangoProject/.tox/flake8/bin/python -m pip install --no-deps -U .tox/.tmp/package/1/UNKNOWN-0.0.0.tar.gz (exited with code 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement