Package: python3-psutil
Version: 2.1.1-1

Hello,

trying to import "psutil" in an LXC container (amd64 guest and host)
fails both for Python 2:

| $ python -c 'import psutil'
| Traceback (most recent call last):
|   File "<string>", line 1, in <module>
|   File "/usr/lib/python2.7/dist-packages/psutil/__init__.py", line 1444, in 
<module>
|     _last_cpu_times = cpu_times()
|   File "/usr/lib/python2.7/dist-packages/psutil/__init__.py", line 1439, in 
cpu_times
|     return _psplatform.cpu_times()
|   File "/usr/lib/python2.7/dist-packages/psutil/_pslinux.py", line 231, in 
cpu_times
|     return scputimes(*fields)
| TypeError: __new__() takes exactly 8 arguments (1 given)

... and Python 3:

| Traceback (most recent call last):
|   File "<string>", line 1, in <module>
|   File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 1444, in 
<module>
|     _last_cpu_times = cpu_times()
|   File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 1439, in 
cpu_times
|     return _psplatform.cpu_times()
|   File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 231, in 
cpu_times
|     return scputimes(*fields)
| TypeError: __new__() missing 7 required positional arguments: 'user', 'nice', 
'system', 'idle', 'iowait', 'irq', and 'softirq'

This does not happen on my host system or in a schroot, so I suppose
this is somehow platform specific? LXC should be fairly reproducible,
but of course I'm happy to try additional debugging steps/test
potential fixes.

I tried some older versions (1.2.1 and 1.1.3) and they fail in the
same way, so it's not a (recent) regression.

Thanks,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

Attachment: signature.asc
Description: Digital signature

Reply via email to