GithubHelp home page GithubHelp logo

Comments (11)

tbarbette avatar tbarbette commented on June 1, 2024 3

This file is still not distributed out of today's "pip install". Therefore the quick start example still does not work if followed "line by line".

from python-ilorest-library.

LumbaJack avatar LumbaJack commented on June 1, 2024

@bihary84 _restobject.py is a file we created to help with the examples. You can download it here: https://github.com/HewlettPackard/python-ilorest-library/blob/master/examples/Redfish/_redfishobject.py

from python-ilorest-library.

bihary84 avatar bihary84 commented on June 1, 2024

Hi Jack!
Thank you, I had the impression this is inside the library.
I downloaded it but not I got this error message:

python ex10_add_ilo_user_account.py
Traceback (most recent call last):
  File "ex10_add_ilo_user_account.py", line 16, in <module>
    from _redfishobject import RedfishObject
  File "/root/python/_redfishobject.py", line 74, in <module>
    import redfish.ris.tpdefs
ImportError: No module named redfish.ris.tpdefs

from python-ilorest-library.

LumbaJack avatar LumbaJack commented on June 1, 2024

Are you using the latest code branch? That file is available here: https://github.com/HewlettPackard/python-ilorest-library/blob/master/src/redfish/ris/tpdefs.py

from python-ilorest-library.

bihary84 avatar bihary84 commented on June 1, 2024

I am using this:
https://github.com/HewlettPackard/python-ilorest-library

I just ran the pip install to obtain the library as you can see above.
I have this version:

pip3 show python-ilorest-library
Name: python-ilorest-library
Version: 1.9.2
Summary: iLO Rest Python Library
Home-page: https://github.com/HewlettPackard/python-ilorest-library
Author: Hewlett Packard Enterprise
Author-email: [email protected]
License: UNKNOWN
Location: /usr/lib/python3.4/site-packages
Requires: validictory, jsonpath-rw, jsonpatch, jsonpointer, urlparse2

Should I do the install in a different way? Or are there any prerequisite?

from python-ilorest-library.

LumbaJack avatar LumbaJack commented on June 1, 2024

@bihary84 installing from source is usually my recommendation. Also keep in mind that this library doesn't have support for python 3.

from python-ilorest-library.

bihary84 avatar bihary84 commented on June 1, 2024

I see. In that case I will try to manually put together the rest calls.

from python-ilorest-library.

LumbaJack avatar LumbaJack commented on June 1, 2024

@bihary84 you may want to see if the manually installation works. Just download the zip file and run "python setup.py install". Also we are working on releasing official support for python 3 in the next 2 months.

from python-ilorest-library.

bihary84 avatar bihary84 commented on June 1, 2024

I need python3 so if this is not supported I cannot use that. Actually, I created the python calls I need during this afternoon. I just needed to obtain/delete a token and create/list/del users.
Though, it was a bit tricky to figure out the calls based on the available documentation but finally i managed it:)
Thank you for your help!
How can I be notified about the next released which supports the python3?

from python-ilorest-library.

LumbaJack avatar LumbaJack commented on June 1, 2024

It will be in our 2.0.2+ release. To keep up with releases you can watch/start the project.

from python-ilorest-library.

bihary84 avatar bihary84 commented on June 1, 2024

Thank you! I started to watch the project!

from python-ilorest-library.

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.