TheGroundZero / openvasreporting

OpenVAS Reporting: Convert OpenVAS XML report files to reports
Other
131 stars 45 forks source link

Fixed 'pkg_resources not found in requirements.txt' by readthedocs.io #28

Closed dudacgf closed 2 years ago

dudacgf commented 2 years ago

readthedocs.io complained about pkg_resources in requirements.txt. It turns out it is a global installed package in python distribution and does not need to be listed.

dudacgf commented 2 years ago

and finally the last error pointed by LGTM

lgtm-com[bot] commented 2 years ago

This pull request fixes 1 alert when merging a929c0ac51ed7341c1a12342334d48d57d7a8f88 into 2c55bccbba72b25f2fd79c26de4afee8541e923e - view on LGTM.com

fixed alerts:

TheGroundZero commented 2 years ago

Looks like RTD still isn't happy

Read the Docs build information
Build id: 15303299
Project: openvas-reporting
Version: latest
Commit: 0225aa0147dc4e44c0e93759be037b9f8516a3db
Date: 2021-11-17T16:32:52.740511Z
State: finished
Success: False

[rtd-command-info] start-time: 2021-11-17T16:33:02.339093Z, end-time: 2021-11-17T16:33:03.725671Z, duration: 1, exit-code: 0
git clone --no-single-branch --depth 50 https://github.com/TheGroundZero/openvasreporting.git .
Cloning into '.'...

[rtd-command-info] start-time: 2021-11-17T16:33:03.927697Z, end-time: 2021-11-17T16:33:04.031144Z, duration: 0, exit-code: 0
git checkout --force origin/master
Note: checking out 'origin/master'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 0225aa0 Merge pull request #28 from dudacgf/master

[rtd-command-info] start-time: 2021-11-17T16:33:04.169046Z, end-time: 2021-11-17T16:33:04.225342Z, duration: 0, exit-code: 0
git clean -d -f -f

[rtd-command-info] start-time: 2021-11-17T16:33:05.487092Z, end-time: 2021-11-17T16:33:10.402233Z, duration: 4, exit-code: 0
python3.7 -mvirtualenv /home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/envs/latest
Using base prefix '/home/docs/.pyenv/versions/3.7.9'
New python executable in /home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/envs/latest/bin/python3.7
Also creating executable in /home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/envs/latest/bin/python
Installing setuptools, pip, wheel...
done.

[rtd-command-info] start-time: 2021-11-17T16:33:10.551471Z, end-time: 2021-11-17T16:33:11.681847Z, duration: 1, exit-code: 0
/home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/envs/latest/bin/python -m pip install --upgrade --no-cache-dir pip setuptools
Requirement already satisfied: pip in /home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/envs/latest/lib/python3.7/site-packages (21.3.1)
Requirement already satisfied: setuptools in /home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/envs/latest/lib/python3.7/site-packages (59.1.1)

