# \[SOLVED\] Py mode not working

**URL:** <https://discourse.processing.org/t/solved-py-mode-not-working/7483>\
**Category:** Processing.py\
**Created:** [January 13, 2019, 9:54pm UTC](https://discourse.processing.org/t/solved-py-mode-not-working/7483 "2019-01-13T21:54:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sky](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sky/32/3013_2.png) [@Sky](https://discourse.processing.org/u/Sky)\
**Post date:** [January 13, 2019, 9:54pm UTC](https://discourse.processing.org/t/solved-py-mode-not-working/7483/1 "2019-01-13T21:54:18Z")

</div>

SOLUTION:

> [@No display on Windows, many student problems, any thoughts?](https://discourse.processing.org/t/no-display-on-windows-many-student-problems-any-thoughts/7529/6):
>
> I’ve uploaded build 3049’s “PythonMode.jar” file to this repo below: link[GitHub.com/GoToLoop/Processing\_Jar\_Creation/blob/master/Py%20Mode%20build%203049/PythonMode.jar](http://GitHub.com/GoToLoop/Processing_Jar_Creation/blob/master/Py%20Mode%20build%203049/PythonMode.jar) In my tests, by just replacing build 3050’s “PythonMode.jar” file w/ build 3049’s was enough to make it work. money_mouth_face

```auto
def setup():
    size(500,500)

def draw():
    rect(100,100,100)

```

Today I bought a notebook, where I installed Processing,  
Java projects work fine, but for python I run the code and it immediately stops

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [January 13, 2019, 10:00pm UTC](https://discourse.processing.org/t/solved-py-mode-not-working/7483/2 "2019-01-13T22:00:58Z")

</div>

Have you granted authorization for the Py Mode to access your LAN when the firewall window popped up? That’s all I can think about for now. 🙄

---

<div class="post-metadata">

**Author:** ![Sky](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sky/32/3013_2.png) [@Sky](https://discourse.processing.org/u/Sky)\
**Post date:** [January 13, 2019, 10:05pm UTC](https://discourse.processing.org/t/solved-py-mode-not-working/7483/3 "2019-01-13T22:05:35Z")

</div>

Yes, Im 100% sure I did it

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [January 13, 2019, 10:20pm UTC](https://discourse.processing.org/t/solved-py-mode-not-working/7483/4 "2019-01-13T22:20:44Z")

</div>

Just a detail: your `rect(100,100,100)` statement is missing the 4th argument (`height`). 😳

```auto
def setup():
    size(500, 500)

def draw():
    rect(100, 100, 100, 100)

```

Have you already explored the Python sketch examples to check if they work? Hit CTRL+SHIFT+O for it. 🐍

---

<div class="post-metadata">

**Author:** ![Sky](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sky/32/3013_2.png) [@Sky](https://discourse.processing.org/u/Sky)\
**Post date:** [January 14, 2019, 12:42pm UTC](https://discourse.processing.org/t/solved-py-mode-not-working/7483/5 "2019-01-14T12:42:02Z")

</div>

(I wish it was just the 4th statement the problem)  
Nope, examples dont run

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [January 15, 2019, 3:47am UTC](https://discourse.processing.org/t/solved-py-mode-not-working/7483/6 "2019-01-15T03:47:48Z")

</div>

> [@No display on Windows, many student problems, any thoughts?](https://discourse.processing.org/t/no-display-on-windows-many-student-problems-any-thoughts/7529):
>
> Dear all, I just deployed Processing to a class of 48 students. I have a lot of students with issues where their sketches will apparently run, but no drawing will appear. I have not yet had a chance to see this happen; we had zero problems in-class on Thursday, but a number of problems manifested over the weekend. We are attempting to use Py.Processing. Perhaps it is not ready for prime-time? Either way, I know students have problems on Windows 10/64-bit, but I couldn’t possibly go further in…

---

<div class="post-metadata">

**Author:** ![AndyJudkis](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@AndyJudkis](https://discourse.processing.org/u/AndyJudkis)\
**Post date:** [January 15, 2019, 4:40pm UTC](https://discourse.processing.org/t/solved-py-mode-not-working/7483/7 "2019-01-15T16:40:26Z")

</div>

I have been using Processing 3.3 with Processing.py in my classroom for quite a while with no problems. A student just brought in her MacBook Air, onto which she loaded Processing 3.4. We’re seeing the same Python mode behavior as mentioned above - when the program runs there’s no error message, no window display, nothing. The console area scrolls a little but nothing is displayed in it. Java mode seems to work. I see that the title of this message is marked SOLVED but I don’t see any solution posted.  
Thanks,  
Andy

---

<div class="post-metadata">

**Author:** ![Sky](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sky/32/3013_2.png) [@Sky](https://discourse.processing.org/u/Sky)\
**Post date:** [January 15, 2019, 4:42pm UTC](https://discourse.processing.org/t/solved-py-mode-not-working/7483/8 "2019-01-15T16:42:53Z")

</div>

The solution is inside [here](https://discourse.processing.org/t/no-display-on-windows-many-student-problems-any-thoughts/7529/6)

> [@No display on Windows, many student problems, any thoughts?](https://discourse.processing.org/t/no-display-on-windows-many-student-problems-any-thoughts/7529):
>
> Dear all, I just deployed Processing to a class of 48 students. I have a lot of students with issues where their sketches will apparently run, but no drawing will appear. I have not yet had a chance to see this happen; we had zero problems in-class on Thursday, but a number of problems manifested over the weekend. We are attempting to use Py.Processing. Perhaps it is not ready for prime-time? Either way, I know students have problems on Windows 10/64-bit, but I couldn’t possibly go further in…

---

<div class="post-metadata">

**Author:** ![qfxfox](https://avatars.discourse-cdn.com/v4/letter/q/977dab/32.png) [@qfxfox](https://discourse.processing.org/u/qfxfox)\
**Post date:** [December 6, 2021, 6:19am UTC](https://discourse.processing.org/t/solved-py-mode-not-working/7483/9 "2021-12-06T06:19:18Z")

</div>

worked for me.  
install the Oracle JDK 1.8\* ,and set the bin path to the environment path.

---

<div class="post-metadata">

**Author:** ![lei10003](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@lei10003](https://discourse.processing.org/u/lei10003)\
**Post date:** [March 3, 2022, 1:48pm UTC](https://discourse.processing.org/t/solved-py-mode-not-working/7483/10 "2022-03-03T13:48:57Z")

</div>

I tried the downloaded connected to this solution but was met with a Mac error. Has anyone else experienced the same?
