# Problems with getting started

**URL:** https://forum.commonvisionblox.com/t/problems-with-getting-started/594
**Category:** Python API
**Created:** [November 23, 2018, 12:23pm UTC](https://forum.commonvisionblox.com/t/problems-with-getting-started/594 "2018-11-23T12:23:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![stmoe](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@stmoe](https://forum.commonvisionblox.com/u/stmoe)
#### Post date: [November 23, 2018, 12:23pm UTC](https://forum.commonvisionblox.com/t/problems-with-getting-started/594/1 "2018-11-23T12:23:55Z")

</div>

Hello there

Just to let you know I got not much experience in programming. I try to set up a JAI Camera for image aquiring. Now I am stuck in the Tutorial

This works fine:

```
image = cvb.Image("C:/Program Files/STEMMER IMAGING/Common Vision Blox/tutorial/Clara.png")

image.save("Clara.bmp")

m = cvb.as_array(image)

plt.imshow(m.transpose(), cmap="gray")

#Stream

emu_device = cvb.DeviceFactory.open("C:/Program Files/STEMMER IMAGING/Common Vision Blox/tutorial\\ClassicSwitch.emu")
stream = emu_device.stream
device_image = emu_device.device_image
print("Emu:")
print("Resolution: " + str(device_image.width) + " x " + str(device_image.height))
print("Frames: " + str(stream.image_count))

```

But here I can’t start the Image aquisition:  
`vin_device = cvb.DeviceFactory.open("C:/Program Files/STEMMER IMAGING/Common Vision Blox/drivers/GenICam.vin")`

It always returns:

```
  File "<ipython-input-16-ef46b32b4d05>", line 1, in <module>
    vin_device = cvb.DeviceFactory.open("C:/Program Files/STEMMER IMAGING/Common Vision Blox/drivers/GenICam.vin")

RuntimeError: {C-API call failed} ({LoadImageFileW})

```

Thanks for some input

---

<div class="post-metadata">

### Author: ![stmoe](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@stmoe](https://forum.commonvisionblox.com/u/stmoe)
#### Post date: [November 23, 2018, 3:37pm UTC](https://forum.commonvisionblox.com/t/problems-with-getting-started/594/2 "2018-11-23T15:37:43Z")

</div>

I now solved this issue, there was a problem with the connection. But still I get no Images, just empty files.

---

<div class="post-metadata">

### Author: ![rtp\_derahs](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/rtp_derahs/32/79_2.png) [@rtp\_derahs](https://forum.commonvisionblox.com/u/rtp_derahs)
#### Post date: [November 27, 2018, 9:32am UTC](https://forum.commonvisionblox.com/t/problems-with-getting-started/594/3 "2018-11-27T09:32:42Z")

</div>

Hi @stmoe

which version of :cvb: is installed and which operating system are you using?

---

<div class="post-metadata">

### Author: ![lxu](https://avatars.discourse-cdn.com/v4/letter/l/dc4da7/32.png) [@lxu](https://forum.commonvisionblox.com/u/lxu)
#### Post date: [May 16, 2019, 9:29am UTC](https://forum.commonvisionblox.com/t/problems-with-getting-started/594/5 "2019-05-16T09:29:05Z")

</div>

I wonder how did you solve the problem of getting error “{C-API call failed} ({LoadImageFileW})”. I am currently experiencing exactly the same error when using cvb.DeviceFactory.open function.

---

<div class="post-metadata">

### Author: ![Andreas](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/andreas/32/75_2.png) [@Andreas](https://forum.commonvisionblox.com/u/Andreas)
#### Post date: [May 20, 2019, 8:16am UTC](https://forum.commonvisionblox.com/t/problems-with-getting-started/594/6 "2019-05-20T08:16:24Z")

</div>

Hi @lxu,

loading the GenICam.vin requires a camera to be configured in advance.  
You can do this using the GenICam Browser. Otherwise loading the driver will fail.
