[Aptitude-devel] Bug#873791: [python-numpy] Undefined symbols on several architectures
Matthias Klose
doko at debian.org
Thu Aug 31 15:00:47 UTC 2017
On 31.08.2017 16:39, Axel Beckert wrote:
> Control: affects -1 + apprecommender apt aptitude
>
> Hi,
>
> Ole Streicher wrote:
>> Package: python-numpy
> [...]
>> ImportError:
>> /usr/lib/python2.7/dist-packages/numpy/random/mtrand.aarch64-linux-gnu.so:
>> undefined symbol: PyFPE_jbuf
>
> apprecommender uses python-numpy in its apprec-apt tool which is
> called from an APT hook before apt installs or deinstalls any
> packages. There it bails out like this on amd64:
>
> Traceback (most recent call last):
> File "/usr/bin/apprec-apt", line 11, in <module>
> load_entry_point('apprecommender==0.7.5', 'console_scripts', 'apprec-apt')()
> File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 564, in load_entry_point
> return get_distribution(dist).load_entry_point(group, name)
> File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2662, in load_entry_point
> return ep.load()
> File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2316, in load
> return self.resolve()
> File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2322, in resolve
> module = __import__(self.module_name, fromlist=['__name__'], level=0)
> File "/usr/lib/python2.7/dist-packages/apprecommender/main/apt_run.py", line 9, in <module>
> from apprecommender.main.app_recommender import AppRecommender
> File "/usr/lib/python2.7/dist-packages/apprecommender/main/app_recommender.py", line 6, in <module>
> from apprecommender.recommender import Recommender
> File "/usr/lib/python2.7/dist-packages/apprecommender/recommender.py", line 33, in <module>
> import apprecommender.strategy
> File "/usr/lib/python2.7/dist-packages/apprecommender/strategy.py", line 32, in <module>
> import numpy as np
> File "/usr/lib/python2.7/dist-packages/numpy/__init__.py", line 166, in <module>
> from . import random
> File "/usr/lib/python2.7/dist-packages/numpy/random/__init__.py", line 99, in <module>
> from .mtrand import *
> ImportError: /usr/lib/python2.7/dist-packages/numpy/random/mtrand.x86_64-linux-gnu.so: undefined symbol: PyFPE_jbuf
> E: Sub-process [ ! -x /usr/bin/apprec-apt ] || apprec-apt --pre-install-pkgs returned an error code (1)
> E: Failure running script [ ! -x /usr/bin/apprec-apt ] || apprec-apt --pre-install-pkgs
>
> This prevents any further installation or uninstallation of packages
> with apt, aptitude, etc. without fiddling with hook configurations or
> using dpkg to purge apprecommender.
sorry, but why the hell does apprecommender depend on python-numpy?
Matthias
More information about the Aptitude-devel
mailing list