megacli-python icon indicating copy to clipboard operation
megacli-python copied to clipboard

TypeError: decode() takes no keyword arguments on python2.6

Open impisuperstar opened this issue 6 years ago • 0 comments

Python 2.6.6 (r266:84292, Nov 21 2013, 10:50:32) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from megacli import MegaCLI, MegaCLIError
>>> cli = MegaCLI()
>>> cli.physicaldrives()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/site-packages/megacli/__init__.py", line 265, in physicaldrives
    data = self.execute("-PDList -aAll")
  File "/usr/lib/python2.6/site-packages/megacli/__init__.py", line 41, in execute
    out = out.decode(errors="ignore")
TypeError: decode() takes no keyword arguments
>>> 

impisuperstar avatar Dec 14 '18 13:12 impisuperstar