Git Product home page Git Product logo

python-redfish-utility's People

Contributors

jautor avatar lumbajack avatar mraineri avatar pboyd04 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-redfish-utility's Issues

Not able to run the utility from the latest commit

Running using Python3, the utility comes up, but doesn't seem to take any action on commands that were given to it. Event the "exit" command doesn't close the tool

sudo python3 src/rdmc.py 
redfish : Redfish Utility version 1.0
--------------------------------------------------------------------------------
redfish > login <IP> -u <user> -p <password>
redfish > types
redfish > quit
redfish > exit
redfish > exit
redfish > exit
redfish > 
redfish > 
redfish >

Running using Python2, the utility just crashes; it's looking for the "queue" module, but in Python2, this module is "Queue".

sudo python2 src/rdmc.py 
Error locating extension LoadCommand at location extensions.COMMANDS.LoadCommand.LoadCommand
Traceback (most recent call last):
  File "src/rdmc.py", line 52, in <module>
   importlib.import_module(pkgName), cName)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/share/Redfish/python-redfish-utility/src/extensions/COMMANDS/LoadCommand.py", line 15, in <module>
    from queue import Queue
ImportError: No module named queue

Utility not compatible with python3

When we run the following command, we get an error

C:\Python34> python.exe C:\python-redfish-utility\src\rdmc.py
File "C:\python-redfish-utility\src\rdmc.py", line 69
except Exception, excp:
^
SyntaxError: invalid syntax.

We are very new to python and restapi. As Gen9 and newer generation servers will be using restapi, we planned to try out. Could you let us know what mistakes we are making.

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.