Bug#1065120: python3-tables: includes Python package dependency on blosc2 in metadata
David M. Cooke
david.m.cooke at gmail.com
Thu Feb 29 22:02:05 GMT 2024
Package: python3-tables
Version: 3.9.2-1
Severity: normal
X-Debbugs-Cc: none, david.m.cooke at gmail.com, David M. Cooke <david.m.cooke at gmail.com>
Dear Maintainer,
While attempting to run vitables, I get the following traceback:
Traceback (most recent call last):
File "/usr/bin/vitables", line 33, in <module>
sys.exit(load_entry_point('ViTables==3.0.2', 'gui_scripts', 'vitables-run')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/vitables", line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/share/vitables/vitables/start.py", line 31, in <module>
from vitables.vtapp import VTApp
File "/usr/share/vitables/vitables/vtapp.py", line 43, in <module>
import vitables.preferences.pluginsloader as pluginsloader
File "/usr/share/vitables/vitables/preferences/pluginsloader.py", line 26, in <module>
import pkg_resources
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3327, in <module>
@_call_aside
^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3302, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3340, in _initialize_master_working_set
working_set = WorkingSet._build_master()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 631, in _build_master
ws.require(__requires__)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 968, in require
needed = self.resolve(parse_requirements(requirements))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 829, in resolve
dist = self._resolve_dist(
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 870, in _resolve_dist
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'blosc2>=2.3.0' distribution was not found and is required by tables
(Reported as Bug#1065117)
Ultimately, I believe the problem to be that
/usr/lib/python3/dist-packages/tables-3.9.2.dist-info/METADATA
includes a line 'Requires-Dist: blosc2 >=2.3.0' (unless that information
is somewhere elso also; I couldn't find it elsewhere). However, the
blosc2 Python package isn't installed (nor, for that matter, packaged
for Debian). When vitables starts to look for plugins, the
pkg_resources module attempts to resolve vitables' Python dependencies.
>From what I can tell, the Python bindings in the blosc2 package aren't
used, and it's only listed for the blosc2 library and headers it
includes -- python3-tables is built against the libblosc2-2 Debian
package instead.
I think removing the offending line from METADATA should be a
sufficient fix.
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.6.15-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-tables depends on:
ii python-tables-data 3.9.2-1
ii python3 3.11.6-1
ii python3-cpuinfo 9.0.0-1
ii python3-numexpr 2.9.0-1
ii python3-numpy 1:1.24.2-2
ii python3-packaging 23.2-1
ii python3-tables-lib 3.9.2-1
python3-tables recommends no packages.
Versions of packages python3-tables suggests:
pn python-tables-doc <none>
ii python3-netcdf4 1.6.5-1+b1
ii vitables 3.0.2-4
-- no debconf information
More information about the debian-science-maintainers
mailing list