Cannot import name 'Directive' from 'sphinx.util.compat'

Bug #1972008 reported by rhi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sphinxcontrib-youtube (Ubuntu)
New
Undecided
Unassigned

Bug Description

1. Install sphinx (python3-sphinx 4.3.2-1) and python3-sphinxcontrib.youtube (1.0-1.1) from Ubuntu 22.04 (latest updates 6 Mai 2022).
2. Use the sphinxcontrib.youtube from within a sphinx project.
3. Compile with "build html".

Expected result:
Should generate the HTML.

Actual result:
Running Sphinx v4.3.2

Extension error:
Could not import extension sphinxcontrib.youtube (exception: cannot import name 'Directive' from 'sphinx.util.compat' (/usr/lib/python3/dist-packages/sphinx/util/compat.py))
make: *** [Makefile:19: html] Fehler 2

Workaround:
Uninstall python3-sphinxcontrib.youtube package, run "pip install sphinxcontrib.youtube". Then it compiles again.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: python3-sphinxcontrib.youtube 1.0-1.1
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Uname: Linux 5.15.0-27-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Fri May 6 19:04:19 2022
InstallationDate: Installed on 2022-04-10 (26 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Beta amd64 (20220329.1)
PackageArchitecture: all
SourcePackage: sphinxcontrib-youtube
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
rhi (rfc2822) wrote :
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.