[Pkg-bazaar-maint] Bug#647690: bzr: FTBFS: NotImplementedError: cannot determine number of cpus

Petr Salinger Petr.Salinger at seznam.cz
Sat Nov 5 09:44:54 UTC 2011


>    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
> ------------

It can be used either
     os.sysconf('SC_NPROCESSORS_ONLN')
or
     /bin/sysctl -n hw.ncpu
but not
     /sbin/sysctl -n hw.ncpu

Petr





More information about the Pkg-bazaar-maint mailing list