Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sphinx problem with building dbs server #654

Open
yuyiguo opened this issue May 19, 2021 · 5 comments
Open

Sphinx problem with building dbs server #654

yuyiguo opened this issue May 19, 2021 · 5 comments

Comments

@yuyiguo
Copy link
Member

yuyiguo commented May 19, 2021

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
Copy link

klannon commented May 19, 2021

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
Copy link

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
Copy link
Member Author

yuyiguo commented May 19, 2021

@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
Copy link
Member Author

yuyiguo commented May 19, 2021

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

@todor-ivanov
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants