2011/11/5 Christoph Egger <[email protected]>:
>  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



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to