# ImportError: no module named 'os'

**URL:** <https://forums.openmv.io/t/importerror-no-module-named-os/152>\
**Category:** OpenMV Boards\
**Created:** [November 22, 2016, 4:00pm UTC](https://forums.openmv.io/t/importerror-no-module-named-os/152 "2016-11-22T16:00:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hvtronix](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@hvtronix](https://forums.openmv.io/u/hvtronix)\
**Post date:** [November 22, 2016, 4:00pm UTC](https://forums.openmv.io/t/importerror-no-module-named-os/152/1 "2016-11-22T16:00:50Z")

</div>

I am attempting to capture a snapshot on movement and I am having issues with the ‘os’ module. I am getting the following message when trying to run the code **ImportError: no module named ‘os’**.

The import line looks like this **import sensor, image, pyb, os**

Windows 7 Pro, 64bit, 16Gb RAM  
OpenMV IDE 1.3.0  
OpenMV CAM with 32Gb SD card

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [November 22, 2016, 5:16pm UTC](https://forums.openmv.io/t/importerror-no-module-named-os/152/2 "2016-11-22T17:16:24Z")

</div>

Hi, you need to update your firmware. In one version of our firmware we accidentally removed the OS module. The IDE no longer forces you to do this, but, it should be telling you on the bottom right hand corner of the IDE.

---

<div class="post-metadata">

**Author:** ![hvtronix](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@hvtronix](https://forums.openmv.io/u/hvtronix)\
**Post date:** [November 22, 2016, 8:37pm UTC](https://forums.openmv.io/t/importerror-no-module-named-os/152/3 "2016-11-22T20:37:00Z")

</div>

I was able to update the firmware and run the code without errors. Now I have to make the code save the snapshots, for some reason they are not saving.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [November 22, 2016, 9:05pm UTC](https://forums.openmv.io/t/importerror-no-module-named-os/152/4 "2016-11-22T21:05:36Z")

</div>

Hi, are you using an SD card with the system? The internal flash on the MCU is too small to save images to. You have to have an SD card attached.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [November 22, 2016, 9:07pm UTC](https://forums.openmv.io/t/importerror-no-module-named-os/152/5 "2016-11-22T21:07:12Z")

</div>

Once an image is saved you need to reset the board. Windows will not rescan the flash drive as it doesn’t expect USB flash drives to create files themselves.

You can reset the board via the IDE by going to tools and clicking reset board after you connect.
