Solved MySQL-Client - cmake: pkg_resources.DistributionNotFound: The 'certifi>=2017.4.17' distribution was not found

Does anyone know where or what the error is:
(MEZ 23:22 will look to morrow for an answer - thanks)
I have build all dependencies for MySQL-Client 80 separately - no error. but cmake especial the part Shpinx has problems
make in /usr/ports/devel/cmake/work/cmake-3.17.3/Utilities/Sphinx] brings the same error.

How can I fixed that?

Code:
CMake has bootstrapped.  Now run make.
===>  Building for cmake-3.17.3
Scanning dependencies of target cmsys_c
[  1%] Building C object Source/kwsys/CMakeFiles/cmsys_c.dir/ProcessUNIX.c.o
Scanning dependencies of target cmsys
[  1%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/ProcessUNIX.c.o
[  1%] Building C object Source/kwsys/CMakeFiles/cmsys_c.dir/Base64.c.o
[  2%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/Base64.c.o
[  2%] Building C object Source/kwsys/CMakeFiles/cmsys_c.dir/EncodingC.c.o
[  2%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/EncodingC.c.o
[  2%] Building C object Source/kwsys/CMakeFiles/cmsys_c.dir/MD5.c.o
[  2%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/MD5.c.o
[  3%] Building C object Source/kwsys/CMakeFiles/cmsys_c.dir/Terminal.c.o
[  3%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/Terminal.c.o
[  3%] Building C object Source/kwsys/CMakeFiles/cmsys_c.dir/System.c.o
[  4%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/System.c.o
[  4%] Building C object Source/kwsys/CMakeFiles/cmsys_c.dir/String.c.o
[  4%] Linking C static library libcmsys_c.a
[  4%] Built target cmsys_c
[  4%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/String.c.o
Scanning dependencies of target cmstd
[  4%] Building CXX object Utilities/std/CMakeFiles/cmstd.dir/cm/bits/string_view.cxx.o
[  4%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/Directory.cxx.o
[  4%] Linking CXX static library libcmstd.a
[  4%] Built target cmstd
Scanning dependencies of target documentation
[  5%] sphinx-build man: see Utilities/Sphinx/build-man.log
Traceback (most recent call last):
  File "/usr/local/bin/sphinx-build", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3251, in <module>
    @_call_aside
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
[B]pkg_resources.DistributionNotFound: The 'certifi>=2017.4.17' distribution was not found and is required by requests[/B]
--- Utilities/Sphinx/doc_format_man ---
*** [Utilities/Sphinx/doc_format_man] Error code 1

make[6]: stopped in /usr/ports/devel/cmake/work/cmake-3.17.3
1 error

make[6]: stopped in /usr/ports/devel/cmake/work/cmake-3.17.3
--- Utilities/Sphinx/CMakeFiles/documentation.dir/all ---
*** [Utilities/Sphinx/CMakeFiles/documentation.dir/all] Error code 2

make[5]: stopped in /usr/ports/devel/cmake/work/cmake-3.17.3
[  5%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/DynamicLoader.cxx.o
A failure has been detected in another branch of the parallel make

make[6]: stopped in /usr/ports/devel/cmake/work/cmake-3.17.3
--- Source/kwsys/CMakeFiles/cmsys.dir/all ---
*** [Source/kwsys/CMakeFiles/cmsys.dir/all] Error code 2

make[5]: stopped in /usr/ports/devel/cmake/work/cmake-3.17.3
2 errors

make[5]: stopped in /usr/ports/devel/cmake/work/cmake-3.17.3
*** [all] Error code 2

make[4]: stopped in /usr/ports/devel/cmake/work/cmake-3.17.3
1 error

make[4]: stopped in /usr/ports/devel/cmake/work/cmake-3.17.3
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/devel/cmake
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/devel/cmake
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/databases/mysql80-client
*** Error code 1
 
It seams it is a problem with Python
cd /usr/local/bin
ls -l pyth*
python -> python3
python-config -> python3-config
python2.7
python2.7-config
python3 -> python3.7
python3-config -> python3.7-config
python3.7
python3.7-config -> python3.7m-config
python3.7m
python3.7m-config
To reference the installed certificate authority (CA) bundle, you can use the command line
python2.7 -m certifi
#/usr/local/lib/python2.7/site-packages/certifi/cacert.pem
but
python3.7 -m certifi
#/usr/local/bin/python3.7: No module named certifi
python -m certifi
#/usr/local/bin/python3.7: No module named certifi

python -version
#Python 3.7.7

in /usr/ports/UPDATING
20191216: /usr/ports/UPDATING
Default version of python3 and python was switched to 3.7.
so I think the installed version 3.7.7 is the correct version now.

But how to fix the missed the site-packages cacert.pem for the version 3.7?
 
I kicked out python2.7 and install the missed py37 packages via port for /usr/ports/devel/cmake.
That has helped.

/usr/ports/databases/mysql80-client has now also compiled and been installed
 
I kicked out python2.7 and install the missed py37 packages via port for /usr/ports/devel/cmake.
That has helped.

/usr/ports/databases/mysql80-client has now also compiled and been installed

May I asked how you "kicked out python2.7" I am getting this error:

Code:
Try to set MAKE_JOBS_UNSAFE=yes

for unbound, when attempting to update it via portmaster.

I am using python 3.7, but some ports have installed python 2.7

TIA
 
Back
Top