[Python-modules-team] Bug#939268: First example in the tutorial doesn't work

Steve McIntyre steve at einval.com
Mon Sep 2 17:31:07 BST 2019


Package: python3-cairo-doc
Version: 1.16.2-1
Severity: normal

Hi!

I'm looking at using the python3-cairo library in my code as part of a
python3 upgrade. So I've just installed python3-cairo and
python3-cairo-doc to start working with it. Unfortunately, the very
first example given in the tutorial
(/usr/share/doc/python3-cairo-doc/html/tutorial.html) doesn't work:

$ ./cairo.py
Traceback (most recent call last):
  File "./cairo.py", line 4, in <module>
    import cairo
  File "/home/steve/linaro/vlan/vland.git/Vland/visualisation/cairo.py", line 8, in <module>
    surface = cairo.ImageSurface (cairo.FORMAT_ARGB32, WIDTH, HEIGHT)
AttributeError: 'module' object has no attribute 'ImageSurface'

This is not a helpful start!

-- System Information:
Debian Release: 10.0
  APT prefers stable
  APT policy: (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-cairo-doc depends on:
ii  libjs-sphinxdoc          1.8.4-1
ii  sphinx-rtd-theme-common  0.4.3+dfsg-1

python3-cairo-doc recommends no packages.

python3-cairo-doc suggests no packages.

-- no debconf information



More information about the Python-modules-team mailing list