Azure-docs: Call the direct method section, BackEndApplication/azure-iothub-service-client failure.

Created on 17 Dec 2019  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-docs

I am trying to run the direct method example 'BackEndApplication.py'. I have followed the instructions but when I get to the part that it says to execute, the response is:

Traceback (most recent call last):
File "BackEndApplication.py", line 9, in <module>
import iothub_service_client
File "/home/xilinx/.local/lib/python2.7/site-packages/iothub_service_client/__init__.py", line 1, in <module>
from .iothub_service_client import *
ImportError: /home/xilinx/.local/lib/python2.7/site-packages/iothub_service_client/iothub_service_client.so: invalid ELF header

I understand that for this sample, you have to install the Pip package for the V1 service client, azure-iothub-service-client, which I did and this appears to be generating the error. Is this a known issue? Is there a work-around or another sample that works correctly that can be used?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 assigned-to-author doc-bug in-progress iot-husvc triaged

All 5 comments

Hi @jflynn129 I am sorry you are facing this, currently this tutorial is in transition, where they are moving to a v2 of the SDK so temporarily one of the apps runs on v1 while the other rund on v2 and they have a depencency on different version of Python. Please see the issue: https://github.com/MicrosoftDocs/azure-docs/issues/42894#issuecomment-558871242 @JimacoMS3 Can you please help since you have been looking into these issues?

@jflynn129 Please check the other issue and provided suggestions. Let us know if you need further help

Assigning to @JimacoMS3 for following-up while the transition for v2 is not completed. Thanks!

Will do thanks for the help.

@jflynn129 FYI, the topic has now been updated for V2 service and device clients. Please check it out. At this time, we're still working on some of the other topics. In the meantime, please check out the Python SDK for more detail about functionality and samples.

-Jimaco

Was this page helpful?
0 / 5 - 0 ratings