# Support: Cannot run demo scripts.

**URL:** <https://forums.openmv.io/t/support-cannot-run-demo-scripts/59>\
**Category:** OpenMV Boards\
**Created:** [February 13, 2016, 6:43pm UTC](https://forums.openmv.io/t/support-cannot-run-demo-scripts/59 "2016-02-13T18:43:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![robmurrer](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@robmurrer](https://forums.openmv.io/u/robmurrer)\
**Post date:** [February 13, 2016, 6:43pm UTC](https://forums.openmv.io/t/support-cannot-run-demo-scripts/59/1 "2016-02-13T18:43:26Z")

</div>

I am playing with my OpenMV that I got (order number: 1024). I cannot seem to get any of the demo scripts to run from the IDE. I can screen into the the it though:

```python
Micro Python v1.4.4-125-g07c8f99 on 2015-08-18; OPENMV2 with STM32F427
Type "help()" for more information.
>>> sensor.reset()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'sensor' is not defined
>>> import sensor
>>> sensor.reset()
>>> sensor.snapshot()
<image width:160 height:120 bpp:2>
>>>

```

I’ve read some of the docs and it seems the IDE is not ready for prime time yet. How do I work with this product without the IDE?

---

<div class="post-metadata">

**Author:** ![deshipu](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/deshipu/32/8_2.png) [@deshipu](https://forums.openmv.io/u/deshipu)\
**Post date:** [February 13, 2016, 6:54pm UTC](https://forums.openmv.io/t/support-cannot-run-demo-scripts/59/2 "2016-02-13T18:54:08Z")

</div>

I can use the IDE just fine (after some initial problems with firmware flashing). Are you getting any errors? What do you do exactly?

---

<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:** [February 13, 2016, 7:09pm UTC](https://forums.openmv.io/t/support-cannot-run-demo-scripts/59/3 "2016-02-13T19:09:27Z")

</div>

I heavily recommend that you just follow this guide here: [Home · openmv/openmv Wiki · GitHub](https://github.com/openmv/openmv/wiki)

Also, did you read through the tutorial? [https://openmv.io/docs/openmv/tutorial/index.html](https://openmv.io/docs/openmv/tutorial/index.html)

If you can get the linux dev environment setup you’ll be able to get all of our fixes which are going to come pretty frequently.

---

<div class="post-metadata">

**Author:** ![robmurrer](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@robmurrer](https://forums.openmv.io/u/robmurrer)\
**Post date:** [February 13, 2016, 7:51pm UTC](https://forums.openmv.io/t/support-cannot-run-demo-scripts/59/4 "2016-02-13T19:51:11Z")

</div>

So I am noticing I clicked OpenMV1… Thought I had 1 but I guess I have 2 🙂

I got it to give me an image in the frame buffer. Sorry for the false alarm.

I will go look into setting up a linux vm… I’m on OS X.

---

<div class="post-metadata">

**Author:** ![blmorris](https://avatars.discourse-cdn.com/v4/letter/b/7cd45c/32.png) [@blmorris](https://forums.openmv.io/u/blmorris)\
**Post date:** [February 16, 2016, 4:23pm UTC](https://forums.openmv.io/t/support-cannot-run-demo-scripts/59/5 "2016-02-16T16:23:15Z")

</div>

> [@robmurrer](#):
>
> So I am noticing I clicked OpenMV1… Thought I had 1 but I guess I have 2 🙂
> 
> I got it to give me an image in the frame buffer. Sorry for the false alarm.
> 
> I will go look into setting up a linux vm… I’m on OS X.

I’ve also found that the IDE is less robust loading the example code on OSX than it is on Linux (Ubuntu). Mostly this manifests as having to hit “Connect” and then “Execute” several times before the code will run.  
This is running the IDE from the current source tree, not the pre-built OSX application. I can’t dig into it right now, but I suspect that there is an issue with USB being handled differently in OSX than in Linux (encountered this before). When I get back to the office next week I’ll see if I can find any notable differences between OSX and Linux with my Beagle USB bus analyzer.

-Bryan

---

<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:** [February 16, 2016, 5:26pm UTC](https://forums.openmv.io/t/support-cannot-run-demo-scripts/59/6 "2016-02-16T17:26:25Z")

</div>

Oh, you have a USB analyzer? Nice. Those things are very pricey.

As for our code with connecting. We’re just talking to the camera as a serial port… we really don’t have that much setup logic. See here: [https://github.com/openmv/openmv/blob/master/usr/openmv.py#L42](https://github.com/openmv/openmv/blob/master/usr/openmv.py#L42)

I guess the python serial code needs work.

---

<div class="post-metadata">

**Author:** ![iabdalkader](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/iabdalkader/32/1169_2.png) [@iabdalkader](https://forums.openmv.io/u/iabdalkader)\
**Post date:** [February 16, 2016, 6:31pm UTC](https://forums.openmv.io/t/support-cannot-run-demo-scripts/59/7 "2016-02-16T18:31:15Z")

</div>

> Mostly this manifests as having to hit “Connect” and then “Execute” several times before the code will run.

This was fixed recently.