[rtd-command-info] start-time: 2021-11-17T16:33:11.842109Z, end-time: 2021-11-17T16:33:19.589230Z, duration: 7, exit-code: 0
/home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/envs/latest/bin/python -m pip install --upgrade --no-cache-dir mock==1.0.1 pillow==5.4.1 alabaster>=0.7,<0.8,!=0.7.5 commonmark==0.8.1 recommonmark==0.5.0 sphinx<2 sphinx-rtd-theme<0.5 readthedocs-sphinx-ext<2.2
Collecting mock==1.0.1
  Downloading mock-1.0.1.zip (861 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting pillow==5.4.1
  Downloading Pillow-5.4.1-cp37-cp37m-manylinux1_x86_64.whl (2.0 MB)
Collecting alabaster!=0.7.5,<0.8,>=0.7
  Downloading alabaster-0.7.12-py2.py3-none-any.whl (14 kB)
Collecting commonmark==0.8.1
  Downloading commonmark-0.8.1-py2.py3-none-any.whl (47 kB)
Collecting recommonmark==0.5.0
  Downloading recommonmark-0.5.0-py2.py3-none-any.whl (9.8 kB)
Collecting sphinx<2
  Downloading Sphinx-1.8.6-py2.py3-none-any.whl (3.1 MB)
Collecting sphinx-rtd-theme<0.5
  Downloading sphinx_rtd_theme-0.4.3-py2.py3-none-any.whl (6.4 MB)
Collecting readthedocs-sphinx-ext<2.2
  Downloading readthedocs_sphinx_ext-2.1.4-py2.py3-none-any.whl (29 kB)
Collecting future
  Downloading future-0.18.2.tar.gz (829 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting docutils>=0.11
  Downloading docutils-0.18-py2.py3-none-any.whl (569 kB)
Collecting six>=1.5
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting babel!=2.0,>=1.3
  Downloading Babel-2.9.1-py2.py3-none-any.whl (8.8 MB)
Collecting requests>=2.0.0
  Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB)
Collecting snowballstemmer>=1.1
  Downloading snowballstemmer-2.2.0-py2.py3-none-any.whl (93 kB)
Collecting docutils>=0.11
  Downloading docutils-0.17.1-py2.py3-none-any.whl (575 kB)
Requirement already satisfied: setuptools in /home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/envs/latest/lib/python3.7/site-packages (from sphinx<2) (59.1.1)
Collecting Jinja2>=2.3
  Downloading Jinja2-3.0.3-py3-none-any.whl (133 kB)
Collecting Pygments>=2.0
  Downloading Pygments-2.10.0-py3-none-any.whl (1.0 MB)
Collecting packaging
  Downloading packaging-21.2-py3-none-any.whl (40 kB)
Collecting imagesize
  Downloading imagesize-1.3.0-py2.py3-none-any.whl (5.2 kB)
Collecting sphinxcontrib-websupport
  Downloading sphinxcontrib_websupport-1.2.4-py2.py3-none-any.whl (39 kB)
Collecting pytz>=2015.7
  Downloading pytz-2021.3-py2.py3-none-any.whl (503 kB)
Collecting MarkupSafe>=2.0
  Downloading MarkupSafe-2.0.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (31 kB)
Collecting certifi>=2017.4.17
  Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting idna<4,>=2.5
  Downloading idna-3.3-py3-none-any.whl (61 kB)
Collecting urllib3<1.27,>=1.21.1
  Downloading urllib3-1.26.7-py2.py3-none-any.whl (138 kB)
Collecting charset-normalizer~=2.0.0
  Downloading charset_normalizer-2.0.7-py3-none-any.whl (38 kB)
Collecting pyparsing<3,>=2.0.2
  Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting sphinxcontrib-serializinghtml
  Downloading sphinxcontrib_serializinghtml-1.1.5-py2.py3-none-any.whl (94 kB)
Building wheels for collected packages: mock, future
  Building wheel for mock (setup.py): started
  Building wheel for mock (setup.py): finished with status 'done'
  Created wheel for mock: filename=mock-1.0.1-py3-none-any.whl size=23772 sha256=0e02b7702692d153fc6173e6c9485973f7186f679475e646bbdbf1a4788e9660
  Stored in directory: /tmp/pip-ephem-wheel-cache-ldsfnha9/wheels/7a/94/b1/0fdc5339a5bd487a5cc15421ec200d9ba3e2aa7190e4a727f1
  Building wheel for future (setup.py): started
  Building wheel for future (setup.py): finished with status 'done'
  Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491070 sha256=e17eaafd16174c395fd22277bc97bf35397e5960acb9b12fdcdbb9faed6b3998
  Stored in directory: /tmp/pip-ephem-wheel-cache-ldsfnha9/wheels/56/b0/fe/4410d17b32f1f0c3cf54cdfb2bc04d7b4b8f4ae377e2229ba0
Successfully built mock future
Installing collected packages: urllib3, sphinxcontrib-serializinghtml, pytz, pyparsing, MarkupSafe, idna, charset-normalizer, certifi, sphinxcontrib-websupport, snowballstemmer, six, requests, Pygments, packaging, Jinja2, imagesize, future, docutils, babel, alabaster, sphinx, commonmark, sphinx-rtd-theme, recommonmark, readthedocs-sphinx-ext, pillow, mock
Successfully installed Jinja2-3.0.3 MarkupSafe-2.0.1 Pygments-2.10.0 alabaster-0.7.12 babel-2.9.1 certifi-2021.10.8 charset-normalizer-2.0.7 commonmark-0.8.1 docutils-0.17.1 future-0.18.2 idna-3.3 imagesize-1.3.0 mock-1.0.1 packaging-21.2 pillow-5.4.1 pyparsing-2.4.7 pytz-2021.3 readthedocs-sphinx-ext-2.1.4 recommonmark-0.5.0 requests-2.26.0 six-1.16.0 snowballstemmer-2.2.0 sphinx-1.8.6 sphinx-rtd-theme-0.4.3 sphinxcontrib-serializinghtml-1.1.5 sphinxcontrib-websupport-1.2.4 urllib3-1.26.7

[rtd-command-info] start-time: 2021-11-17T16:33:19.688663Z, end-time: 2021-11-17T16:33:28.815174Z, duration: 9, exit-code: 0
/home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/envs/latest/bin/python -m pip install --exists-action=w --no-cache-dir -r requirements.txt
Collecting build>=0.7.0
  Downloading build-0.7.0-py3-none-any.whl (16 kB)
Collecting cycler>=0.11.0
  Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting kiwisolver>=1.3.2
  Downloading kiwisolver-1.3.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.1 MB)
