Open GoogleCodeExporter opened 8 years ago
Can I perhaps get SSH access to this box?
Original comment by g.rodola
on 22 Apr 2013 at 4:19
I can confirm "ValueError: invalid literal for int() with base 10: 'mr'"
exceptions in some tests in psutil 0.7.1. These exceptions are caused by
VmFlags lines in /proc/${PID}/smaps file. I attach an example
/proc/${PID}/smaps from bash process.
Original comment by Arfrever...@gmail.com
on 11 May 2013 at 10:11
Attachments:
> ERROR: test_memory_maps (_linux.LinuxSpecificTestCase)
> ValueError: invalid literal for int() with base 10: 'mr'
Fixed in revision d14f5d42aeb3.
> ERROR: test_test (__main__.TestCase)
> KeyError: 'getpwuid(): uid not found: 1234'
Fixed in revision e6383d44e264.
> ERROR: test_cpu_times (_linux.LinuxSpecificTestCase)
> Traceback (most recent call last):
> File "/home/morph/deb/build-area/python-psutil-0.7.0/test/_linux.py", line
119, in test_cpu_times
> kernel_ver = re.findall('\d.\d.\d', os.uname()[2])[0]
> IndexError: list index out of range
Need some help here. Can you show me the result of os.uname()[2]?
> FAIL: test_cmdline (__main__.TestCase)
> self.assertEqual(psutil.Process(sproc.pid).cmdline, [PYTHON, "-E"])
> AssertionError: [] != ['/usr/bin/python2.6', '-E']
This is weird. Not sure what to do.
> FAIL: test_swap_memory (__main__.TestCase)
> assert mem.total > 0, mem
> AssertionError: swap(total=0L, used=0L, free=0L, percent=0.0, sin=0, sout=0)
Fixed in revision 7cf554c97c82.
> FAIL: test_uids (proc=psutil.Process(pid=13813, name='python2.6'),
ret=user(real=1234, effective=1234, saved=1234)))
> File "test/test_psutil.py", line 1791, in uids
> self.assertIn(uid, self._uids)
> AssertionError: 1234 not found in set([0, 1, 2, 3, 4, 5, 6, 7, ...])
Not sure what to do here.
Is there something particular about your user / OS configuration?
Maybe you can try to investigate?
We get uids by reading /proc/PID/status.
Can you please re-run tests and report back results?
Original comment by g.rodola
on 13 May 2013 at 6:26
Original issue reported on code.google.com by
sandro.tosi
on 13 Apr 2013 at 5:27Attachments: