Bug#896361: python-quantities: quantities fails to import
Helmut Grohne
helmut at subdivi.de
Fri Apr 20 21:01:08 BST 2018
Package: python-quantities
Version: 0.10.1-1
Severity: serious
User: helmutg at debian.org
Usertags: python-import
After installing python-quantities importing the module quantities
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/quantities/__init__.py", line 283, in <module>
from .units import *
File "/usr/lib/python2.7/dist-packages/quantities/units/__init__.py", line 9, in <module>
from . import acceleration
File "/usr/lib/python2.7/dist-packages/quantities/units/acceleration.py", line 7, in <module>
from .time import s
File "/usr/lib/python2.7/dist-packages/quantities/units/time.py", line 18, in <module>
aliases=['milliseconds']
File "/usr/lib/python2.7/dist-packages/quantities/unitquantity.py", line 62, in __new__
ret._conv_ref = definition._reference
File "/usr/lib/python2.7/dist-packages/quantities/quantity.py", line 139, in _reference
rq = rq * u._reference**d
File "/usr/lib/python2.7/dist-packages/quantities/unitquantity.py", line 230, in __pow__
return self.view(Quantity).__pow__(other)
File "/usr/lib/python2.7/dist-packages/quantities/quantity.py", line 88, in g
return f(self, other, *args)
File "/usr/lib/python2.7/dist-packages/quantities/quantity.py", line 321, in __pow__
return super(Quantity, self).__pow__(other)
File "/usr/lib/python2.7/dist-packages/quantities/quantity.py", line 236, in __array_prepare__
"""
ValueError: ufunc %r not supported by quantities
please file a bug report at https://github.com/python-quantities
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
More information about the debian-science-maintainers
mailing list