# Error when deploying

**URL:** <https://discuss.roboflow.com/t/error-when-deploying/1345>\
**Category:** 🤝  Community Help\
**Created:** [January 22, 2023, 5:07pm UTC](https://discuss.roboflow.com/t/error-when-deploying/1345 "2023-01-22T17:07:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bllfoad](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/bllfoad/32/1098_2.png) [@Bllfoad](https://discuss.roboflow.com/u/Bllfoad)\
**Post date:** [January 22, 2023, 5:07pm UTC](https://discuss.roboflow.com/t/error-when-deploying/1345/1 "2023-01-22T17:07:35Z")

</div>

when deploying to roboflow this error keeps showing any possible fix ?

AttributeError Traceback (most recent call last)  
 in   
----\> 1 project.version(dataset.version).deploy(model\_type=“yolov8”, model\_path=f"{HOME}/runs/detect/train/")

/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:** ![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 23, 2023, 10:18am UTC](https://discuss.roboflow.com/t/error-when-deploying/1345/2 "2023-01-23T10:18:45Z")

</div>

Had the same issue. A solution, if you want to deploy while they fix this issue. Take the code of the deploy method and create a deploy2 method in your notebook with line 332 being replaced by:

k: val for k, val in dict(model[“model”].args).items() if k != “hydra”

then call this deploy2 instead of deploy.

---

<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-when-deploying/1345/3 "2023-01-23T19:15:31Z")

</div>

Hi @Bllfoad @ChNi - I’ve been notified by the team that the issue should be resolved now.
