Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant build data-generator !!! #149

Open
girishkumarbk opened this issue Oct 30, 2018 · 1 comment
Open

Cant build data-generator !!! #149

girishkumarbk opened this issue Oct 30, 2018 · 1 comment

Comments

@girishkumarbk
Copy link

Hi,

I'm trying to use the predictive maintenance data generator "https://github.com/Azure/AI-PredictiveMaintenance/tree/master/src/WebApp/App_Data/jobs/continuous/Simulator"
as a module in Azure IoT edge. https://github.com/Azure/iotedge

In the current form, data generator creates Azure IoT hub devices and then creates the simulated devices and starts sending the data to IoT hub. What I would want to do is to remove the IoThub interface from the data generator and just use the simulated devices to create the messages and publish the same to IoT edge Runtime broker.

I tried to remove the IoT hub interfaces to build the module but am faced with some basic import issues like the one below ...


xxxx@VVVvm:/cb/AI-PredictiveMaintenance/src$ python WebApp/App_Data/jobs/continuous/Simulator/simulator.py
Traceback (most recent call last):
File "WebApp/App_Data/jobs/continuous/Simulator/simulator.py", line 16, in
from devices import SimulatorFactory
File "/home/netiotroot/cb/AI-PredictiveMaintenance/src/WebApp/App_Data/jobs/continuous/Simulator/devices/init.py", line 1, in
from devices.simulated_device import SimulatorFactory
File "/home/netiotroot/cb/AI-PredictiveMaintenance/src/WebApp/App_Data/jobs/continuous/Simulator/devices/simulated_device.py", line 3, in
from abc import ABC, abstractmethod
ImportError: cannot import name ABC
xxxx@VVVvm:
/cb/AI-PredictiveMaintenance/src$


Questions:
1.0) Can we have the instructions on how to build the WebApp jobs on Linux systems ?
2.0) Would it be possible to list down the steps, by the authors of predictive maintenance solution, on what it takes to convert the data generator as a IoT edge module which doesn't send messages to IoT hub but rather to the local pub/sub broker.

The predictive maintenance data generator is a very good use case to work on end to end flow and customize it for our needs.

Hope to here on this soon

Regards,
/Girish BK

@girishkumarbk
Copy link
Author

Any help from authors ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant