Giter Site home page Giter Site logo

Comments (4)

shrprakash avatar shrprakash commented on September 26, 2024

HPiLO_CLI command output if it helps

[root@localhost iLO]# hpilo_cli -dd '16.114.189.214' -l Administrator -p ***** get_fw_version
Connecting to 16.114.189.214 port 443
Connecting to 16.114.189.214 port 443
Sending XML request, 132 bytes
POST /ribcl HTTP/1.1
Host: localhost
Content-Length: 52
Connection: Close


Received 424 bytes
HTTP/1.1 200 OK
Content-Type: text/xml
Transfer-Encoding: chunked
Cache-Control: no-cache
Connection: close
Date: Sun, 06 Oct 2013 13:41:03 GMT
Server: HP-iLO-Server/1.30

Traceback (most recent call last):
File "/usr/local/bin/hpilo_cli", line 280, in
main()
File "/usr/local/bin/hpilo_cli", line 194, in main
results = [getattr(ilo, method)(**params)]
File "/usr/local/lib/python3.4/site-packages/hpilo.py", line 950, in get_fw_version
return self._info_tag('RIB_INFO', 'GET_FW_VERSION')
File "/usr/local/lib/python3.4/site-packages/hpilo.py", line 623, in _info_tag
header, message = self._request(root)
File "/usr/local/lib/python3.4/site-packages/hpilo.py", line 186, in _request
xml = b("\r\n").join(etree.tostringlist(xml)) + b('\r\n')
File "/usr/local/lib/python3.4/xml/etree/ElementTree.py", line 1151, in tostringlist
short_empty_elements=short_empty_elements)
File "/usr/local/lib/python3.4/xml/etree/ElementTree.py", line 778, in write
short_empty_elements=short_empty_elements)
TypeError: _serialize_xml() got an unexpected keyword argument 'short_empty_elements'

from python-hpilo.

seveas avatar seveas commented on September 26, 2024

Your environment is messed up. You're using a python 3.4 stdlib with python 2.6/2.7. This will never work and is in no way related to anything python-hpilo does.

from python-hpilo.

seveas avatar seveas commented on September 26, 2024

Ah, no, I need to read better :) You're using python-hpilo 2.6, not python 2.6 :)

Looking at the actual output: you're using a buggy version of the iLO firmware that uses single quotes to quote attributes. I believe python 3.4's elementtree will barf if it does that. Please upgrade the firmware of this iLO device.

from python-hpilo.

seveas avatar seveas commented on September 26, 2024

Fixed in 02dca19

from python-hpilo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.