# Maybe there's an unclosed paren or quote mark somewhere before this line?

**URL:** <https://discourse.processing.org/t/maybe-theres-an-unclosed-paren-or-quote-mark-somewhere-before-this-line/37172>\
**Category:** Processing.py\
**Created:** [May 28, 2022, 3:40pm UTC](https://discourse.processing.org/t/maybe-theres-an-unclosed-paren-or-quote-mark-somewhere-before-this-line/37172 "2022-05-28T15:40:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sourabh1801](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Sourabh1801](https://discourse.processing.org/u/Sourabh1801)\
**Post date:** [May 28, 2022, 3:40pm UTC](https://discourse.processing.org/t/maybe-theres-an-unclosed-paren-or-quote-mark-somewhere-before-this-line/37172/1 "2022-05-28T15:40:00Z")

</div>

Problem:  
I am using below code in python processing ,but it giving me this error  
“Maybe there’s an unclosed paren or quote mark somewhere before this line?”  
please tell why this error come in this.  
code:

add\_library(‘openkinect\_processing’)

Kinect2 kinect2  
def setup():  
size(512, 424)  
kinect2 = new Kinect2(this)  
kinect2.initDepth()  
kinect2.initDevice()

def draw():

background(0)

---

<div class="post-metadata">

**Author:** ![tabreturn](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tabreturn/32/3697_2.png) [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Post date:** [May 28, 2022, 9:55pm UTC](https://discourse.processing.org/t/maybe-theres-an-unclosed-paren-or-quote-mark-somewhere-before-this-line/37172/2 "2022-05-28T21:55:09Z")

</div>

Welcome @Sourabh1801

Please use the pre-formatted button ( **\</\>** ) for any code that you share on the forum; this will wrap it in triple-backticks (```) so it’s properly formatted.

I don’t have openkinect\_processing installed on my system, and I couldn’t test this. Your code appears translated from Java to Python, and there are some lingering Java elements. Try something like this instead –

```python
add_library('openkinect_processing')

def setup():
    global kinect2
    size(512, 424)
    kinect2 = Kinect2(this)
    kinect2.initDepth()
    kinect2.initDevice()

def draw():
    background(0)

```
