# Hosted Video Inference error

**URL:** <https://discuss.roboflow.com/t/hosted-video-inference-error/5074>\
**Category:** 🤝  Community Help\
**Created:** [April 2, 2024, 6:17am UTC](https://discuss.roboflow.com/t/hosted-video-inference-error/5074 "2024-04-02T06:17:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timothy\_Malche](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/timothy_malche/32/745_2.png) [@Timothy\_Malche](https://discuss.roboflow.com/u/Timothy_Malche)\
**Post date:** [April 2, 2024, 6:17am UTC](https://discuss.roboflow.com/t/hosted-video-inference-error/5074/1 "2024-04-02T06:17:09Z")

</div>

I am using following code for Hosted Video Inference.

```auto
from roboflow import Roboflow

rf = Roboflow(api_key=" *****************************")
project = rf.workspace().project("bottle-keypoints")
model = project.version("1").model

job_id, signed_url, expire_time = model.predict_video(
    "VID20240401111600.mp4",
    fps=5,
    prediction_type="batch-video",
)

results = model.poll_until_video_results(job_id)

print(results)

```

While running the code I am getting following error.

```auto
loading Roboflow workspace...
loading Roboflow project...
Traceback (most recent call last):
  File "C:\Users\timothym\mycode\infr_sdk_video.py", line 17, in <module>
    job_id, signed_url, expire_time = model.predict_video(
                                      ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'predict_video'

```

What is the cause? How to resolve it. I have created anaconda environment and installed roboflow sdk.

---

<div class="post-metadata">

**Author:** ![Jacob\_Witt](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/jacob_witt/32/347_2.png) [@Jacob\_Witt](https://discuss.roboflow.com/u/Jacob_Witt)\
**Post date:** [April 11, 2024, 12:03pm UTC](https://discuss.roboflow.com/t/hosted-video-inference-error/5074/2 "2024-04-11T12:03:56Z")

</div>

Hi @Timothy_Malche - this should be fixed now!

Please run `pip install --upgrade roboflow` and try again.

---

<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:** [April 18, 2024, 12:04pm UTC](https://discuss.roboflow.com/t/hosted-video-inference-error/5074/3 "2024-04-18T12:04:10Z")

</div>

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