Package: python3-blockdev
Version: 2.20-7+deb10u1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

What's need to be done:
    - Play arround with the BlockDev API within python

What exactly did you do (or not do) that was effective (or ineffective)?
    - Do a simple apt install python3-blockdev and install with deps
    - Run this piece of code with the offcial pyobject docs as reference 
      - <https://pygobject.readthedocs.io/en/latest/getting_started.html>

=== Python Source ===
import gi
from gi import Repository
version = Repository.get_default().enumerate_versions("BlockDev")
gi.require_version("BlockDev", version[0] if version else "2.0")
from gi.repository import BlockDev
print(BlockDev.__name__)
===========================

What was the outcome of this action?

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 129, in 
require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Blockdev not available

* What outcome did you expect instead?

gi.repository.BlockDev to stdout

* Found Workarround:

Run apt install gir1.2-blockdev-2.0 install with deps and rerun the python 
snippet

* Proposed Solution:
Make python3-blockdev depends on gir1.2-blockdev-2.0 OR maka a reference in 
suggested package


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

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

Versions of packages python3-blockdev depends on:
ii  libblockdev2  2.20-7+deb10u1
ii  python3       3.7.3-1
ii  python3-gi    3.30.4-1

python3-blockdev recommends no packages.

python3-blockdev suggests no packages.

-- no debconf information

Reply via email to