dmwm / DBS

CMS Dataset Bookkeeping Service
Apache License 2.0
7 stars 21 forks source link

Sphinx problem with building dbs server #654

Open yuyiguo opened 3 years ago

yuyiguo commented 3 years ago

Applied the PR 649 , I assumed doc generation was disabled. I was able to build dbs3-pycurl-clientpy3 without generating doc, however I got below errors while building dbs server dbs3py3.

The action "build-cms+dbs3py3+3.16.1000" was not completed successfully because Failed to build dbs3py3. Log file in /build/yuyi/w/BUILD/slc7_amd64_gcc630/cms/dbs3py3/3.16.1000/log. Final lines of the log file:
File "/build/yuyi/w/slc7_amd64_gcc630/external/py3-setuptools/39.2.0/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3108, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/build/yuyi/w/slc7_amd64_gcc630/external/py3-setuptools/39.2.0/lib/python3.8/site-packages/pkg_resources/__init__.py", line 570, in _build_master
ws.require(__requires__)
File "/build/yuyi/w/slc7_amd64_gcc630/external/py3-setuptools/39.2.0/lib/python3.8/site-packages/pkg_resources/__init__.py", line 888, in require
needed = self.resolve(parse_requirements(requirements))
File "/build/yuyi/w/slc7_amd64_gcc630/external/py3-setuptools/39.2.0/lib/python3.8/site-packages/pkg_resources/__init__.py", line 774, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'Sphinx==1.6.3' distribution was not found and is required by the application
make: *** [html] Error 1
make: Leaving directory `/build/yuyi/w/BUILD/slc7_amd64_gcc630/cms/dbs3py3/3.16.1000/WMCore/doc'
setup.py:7: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
error: command 'make' failed with exit status 2
error: Bad exit status from /build/yuyi/w/tmp/rpm-tmp.5nZlcQ (%build)
RPM build errors:
Macro %rpmbuild_libdir defined but not used within scope
Bad exit status from /build/yuyi/w/tmp/rpm-tmp.5nZlcQ (%build)

Any ideas? @amaltaro @todor-ivanov @mapellidario

klannon commented 3 years ago

Isn't that PR only to make the client build? I don't think there's been any attempt at dealing with the server. Remember, this is just needed to provide a Py3 environment in which WMCore can run so that we can complete the Py3 migration of WMCore.

todor-ivanov commented 3 years ago

You are absolutely correct @klannon. The doc generation needs to be disabled at any place where it is initiated in the the server setup code too. The PR mentioned by @yuyiguo is only related to the client setup script.

yuyiguo commented 3 years ago

@todor-ivanov @klannon The setup file that the PR 649 touched controls entire DBS code building? So I thought that would disable all doc generation. I may miss something here.

@amaltaro @mapellidario, how you guys handle wmcore doc generation in py3?

yuyiguo commented 3 years ago

It was wmcore trying to generated docs. python3 setup.py build_system -s wmc-web --skip-docs stopped the doc generating.

todor-ivanov commented 3 years ago

Thanks @yuyiguo for providing that useful command above. It is good to know we have such an alternative.