Bug#958114: can not use because commonutil can not be imported

Tiziano Zito opossumnano at gmail.com
Sat Apr 18 17:16:13 BST 2020


Package: python3-libsvm
Version: 3.24+ds-3
Severity: important

Hi!

The libsvm package has changed interface and can not be used anymore. With the 
python3-libsvm package from sid the following happens:

python3 -c 'import svmutil'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/svmutil.py", line 8, in <module>
    from commonutil import *
ModuleNotFoundError: No module named 'commonutil'

I think that python3-libsvm should use the same Python package structure as 
upstream. The Debian package pushes svm.py and svmutil.py directly into 
/usr/lib/python3/dist-packages . In the Debian package the file commonutil.py is 
missing (it is available in the source package):

$ ls libsvm-3.24+ds/python
Makefile  README  commonutil.py  svm.py  svmutil.py

Putting commonutil.py directly under /usr/lib/python3/dist-packages would be 
a bad idea, I think, because of possible name clashes. Upstream is actually 
creating a libsvm namespace. When installing libsvm using pip, the package 
layout is the following:

libsvm
├── __init__.py
├── commonutil.py
├── svm.py
└── svmutil.py

As it stands now, I think the python3-libsvm package is unusable...

Thanks for your work!
Tiziano


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.5.0-1-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_FORCED_MODULE, TAINT_USER, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-libsvm depends on:
ii  libsvm3  3.24+ds-3
ii  python3  3.8.2-3

python3-libsvm recommends no packages.

python3-libsvm suggests no packages.

-- no debconf information


More information about the debian-science-maintainers mailing list