# Error deploy yolov8 model to roboflow

**URL:** <https://discuss.roboflow.com/t/error-deploy-yolov8-model-to-roboflow/1343>\
**Category:** 🤝  Community Help\
**Tags:** bugs\
**Created:** [January 22, 2023, 10:22am UTC](https://discuss.roboflow.com/t/error-deploy-yolov8-model-to-roboflow/1343 "2023-01-22T10:22:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChNi](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/chni/32/1093_2.png) [@ChNi](https://discuss.roboflow.com/u/ChNi)\
**Post date:** [January 22, 2023, 10:22am UTC](https://discuss.roboflow.com/t/error-deploy-yolov8-model-to-roboflow/1343/1 "2023-01-22T10:22:59Z")

</div>

They have changed Yolov8 DectionModel args from dictionary to NameSpace.  
Commit: [`ultralytics 8.0.12` - Hydra removal (#506) · ultralytics/ultralytics@c5fccc3 · GitHub](https://github.com/ultralytics/ultralytics/commit/c5fccc3fc44b431fcdb55509d74d7f174bb1d4cf)

Since then the roboflow deploy method doesn’t work anymore on Yolov8 model.

/usr/local/lib/python3.8/dist-packages/roboflow/core/version.py in deploy(self, model\_type, model\_path)  
330 “nc”: model[“model”].nc,  
331 “args”: {  
 → 332 k: val for k, val in model[“model”].args.items() if k != “hydra”  
333 },  
334 “ultralytics\_version”: ultralytics. **version** ,

AttributeError: ‘UltralyticsCFG’ object has no attribute ‘items’

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [January 23, 2023, 7:15pm UTC](https://discuss.roboflow.com/t/error-deploy-yolov8-model-to-roboflow/1343/2 "2023-01-23T19:15:13Z")

</div>

I’ve been notified by the team that the issue should be resolved now.
