kontron / python-ipmi

A pure python IPMI library
GNU Lesser General Public License v2.1
187 stars 74 forks source link

Accessing Aardvark through Python IPMI module on windows fails #95

Closed shvbalaji closed 3 years ago

shvbalaji commented 3 years ago

Hi Team, I have installed Python-ipmi module with 2.7 version python, I am using Total Phase Aardvark and running an example to create IPMI Interface, so whenever run that I am getting an Pop up Error as Error while Initializing Driver.

But I could able to use Aardvark device though their Control phase application, it detects the Aardvark device and also able to use their Python API's to read the number of devices connected with port and serial number.

Could you anyone share details/comments on this issue? I would like to create a IPMI connection using python-ipmi module with aardvark device and do read/write with IPMI supported device.

hthiery commented 3 years ago

Did you properly install the python-ipmi package and what OS do you use? Could you check if you can access your aardvark with the python-aardvark command line tool?

shvbalaji commented 3 years ago

Hi, Thank you for the response. I am using windows 10 and I have verified the python-aardvark using their api's, able to print the port and devices details. I believe I am getting error while it try to create the ipmi interface using aardvark with slave address and serial number, it is not able to find any devices and throws error as unable to load usb driver.

image

hthiery commented 3 years ago

What version of python-aardvark are you using? By the way. There is a newer python-ipmi version available on pypi.

shvbalaji commented 3 years ago

python-aardvark version is 0.7(pyaardvark-0.7, https://pypi.org/project/pyaardvark/).

Sure I will install the updated version of python-ipmi.

do I need to install this one as well? comments? https://pypi.org/project/aardvark-py/#files

hthiery commented 3 years ago

aardvark-py from total phase is not needed.

shvbalaji commented 3 years ago

Ok, Thanks for the update. Any idea what might be the reason for this issue. I am using Total phase Aardvark i2c adapter for the testing.

hthiery commented 3 years ago

Currently I have no idea. We do not have a setup under windows.

Did you check if you can do a scan with the cli tool from python-aardvark:

# python cli_tool.py scan
Device #0: 2237-473375

So it might be a problem under windows. Are you able to test it also under linux?

shvbalaji commented 3 years ago

I haven't tried with Linux machine, I get the same error unable to load usb error for cli_tool as well.

hthiery commented 3 years ago

Did you try to run with admin privileges under windows?

Balaji Sivakumar @.***> schrieb am Mi., 9. Juni 2021, 17:22:

I haven't tried with Linux machine, I get the same error unable to load usb error for cli_tool as well.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kontron/python-ipmi/issues/95#issuecomment-857796611, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSFGUS55KBOGNXFT6UYP3LTR6BKVANCNFSM46GNRBGA .

hthiery commented 3 years ago

any news on that?

shvbalaji commented 3 years ago

I haven't tried with the Linux machine, Still i get the same error in windows Machine. I started building an IPMB message and planning to use the Aardvark Api's directly.

hthiery commented 3 years ago

I just can confirm this issue. There seems to change something in the aardvark API from totalphase.

shvbalaji commented 3 years ago

Thanks for confirming. Any plans to fix this issue?

hthiery commented 3 years ago

Can you confirm that you are using v3.0.0 of the aardvark windows usb driver? And is it possible that you test v2.16 once?

shvbalaji commented 3 years ago

Yes I am using V3.0.0 of aardvark windows usb driver. I will try the v2.16 and update.

shvbalaji commented 3 years ago

Update: After Installing Aardvark usb Version2.16, I am able to create the IPMI connection using Aardvark interface. Also able to get the device id, Raw commands etc through library.

hthiery commented 3 years ago

thank you for the feedback .. I will close this issue since it is more related to the python-aardvark library (kontron/python-aardvark#23)