Skip to content

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

@impisuperstar

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions