Azure / Azure/azure-iot-hub-python

pip install azure-iot-hub succeeds, but 'iot' folder does not exist

Open
#13 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
18
Forks
24
Avg merge
3d 23h
Merged PRs (30d)
1

Description

On a Beaglebone Black, I want to run some python code making use of this package.
The device is on Debian 11. Using python 3.9
Virtual environment is selected with source activate.

After running pip install azure-iot-hub or pip3 ..., the install process looks as normal.
Yet python code fails to run when trying to import the modules from azure.iot.hub.

When taking a look at venv/lib/pyhton3.9/site-packages/azure, "iot" folder does not exist.
After searching online, it popped up several times. People suggested to build the wheel locally.
This is not a good idea since the beaglebone has really limited hardware.

We can download the "wheel" on pypi.
When I do pip install ...whl, it gives the same behaviour.

Yet when I just unzip and copy the 'iot' folder to venv/lib/pyhton3.9/site-packages/azure/, everything works as expected.
This is not a good way since it requires manual action and is hard to automate in pipelines. (in comparison to requirements file)

Is this expected behavior for armv7? Should this work or is just doing "pip3 install azure-iot-hub" wrong?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing `pip install azure-iot-hub` and the `azure.iot.hub` import on Debian 11 with Python 3.9 and ARMv7, then inspect the installed package contents. Done means the package installs from a requirements file and the import works without manually copying the `iot` folder.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, python
Domain
api, embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.