# Error importing Ketai Library

**URL:** https://discourse.processing.org/t/error-importing-ketai-library/27096
**Category:** Processing for Android
**Created:** [January 15, 2021, 4:47pm UTC](https://discourse.processing.org/t/error-importing-ketai-library/27096 "2021-01-15T16:47:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)
#### Post date: [January 15, 2021, 4:47pm UTC](https://discourse.processing.org/t/error-importing-ketai-library/27096/1 "2021-01-15T16:47:28Z")

</div>

I have been using this library now for a while, and have had issues using it like the other libraries I download. Normally I just download the library add it to the libraries folder make sure the names match and it works, or I use the built in libraries addon manager in processing and again very straightforward. However this one is giving me a bit of grief, and I have to resort to adding it to the code folder of a sketch folder, meaning I always have to save the sketch first. Am I the only one experiencing this?

![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/c/c9b89716f4ef83b98b4a110af1cd899554777e75.png)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/e/ef42bb68028fd11e4693053b01cdaa6671952962.png)

```auto
import ketai.*;

void setup(){
  
};

void draw(){
  
};

```

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [January 17, 2021, 6:59pm UTC](https://discourse.processing.org/t/error-importing-ketai-library/27096/2 "2021-01-17T18:59:26Z")

</div>

Hello,

I get the same error with your example.

It DOES work with all the Ketai examples that come with the library.

Take a look at those for examples.

`:)`

---

<div class="post-metadata">

### Author: ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)
#### Post date: [January 17, 2021, 11:57pm UTC](https://discourse.processing.org/t/error-importing-ketai-library/27096/3 "2021-01-17T23:57:19Z")

</div>

Thanks I’ll go take a look.

---

<div class="post-metadata">

### Author: ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)
#### Post date: [March 3, 2021, 6:43pm UTC](https://discourse.processing.org/t/error-importing-ketai-library/27096/4 "2021-03-03T18:43:31Z")

</div>

quick update finally got this working by simply making use of the import sketch function in processing. Seems obvious now, but I thought I could just type in `import ketai;` for it to work.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/8/8910e44401ea0a3f4ef69e4030e0100062c6c605.png)

Choosing this route processing will populate the sketch with all the requirements which in this case turned out to be

```auto
import ketai.camera.*;
import ketai.cv.facedetector.*;
import ketai.data.*;
import ketai.net.*;
import ketai.net.bluetooth.*;
import ketai.net.nfc.*;
import ketai.net.nfc.record.*;
import ketai.net.wifidirect.*;
import ketai.sensors.*;
import ketai.ui.*;

```

Having seen a lot of similar issues on the forum and stack overflow, with nothing that clearly identifies the problem I just thought I’d update my findings.

---

<div class="post-metadata">

### Author: ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)
#### Post date: [March 4, 2021, 5:43am UTC](https://discourse.processing.org/t/error-importing-ketai-library/27096/5 "2021-03-04T05:43:12Z")

</div>

this is android version

> **[Ketai.zip](https://drive.google.com/file/d/19GXV5Rn20IFKTAC3Fmdv8Zuw898jYFV3/view)**
>
> Google Drive file.
