Package: python-dmidecode
Version: 3.12.2-3

Getting the 'memory' section leads to strange python behaviour, e.g. the 
subsequent command fails with:

  'IndexError: list assignment index out of range'

This depends in the hardware and can't be reproduced everywhere.

Example:

$ python
Python 2.7.13 (default, Sep 26 2018, 18:42:22) 
[GCC 6.3.0 20170516] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dmidecode
>>> dmidecode.memory()
{'0x1000': {'dmi_type': 16, 'data': {'Maximum Capacity': '64 GB', 'Number 
<snip>
'Manufacturer': '', 'Size': None, 'Form Factor': 'Unknown', 'Array 
Handle': '0x1000'}, 'dmi_handle': '0x1103', 'dmi_size': 40}}
>>> print ""
IndexError: list assignment index out of range

Others have also seen this behaviour:

https://bugs.centos.org/view.php?id=14124

The not yet merged pull request[1] on github fixes the problem (at least 
for me).

I am using Debian/stretch amd64.

[1] https://github.com/nima/python-dmidecode/pull/5

Best regards,
Matthias

Reply via email to