Git Product home page Git Product logo

Comments (8)

PuneetRahejaMS avatar PuneetRahejaMS commented on August 9, 2024

@V4A001 Please allow me some time to get more details on your concern

from vision-ai-developer-kit.

PuneetRahejaMS avatar PuneetRahejaMS commented on August 9, 2024

Hello @V4A001 Can you kindly share more details about the Dev box mentioned in your query.

Whereas to debug on the device,

from vision-ai-developer-kit.

V4A001 avatar V4A001 commented on August 9, 2024

I will check those. I mean debugging on a dev-box without having a device and step into a docker module with visual (studio) code. It is not like windows .ce with platform builder and you just start up the debugger and it automatically connects.

from vision-ai-developer-kit.

PuneetRahejaMS avatar PuneetRahejaMS commented on August 9, 2024

@V4A001 We didn’t provide a debugger on from a dev box as it won’t be able to access Qualcomm’s SNPE and hardware acceleration.
Qualcomm didn’t provide such an emulator as well.

from vision-ai-developer-kit.

V4A001 avatar V4A001 commented on August 9, 2024

I am fighting with this already quite a time. Help appreciated to get pytest running and debugger. Python is really a pain in setting up properly with respect to a .NET library.

https://docs.pytest.org/en/latest/goodpractices.html#test-package-name

image

from vision-ai-developer-kit.

PuneetRahejaMS avatar PuneetRahejaMS commented on August 9, 2024

@V4A001 Looking at the screenshot, we cannot tell where your image_decoder module is. This error is just indicating that the module's path is invalid. This has nothing to do with DevKit.

from vision-ai-developer-kit.

V4A001 avatar V4A001 commented on August 9, 2024

I fixed above. I added pytest to start with, but missed the init.py in the test framework.

I want to debug real-time the code on either my laptop or on the device and step through the code.

        while True:
                try:
                    while camera_client.vam_running:                            
                        with camera_client.get_inferences() as results:
                            for result in results:
                                last_time = print_inference(
                                    result, iot_hub_manager, last_time)

from vision-ai-developer-kit.

V4A001 avatar V4A001 commented on August 9, 2024

I followed this article on a Windows instead Mac box:
https://devblogs.microsoft.com/iotdev/easily-build-and-debug-iot-edge-modules-on-your-remote-device-with-azure-iot-edge-for-vs-code-1-9-0/

I have created deployment files with debug and docker file:

RUN pip3 install --upgrade pip
RUN pip install setuptools
RUN pip install ptvsd

main with:

Debugging with Visual Studio Code on Edge Device

import ptvsd

ptvsd.enable_attach(('0.0.0.0', 5678))

and .env file:
"DOCKER_HOST"="ssh://useradmin@myip"

(Inner Exception #0) Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException- Message:Error calling start module AIVisionDevKitGetStartedModule: Could not start module AIVisionDevKitGetStartedModule
caused by: Could not start module AIVisionDevKitGetStartedModule
caused by: failed to add interface veth5943327 to sandbox: error setting interface "veth5943327" IP to 172.18.0.4/16: cannot program address 172.18.0.4/16 in sandbox interface because it conflicts with existing route {Ifindex: 9 Dst: 172.18.0.0/16 Src: 172.18.0.1 Gw: Flags: [] Table: 254}, StatusCode:500, at: at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.HandleException(Exception exception, String operation) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/version_2019_01_30/ModuleManagementHttpClient.cs:line 194

from vision-ai-developer-kit.

Related Issues (20)

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.