Sphinx 1.5 support?

Bug #1661861 reported by Danny Milosavljevic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslosphinx
Expired
Undecided
Unassigned

Bug Description

We are trying to update to Sphinx 1.5.1 in the GNU Guix distribution. One of the last holdouts seems to be oslosphinx. The oslosphinx tests fail with this message:

starting phase `check'
running build_sphinx
creating /tmp/guix-build-python-oslosphinx-4.10.0.drv-0/oslosphinx-4.10.0/doc/build
creating /tmp/guix-build-python-oslosphinx-4.10.0.drv-0/oslosphinx-4.10.0/doc/build/doctrees
creating /tmp/guix-build-python-oslosphinx-4.10.0.drv-0/oslosphinx-4.10.0/doc/build/html
[pbr] Generating AUTHORS
[pbr] AUTHORS complete (0.0s)
Running Sphinx v1.5.1
loading pickled environment... not yet created
Using openstack theme from /tmp/guix-build-python-oslosphinx-4.10.0.drv-0/oslosphinx-4.10.0/oslosphinx/theme
building [mo]: all of 0 po files
building [html]: all source files
updating environment: 6 added, 0 changed, 0 removed
reading sources... [100%] usage
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] usage
generating indices... genindex
writing additional pages... search
copying static files... done
copying extra files... done
dumping search index in English (code: en) ... done
dumping object inventory... done
build succeeded.
creating /tmp/guix-build-python-oslosphinx-4.10.0.drv-0/oslosphinx-4.10.0/doc/build/man
Traceback (most recent call last):
  File "setup.py", line 29, in <module>
    pbr=True)
  File "/gnu/store/v5ck0fwjaq41bpz5aix42d4wxc8dwnzz-python-3.5.2/lib/python3.5/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/gnu/store/v5ck0fwjaq41bpz5aix42d4wxc8dwnzz-python-3.5.2/lib/python3.5/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/gnu/store/v5ck0fwjaq41bpz5aix42d4wxc8dwnzz-python-3.5.2/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/gnu/store/mvsr1i34jh4h40z7qlcl7kbps74ms423-python-pbr-1.8.1/lib/python3.5/site-packages/pbr/builddoc.py", line 196, in run
    self._sphinx_run()
  File "/gnu/store/mvsr1i34jh4h40z7qlcl7kbps74ms423-python-pbr-1.8.1/lib/python3.5/site-packages/pbr/builddoc.py", line 141, in _sphinx_run
    if self.builder == 'man' and len(sphinx_config.man_pages) == 0:
  File "/gnu/store/y8x8jwhxhh9b87fy4ap7j958wncz617s-python-sphinx-1.5.1/lib/python3.5/site-packages/sphinx/config.py", line 275, in __getattr__
    raise AttributeError('No such config value: %s' % name)
AttributeError: No such config value: man_pages

We'd like to ask whether this is only because the unit tests require sphinx 1.2.3 or whether it will also break users of oslosphinx.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

Can you provide some more details about how you are running the tests? For example, when I run "tox -e docs" everything seems fine. Are you running the equivalent of that, or something else?

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

FWIW, I'm using pbr==1.10.0. I don't know if that makes any difference.

Changed in oslosphinx:
status: New → Incomplete
Revision history for this message
Danny Milosavljevic (dannym+a) wrote :

$ python setup.py build_sphinx

python-pbr 1.10.0

Revision history for this message
Danny Milosavljevic (dannym+a) wrote :

starting phase `check'
running build_sphinx
creating /tmp/guix-build-python-oslosphinx-4.10.0.drv-0/oslosphinx-4.10.0/doc/build
creating /tmp/guix-build-python-oslosphinx-4.10.0.drv-0/oslosphinx-4.10.0/doc/build/doctrees
creating /tmp/guix-build-python-oslosphinx-4.10.0.drv-0/oslosphinx-4.10.0/doc/build/html
[pbr] Generating AUTHORS
[pbr] AUTHORS complete (0.0s)
Running Sphinx v1.5.1
loading pickled environment... not yet created
Using openstack theme from /tmp/guix-build-python-oslosphinx-4.10.0.drv-0/oslosphinx-4.10.0/oslosphinx/theme
building [mo]: all of 0 po files
building [html]: all source files
updating environment: 6 added, 0 changed, 0 removed
reading sources... [100%] usage
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] usage
generating indices... genindex
writing additional pages... search
copying static files... done
copying extra files... done
dumping search index in English (code: en) ... done
dumping object inventory... done
build succeeded.
creating /tmp/guix-build-python-oslosphinx-4.10.0.drv-0/oslosphinx-4.10.0/doc/build/man
Traceback (most recent call last):
  File "setup.py", line 29, in <module>
    pbr=True)
  File "/gnu/store/v5ck0fwjaq41bpz5aix42d4wxc8dwnzz-python-3.5.2/lib/python3.5/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/gnu/store/v5ck0fwjaq41bpz5aix42d4wxc8dwnzz-python-3.5.2/lib/python3.5/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/gnu/store/v5ck0fwjaq41bpz5aix42d4wxc8dwnzz-python-3.5.2/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/gnu/store/6wbncsqn7lnyy49fv5kf2dj33k4a57b2-python-pbr-1.10.0/lib/python3.5/site-packages/pbr/builddoc.py", line 196, in run
    self._sphinx_run()
  File "/gnu/store/6wbncsqn7lnyy49fv5kf2dj33k4a57b2-python-pbr-1.10.0/lib/python3.5/site-packages/pbr/builddoc.py", line 141, in _sphinx_run
    if self.builder == 'man' and len(sphinx_config.man_pages) == 0:
  File "/gnu/store/83sz0r317icx55wamxscl74a3mpipjzw-python-sphinx-1.5.1/lib/python3.5/site-packages/sphinx/config.py", line 275, in __getattr__
    raise AttributeError('No such config value: %s' % name)
AttributeError: No such config value: man_pages
phase `check' failed after 4.6 seconds
note: keeping build directory `/tmp/guix-build-python-oslosphinx-4.10.0.drv-1'
builder for `/gnu/store/92a8a9a69xivshbviy0l6zmnm5gvqdfr-python-oslosphinx-4.10.0.drv' failed with exit code 1
@ build-failed /gnu/store/92a8a9a69xivshbviy0l6zmnm5gvqdfr-python-oslosphinx-4.10.0.drv - 1 builder for `/gnu/store/92a8a9a69xivshbviy0l6zmnm5gvqdfr-python-oslosphinx-4.10.0.drv' failed with exit code 1
guix build: error: build failed: build of `/gnu/store/92a8a9a69xivshbviy0l6zmnm5gvqdfr-python-oslosphinx-4.10.0.drv' failed

Revision history for this message
Paul Belanger (pabelanger) wrote :

I'm actually seeing this too, as a results of the fedora-26 mass rebuild today.

https://kojipkgs.fedoraproject.org//work/tasks/8116/17798116/build.log

Revision history for this message
Paul Belanger (pabelanger) wrote :

Sorry, I should have mentioned, the directory[1] also contains information about build artifacts.

[1] https://kojipkgs.fedoraproject.org/work/tasks/8116/17798116/

Revision history for this message
Paul Belanger (pabelanger) wrote :

okay, looks like this was fixed in by https://bugs.launchpad.net/oslotest/+bug/1379998

Revision history for this message
Danny Milosavljevic (dannym+a) wrote :

@Paul: Thanks, that fix in python-pbr makes it work indeed.

So the fix of this bug would be to just release a new python-pbr which includes commit 9fd7aa2cc7fe50f68bd9c86c3db7a8f7ae710c05 ...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for oslosphinx because there has been no activity for 60 days.]

Changed in oslosphinx:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.