# Error while importing roboflow

**URL:** <https://discuss.roboflow.com/t/error-while-importing-roboflow/1708>\
**Category:** 🤝  Community Help\
**Created:** [March 17, 2023, 10:38am UTC](https://discuss.roboflow.com/t/error-while-importing-roboflow/1708 "2023-03-17T10:38:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abishek\_H](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/abishek_h/32/1439_2.png) [@Abishek\_H](https://discuss.roboflow.com/u/Abishek_H)\
**Post date:** [March 17, 2023, 10:38am UTC](https://discuss.roboflow.com/t/error-while-importing-roboflow/1708/1 "2023-03-17T10:38:18Z")

</div>

Hello.  
I had trained an object detection model on Roboflow using 1000 images.  
While the model got successfully trained and I am able to visualize the inference on a test image uploaded from local, I am not able to use the inference API using a python script.

After performing `pip install roboflow`, In a jupyter notebook, when i try the code as mentioned in the documentation, the following error is thrown.

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/5/5964d197a5dc086ce30139c475e0fb1cb69be0cf.png)

Can someone please help me with this? I cannot seem to find the solution online.

1. Project type (Object detection)
2. OS - Win 11, Browser - Edge

---

<div class="post-metadata">

**Author:** ![rtwhite1546](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/rtwhite1546/32/1470_2.png) [@rtwhite1546](https://discuss.roboflow.com/u/rtwhite1546)\
**Post date:** [March 22, 2023, 4:07am UTC](https://discuss.roboflow.com/t/error-while-importing-roboflow/1708/2 "2023-03-22T04:07:27Z")

</div>

Same issue here on a new install of the roboflow package.

To the original poster, version 0.2.34 will import successfully and download Roboflow datasets at least:

> pip install roboflow==0.2.34

I’m not sure if the desired functionality is in this version to you, but it worked for my purposes.

---

<div class="post-metadata">

**Author:** ![poshumano](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/poshumano/32/1514_2.png) [@poshumano](https://discuss.roboflow.com/u/poshumano)\
**Post date:** [March 25, 2023, 5:31pm UTC](https://discuss.roboflow.com/t/error-while-importing-roboflow/1708/3 "2023-03-25T17:31:17Z")

</div>

Thank you so much! \<3

---

<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:** [March 27, 2023, 11:15pm UTC](https://discuss.roboflow.com/t/error-while-importing-roboflow/1708/4 "2023-03-27T23:15:23Z")

</div>

You can also use `pip install -U roboflow` or `pip install --upgrade roboflow` to upgrade to the latest version of the package

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [August 24, 2023, 5:21am UTC](https://discuss.roboflow.com/t/error-while-importing-roboflow/1708/5 "2023-08-24T05:21:23Z")

</div>

Split this topic on August 24, 2023, 5:21am UTC

A post was split to a new topic: [Module ‘cv2’ has no attribute](https://discuss.roboflow.com/t/module-cv2-has-no-attribute/3005)

---

<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:** [August 31, 2023, 5:22am UTC](https://discuss.roboflow.com/t/error-while-importing-roboflow/1708/6 "2023-08-31T05:22:04Z")

</div>

Closed on August 31, 2023, 5:22am UTC

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