# ModuleNotFoundError: No module named 'ray.serve.utils'

**URL:** <https://discuss.ray.io/t/modulenotfounderror-no-module-named-ray-serve-utils/14875>\
**Category:** Uncategorized\
**Created:** [June 4, 2024, 4:28pm UTC](https://discuss.ray.io/t/modulenotfounderror-no-module-named-ray-serve-utils/14875 "2024-06-04T16:28:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Max](https://discuss.ray.io/u/Max)\
**Post date:** [June 4, 2024, 4:28pm UTC](https://discuss.ray.io/t/modulenotfounderror-no-module-named-ray-serve-utils/14875/1 "2024-06-04T16:28:30Z")

</div>

Hello guys, could you help me? I am using in my project kserving 0.6.1 and when I try to run model I have the error Wojciech, the same ModuleNotFoundError: No module named ‘ray.serve.utils’  
I tried I lot of different versions of ray but got the same error

---

<div class="post-metadata">

**Author:** ![Sam\_Chan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sam_chan/32/5011_2.png) [@Sam\_Chan](https://discuss.ray.io/u/Sam_Chan)\
**Post date:** [June 4, 2024, 5:27pm UTC](https://discuss.ray.io/t/modulenotfounderror-no-module-named-ray-serve-utils/14875/2 "2024-06-04T17:27:23Z")

</div>

Do you have a repro script you can share? How are you installing Ray… if it’s kserve that’s not something the Anyscale team maintains (you may have more luck following up with the kserve community)

---

<div class="post-metadata">

**Author:** ![Max](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Max](https://discuss.ray.io/u/Max)\
**Post date:** [June 4, 2024, 5:28pm UTC](https://discuss.ray.io/t/modulenotfounderror-no-module-named-ray-serve-utils/14875/3 "2024-06-04T17:28:54Z")

</div>

I installed ray in conda env

---

<div class="post-metadata">

**Author:** ![Sam\_Chan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sam_chan/32/5011_2.png) [@Sam\_Chan](https://discuss.ray.io/u/Sam_Chan)\
**Post date:** [June 10, 2024, 5:18pm UTC](https://discuss.ray.io/t/modulenotfounderror-no-module-named-ray-serve-utils/14875/4 "2024-06-10T17:18:40Z")

</div>

Can you share the code you are using to run your model?

---

<div class="post-metadata">

**Author:** ![Max](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Max](https://discuss.ray.io/u/Max)\
**Post date:** [June 12, 2024, 12:04pm UTC](https://discuss.ray.io/t/modulenotfounderror-no-module-named-ray-serve-utils/14875/5 "2024-06-12T12:04:30Z")

</div>

Hi. I can’t share my code, customer doesn’t allow, I changed the structure of the project - inference/src/kserve/model.py and when I run command from inference folder python src/kserve/model.py it crushed on first line of model.py on import kserving