Collecting lxml>=4.6.4
  Downloading lxml-4.6.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (6.3 MB)
Collecting matplotlib>=3.4.3
  Downloading matplotlib-3.5.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (11.2 MB)
Collecting netaddr>=0.8.0
  Downloading netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB)
Collecting numpy>=1.21.4
  Downloading numpy-1.21.4-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)
Requirement already satisfied: packaging>=21.2 in /home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/envs/latest/lib/python3.7/site-packages (from -r requirements.txt (line 9)) (21.2)
Collecting pep517>=0.12.0
  Downloading pep517-0.12.0-py2.py3-none-any.whl (19 kB)
Collecting Pillow>=8.4.0
  Downloading Pillow-8.4.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)
Requirement already satisfied: pip>=21.3.1 in /home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/envs/latest/lib/python3.7/site-packages (from -r requirements.txt (line 12)) (21.3.1)
Requirement already satisfied: pyparsing>=2.4.7 in /home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/envs/latest/lib/python3.7/site-packages (from -r requirements.txt (line 13)) (2.4.7)
Collecting python-dateutil>=2.8.2
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting python-docx>=0.8.11
  Downloading python-docx-0.8.11.tar.gz (5.6 MB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: setuptools>=44.1.1 in /home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/envs/latest/lib/python3.7/site-packages (from -r requirements.txt (line 16)) (59.1.1)
Requirement already satisfied: six>=1.16.0 in /home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/envs/latest/lib/python3.7/site-packages (from -r requirements.txt (line 17)) (1.16.0)
Collecting tomli>=1.2.2
  Downloading tomli-1.2.2-py3-none-any.whl (12 kB)
Requirement already satisfied: wheel>=0.37.0 in /home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/envs/latest/lib/python3.7/site-packages (from -r requirements.txt (line 19)) (0.37.0)
Collecting XlsxWriter>=3.0.2
  Downloading XlsxWriter-3.0.2-py3-none-any.whl (149 kB)
Collecting importlib-metadata>=0.22
  Downloading importlib_metadata-4.8.2-py3-none-any.whl (17 kB)
Collecting fonttools>=4.22.0
  Downloading fonttools-4.28.1-py3-none-any.whl (873 kB)
Collecting setuptools-scm>=4
  Downloading setuptools_scm-6.3.2-py3-none-any.whl (33 kB)
Collecting zipp
  Downloading zipp-3.6.0-py3-none-any.whl (5.3 kB)
Collecting typing-extensions>=3.6.4
  Downloading typing_extensions-4.0.0-py3-none-any.whl (22 kB)
Building wheels for collected packages: python-docx
  Building wheel for python-docx (setup.py): started
  Building wheel for python-docx (setup.py): finished with status 'done'
  Created wheel for python-docx: filename=python_docx-0.8.11-py3-none-any.whl size=184508 sha256=333dcff61ad5acfd8dfbf0666f088dd3bc4a9f4c88cbce9e2ffacea71e66056d
  Stored in directory: /tmp/pip-ephem-wheel-cache-2d7k9gle/wheels/f6/6f/b9/d798122a8b55b74ad30b5f52b01482169b445fbb84a11797a6
Successfully built python-docx
Installing collected packages: zipp, typing-extensions, tomli, importlib-metadata, setuptools-scm, python-dateutil, Pillow, pep517, numpy, lxml, kiwisolver, fonttools, cycler, XlsxWriter, python-docx, netaddr, matplotlib, build
  Attempting uninstall: Pillow
    Found existing installation: Pillow 5.4.1
    Uninstalling Pillow-5.4.1:
      Successfully uninstalled Pillow-5.4.1
Successfully installed Pillow-8.4.0 XlsxWriter-3.0.2 build-0.7.0 cycler-0.11.0 fonttools-4.28.1 importlib-metadata-4.8.2 kiwisolver-1.3.2 lxml-4.6.4 matplotlib-3.5.0 netaddr-0.8.0 numpy-1.21.4 pep517-0.12.0 python-dateutil-2.8.2 python-docx-0.8.11 setuptools-scm-6.3.2 tomli-1.2.2 typing-extensions-4.0.0 zipp-3.6.0

[rtd-command-info] start-time: 2021-11-17T16:33:28.972201Z, end-time: 2021-11-17T16:33:29.068125Z, duration: 0, exit-code: 2
/home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/envs/latest/bin/python /home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/checkouts/latest/setup.py install --force
/home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/envs/latest/bin/python: can't open file '/home/docs/checkouts/readthedocs.org/user_builds/openvas-reporting/checkouts/latest/setup.py': [Errno 2] No such file or directory