# Deploy to Luxonis OAK code provided by Roboflow does not work

**URL:** <https://discuss.roboflow.com/t/deploy-to-luxonis-oak-code-provided-by-roboflow-does-not-work/2420>\
**Category:** 🤝  Community Help\
**Tags:** bugs, feature-request, export\
**Created:** [June 12, 2023, 2:01pm UTC](https://discuss.roboflow.com/t/deploy-to-luxonis-oak-code-provided-by-roboflow-does-not-work/2420 "2023-06-12T14:01:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gsUniVie](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@gsUniVie](https://discuss.roboflow.com/u/gsUniVie)\
**Post date:** [June 12, 2023, 2:01pm UTC](https://discuss.roboflow.com/t/deploy-to-luxonis-oak-code-provided-by-roboflow-does-not-work/2420/1 "2023-06-12T14:01:46Z")

</div>

Hi,  
I already tested all the depthai demos on my OAK device. Every demo is working fine but when I’m using the Luxonis OAK code provided by Roboflow ([Luxonis OAK (On Device) - Roboflow](https://docs.roboflow.com/inference/luxonis-oak)) for my object detection project on my Raspberry Pi 4 I always get the Key-Error ‘colors’, more detailed:

Traceback (most recent call last):  
File “home/pi/myvideo.py”, line 8, in   
rf=RoboflowOak(model=“schwimmen-cp33a”, confidence=0.05, overlap=0.5,  
File “/usr/local/lib/python3.9/dist-packages/roboflowak/_init_.py”, line 46, in _init_  
self.colors=self.model\_objects[“colors”]  
KeyError: ‘colors’

roboflowoak is on the latest version 0.0.8, python at 3.9.

I’m looking foreward for your suggestions.

Best regards,  
Gerald
