Package: python3-comedilib
Version: 0.11.0+5-1.3+b1
Severity: normal

Dear Maintainer,

The way the comedi Python module is installed by the Debian package means that
a simple script such as the following does not work:

#!/usr/bin/env python3
import comedi
print(comedi.MAJOR)

When run, the follow Error is produced:

AttributeError: module 'comedi' has no attribute 'MAJOR'

This is because the Debian package installs /usr/lib/python3/dist-
packages/comedi/comedi.py whereas building and installing "manually" via the
"./configure; make; sudo make install" method would not create the "comedi"
subdirectory in the *-packages directory.

The following script does work, but is non-canonical:

#!/usr/bin/env python3
import comedi.comedi as comedi
print(comedi.MAJOR)

One workaround is to create the file /usr/lib/python3/dist-
packages/comedi/__init__.py containing just this one line:

from .comedi import *



-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (920, 'testing'), (820, 'testing'), (500, 'testing-debug'), (500, 
'stable-debug'), (500, 'stable'), (120, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 6.12.25-amd64 (SMP w/6 CPU threads; PREEMPT)
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 not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-comedilib depends on:
ii  libc6          2.41-7
ii  libcomedi0t64  0.11.0+5-1.3+b1
ii  python3        3.13.3-1

python3-comedilib recommends no packages.

python3-comedilib suggests no packages.

-- no debconf information

Reply via email to