luxonis / depthai-experiments

Experimental projects we've done with DepthAI.
MIT License
821 stars 364 forks source link

Why pylance is complaining about NNData(), node, and ImageManipConfig() call in script.py from gen2-gaze-estimation project?(Solved) #506

Closed rhsaeedy closed 11 months ago

rhsaeedy commented 11 months ago

I am working with gen2-gaze-estimation and running the repo in vscode. But pylance is complaining about all instances of NNData(), node, and ImageManipConfig() in the script.py file. I wonder what's the reason and how can I resolve it? I still can run the code somehow but those errors are somehow annoying.

Erol444 commented 11 months ago

Hi @rhsaeedy , It's because the script.py isn't actually being executed on the host computer - it's being transferred to the OAK device, which auto-includes some libraries and adds some functionality. You can also rename the script.py to script.txt or something, so it won't try to do linting.

rhsaeedy commented 11 months ago

Thank you @Erol444 !