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

AttributeError: 'NoneType' object has no attribute 'get_available_nnet_and_data_packets' #1

Closed
itsderek23 opened this issue Jan 13, 2020 · 2 comments

Comments

@itsderek23
Copy link
Contributor

If I run:

python test_cnn.py

and CTRL-C a couple of times to exit the script, eventually I get the following error when attempting to run the script again:

pi@raspberrypi:~/projects/DepthAI/python-api $ python3 test_cnn.py
depthai.__version__ == 0.0.4a
CNN configurations read: ./resources/mobilenet_ssd.json
Changing streaminfo sizes to: 300x300x3
depthai: before xlink init;
Device Found name 1.2- 
about to boot device with "cmd_file": ./depthai_ai.cmd
not xlink success
depthai: Error initalizing xlink;
Traceback (most recent call last):
  File "test_cnn.py", line 43, in <module>
    nnet_packets, data_packets = p.get_available_nnet_and_data_packets()
AttributeError: 'NoneType' object has no attribute 'get_available_nnet_and_data_packets'

I'm assuming the Python code breaks because of:

not xlink success
depthai: Error initalizing xlink;

...which might be triggered by not gracefully exiting the script.

System info:

$ ./log_system_information.sh 
Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
depthai.__version__ == 0.0.4a
numpy.__version__ == 1.16.2
Python 3.7.3
@itsderek23
Copy link
Contributor Author

This doesn't happen on every CTRL-C (more frequently, things cleanup fine).

Clicking the module rst button is the fastest way to get things working again w/the DepthAI: RPi Compute Module Edition.

@itsderek23
Copy link
Contributor Author

Likely fixed via #30.

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