upgrading python on raspbian
Gene Heskett wrote:
> Continueing this thread, I now have a missing function by name, "units",
> that is preventing LinuxCNC from running.
> Where in the python 3 world do I find that function?,
Under debian buster there is a python 2 package
called python-quantities that apparently
deals with units via numpy dependencies.
$ apt-cache show python-quantities
Maintainer: Debian Science Maintainers
<debian-science-maintainers at lists.alioth.debian.org>
Installed-Size: 358 kB
Depends: python (<< 2.8), python (>= 2.7), python:any (>= 2.6.6-7~),
Description-en: Library for computation of physical quantities
with units, based on numpy Quantities is designed to handle
arithmetic and conversions of physical quantities, which have
a magnitude, dimensionality specified by various units,
and possibly an uncertainty. Quantities builds on
the popular numpy library and is designed to work with
numpy ufuncs, many of which are already supported.
$ apt-files list python-quantities
Shows a units sub-directory under /usr/lib/python2.7/dist-packages
with several individual modules such as force, length, mass, pressue,
Seems to be also available throug the python package index ....
$ pip install quantities
I have no personal expeience with this package.
Stanley C. Kitching