This fixes it: https://github.com/neurodroid/stimfit/commit/7edbf088
Thanks to Yaroslav for the pointer. Will release 0.15.6 including the bug fix soon.

On Tue, Apr 24, 2018 at 9:29, Christoph Schmidt-Hieber <chris...@gmx.de> wrote:
Thanks for the bug report.
Looks like dh-python2 renames some shared library files. The relevant output when running debuild is copied in below.
Does anyone know how to stop dh_python2 from renaming shared library files?

D: dh_python2 fs:47: moving files from debian/python-stfio/usr/lib/python2.7/site-packages to debian/python-stfio/usr/lib/python2.7/dist-packages/ D: dh_python2 tools:217: invoking: python2.7 -c 'import sysconfig as s;print("__SEP__".join(i or "" for i in s.get_config_vars("SOABI", "MULTIARCH", "INCLUDEPY", "LIBPL", "LDLIBRARY")))' I: dh_python2 fs:91: renaming debian/python-stfio/usr/lib/python2.7/site-packages/stfio/_stfio.so to debian/python-stfio/usr/lib/python2.7/site-packages/stfio/_stfio.x86_64-linux-gnu.so I: dh_python2 fs:91: renaming debian/python-stfio/usr/lib/python2.7/site-packages/stfio/libstfio.so to debian/python-stfio/usr/lib/python2.7/site-packages/stfio/libstfio.x86_64-linux-gnu.so I: dh_python2 fs:91: renaming debian/python-stfio/usr/lib/python2.7/site-packages/stfio/libstfnum.so to debian/python-stfio/usr/lib/python2.7/site-packages/stfio/libstfnum.x86_64-linux-gnu.so I: dh_python2 fs:91: renaming debian/python-stfio/usr/lib/python2.7/site-packages/stfio/libbiosiglite.so to debian/python-stfio/usr/lib/python2.7/site-packages/stfio/libbiosiglite.x86_64-linux-gnu.so W: dh_python2 dh_python2:67: public extension linked with libpython2.7: _stfio.x86_64-linux-gnu.so
On Fri, Apr 20, 2018 at 22:01, Helmut Grohne <hel...@subdivi.de> wrote:
Package: python-stfio
Version: 0.15.5-1
Severity: serious
User: helm...@debian.org
Usertags: python-import

After installing python-stfio importing the module stfio
into a python interpreter fails with the following error:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/stfio/__init__.py", line 6, in <module>
from .stfio import *
File "/usr/lib/python2.7/dist-packages/stfio/stfio.py", line 23, in <module>
_stfio = swig_import_helper()
File "/usr/lib/python2.7/dist-packages/stfio/stfio.py", line 22, in swig_import_helper
return importlib.import_module('_stfio')
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named _stfio

The vast majority of import failures is attributed to missing dependencies.
Often times that manifests as an ImportError or ModuleNotFoundError.
Typically, dependencies should be inserted by dh-python via ${python:Depends} or ${python3:Depends}. Thus a missing dependency can be caused by incomplete install_requires in setup.py. Sometimes a missing dependency of a dependency
is the cause, in such cases this bug should be reassigned.

Helmut

Reply via email to