[Pkg-bazaar-maint] Bug#647690: bzr: FTBFS(kfreebsd): NotImplementedError: cannot determine number of cpus
Robert Millan
rmh at debian.org
Sat Nov 5 11:21:36 UTC 2011
2011/11/5 Christoph Egger <christoph at debian.org>:
> File "/build/buildd-bzr_2.4.2-1-kfreebsd-amd64-jZoBIh/bzr-2.4.2/build/lib.gnukfreebsd-8.1-1-amd64-x86_64-2.7/bzrlib/osutils.py", line 2322, in local_concurrency
> concurrency = multiprocessing.cpu_count()
> File "/usr/lib/python2.7/multiprocessing/__init__.py", line 136, in cpu_count
> raise NotImplementedError('cannot determine number of cpus')
> NotImplementedError: cannot determine number of cpus
I don't know how to do this in python, but in case it helps you can
obtain the number of cpus via { CTL_HW, HW_NCPU } sysctl:
$ sysctl hw.ncpu
hw.ncpu: 2
--
Robert Millan
More information about the Pkg-bazaar-maint
mailing list