# YOLOv8 custom model upload error

**URL:** <https://discuss.roboflow.com/t/yolov8-custom-model-upload-error/6268>\
**Category:** 🤝  Community Help\
**Tags:** bugs\
**Created:** [June 22, 2024, 5:33am UTC](https://discuss.roboflow.com/t/yolov8-custom-model-upload-error/6268 "2024-06-22T05:33:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![雅致\_思念](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/%E9%9B%85%E8%87%B4_%E6%80%9D%E5%BF%B5/32/4927_2.png) [@雅致\_思念](https://discuss.roboflow.com/u/%E9%9B%85%E8%87%B4_%E6%80%9D%E5%BF%B5)\
**Post date:** [June 22, 2024, 5:33am UTC](https://discuss.roboflow.com/t/yolov8-custom-model-upload-error/6268/1 "2024-06-22T05:33:58Z")

</div>

I get the following error when trying to upload a custom model

```auto
rf = Roboflow(api_key="***")

print(rf.workspace())

project = rf.workspace("***").project("***")
version = project.version(1)

version.deploy("yolov8", "J:/RookieAI/Model/weights", "best.pt")

```

```auto
loading Roboflow workspace...
loading Roboflow project...
Traceback (most recent call last):
  File "E:\My_PycharmProjects\Yolov8_text\setup.py", line 12, in <module>
    version.deploy("yolov8", "J:/RookieAI/Model/weights", "best.pt")
  File "E:\My_PycharmProjects\Yolov8_text\Python_3.9_YOLOv8\lib\site-packages\roboflow\core\version.py", line 484, in deploy
    if isinstance(model["model"].names, list):
AttributeError: 'NoneType' object has no attribute 'names'

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [July 13, 2024, 5:34am UTC](https://discuss.roboflow.com/t/yolov8-custom-model-upload-error/6268/2 "2024-07-13T05:34:47Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
