# Processing 3.5.4 not working with python mode

**URL:** <https://discourse.processing.org/t/processing-3-5-4-not-working-with-python-mode/25650>\
**Category:** Processing.py\
**Created:** [November 24, 2020, 1:10am UTC](https://discourse.processing.org/t/processing-3-5-4-not-working-with-python-mode/25650 "2020-11-24T01:10:13Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![wunaizcy](https://avatars.discourse-cdn.com/v4/letter/w/57b2e6/32.png) [@wunaizcy](https://discourse.processing.org/u/wunaizcy)\
**Post date:** [November 24, 2020, 1:10am UTC](https://discourse.processing.org/t/processing-3-5-4-not-working-with-python-mode/25650/1 "2020-11-24T01:10:13Z")

</div>

Hello,  
So after I googled online for a while I still can’t find the solution.  
I tried mostly everything I can find on the web. Reinstalling, firewall etc.  
My java mode works fine, just python mode is not.

---

<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:** [November 24, 2020, 1:31am UTC](https://discourse.processing.org/t/processing-3-5-4-not-working-with-python-mode/25650/2 "2020-11-24T01:31:43Z")

</div>

Welcome @wunaizcy

I have a few questions:

1. What OS are you using?
2. Can you switch to Python Mode (using that mode button at the top-right of the editor)? Did you manage to install Python Mode from the Contribution Manager window?
3. Are there any errors in the Console (black area at the bottom of the editor) when you try and run a Python sketch?
4. Would you happen to be using some networked account on a Windows machine?

---

<div class="post-metadata">

**Author:** ![wunaizcy](https://avatars.discourse-cdn.com/v4/letter/w/57b2e6/32.png) [@wunaizcy](https://discourse.processing.org/u/wunaizcy)\
**Post date:** [November 24, 2020, 2:37am UTC](https://discourse.processing.org/t/processing-3-5-4-not-working-with-python-mode/25650/3 "2020-11-24T02:37:26Z")

</div>

Hi,  
1.I am using windows 10.  
2. Yes I am able to switch mode and able to click run, the run icon will turn green but nothing pops.  
I installed from the add mode in processing.  
3.First there is nothing in the console then if I tried to run another sketch this will show:  
removing C:\Users\smith\OneDrive\Desktop\cs5001\hw10\pacman\_game\_starter\pacman\_game\_starter.pyde  
java.lang.Exception  
at processing.app.ui.Recent.remove(Recent.java:246)  
at processing.app.ui.Recent.append(Recent.java:294)  
at processing.app.Base.handleOpen(Base.java:1337)  
at processing.app.Base.handleOpen(Base.java:1314)  
at processing.app.Base.handleOpen(Base.java:1303)  
at processing.app.ui.Recent$1.actionPerformed(Recent.java:217)  
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)  
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)  
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)  
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)  
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)  
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:842)  
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:886)  
at java.awt.Component.processMouseEvent(Component.java:6539)  
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)  
at java.awt.Component.processEvent(Component.java:6304)  
at java.awt.Container.processEvent(Container.java:2239)  
at java.awt.Component.dispatchEventImpl(Component.java:4889)  
at java.awt.Container.dispatchEventImpl(Container.java:2297)  
at java.awt.Component.dispatchEvent(Component.java:4711)  
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)  
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)  
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)  
at java.awt.Container.dispatchEventImpl(Container.java:2283)  
at java.awt.Window.dispatchEventImpl(Window.java:2746)  
at java.awt.Component.dispatchEvent(Component.java:4711)  
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)  
at java.awt.EventQueue.access$500(EventQueue.java:97)  
at java.awt.EventQueue$3.run(EventQueue.java:709)  
at java.awt.EventQueue$3.run(EventQueue.java:703)  
at java.security.AccessController.doPrivileged(Native Method)  
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)  
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)  
at java.awt.EventQueue$4.run(EventQueue.java:733)  
at java.awt.EventQueue$4.run(EventQueue.java:731)  
at java.security.AccessController.doPrivileged(Native Method)  
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)  
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)  
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)  
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)  
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)  
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)  
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)  
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)  
4. I don’t think so or I don’t know this is my pc and I’m the only user.

---

<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:** [November 24, 2020, 2:59am UTC](https://discourse.processing.org/t/processing-3-5-4-not-working-with-python-mode/25650/4 "2020-11-24T02:59:39Z")

</div>

I’m afraid I haven’t encountered this issue before. I don’t have any problems running Python Mode on my Windows machine (same Processing and OS as far as I can tell). I have Processing running from a folder on my desktop; I don’t use OneDrive.

Maybe it’s your code? Have you tried creating a very simple sketch – like, a one-liner with just `square(10, 10, 10)`. See if that runs or if you get the same error.

Maybe somebody else on the forum could help …

---

<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:** [November 24, 2020, 3:04am UTC](https://discourse.processing.org/t/processing-3-5-4-not-working-with-python-mode/25650/5 "2020-11-24T03:04:16Z")

</div>

> [@wunaizcy](#):
>
> C:\Users\smith\OneDrive\Desktop\cs5001\hw10\pacman\_game\_starter\pacman\_game\_starter.pyde

Don’t use remotely synchronized folders to store Processing sketches! 😨

---

<div class="post-metadata">

**Author:** ![wunaizcy](https://avatars.discourse-cdn.com/v4/letter/w/57b2e6/32.png) [@wunaizcy](https://discourse.processing.org/u/wunaizcy)\
**Post date:** [November 24, 2020, 3:57am UTC](https://discourse.processing.org/t/processing-3-5-4-not-working-with-python-mode/25650/6 "2020-11-24T03:57:13Z")

</div>

My code works because I got it tested out on my friend’s computer.  
Thank you for your information. 🙂

---

<div class="post-metadata">

**Author:** ![wunaizcy](https://avatars.discourse-cdn.com/v4/letter/w/57b2e6/32.png) [@wunaizcy](https://discourse.processing.org/u/wunaizcy)\
**Post date:** [November 24, 2020, 3:58am UTC](https://discourse.processing.org/t/processing-3-5-4-not-working-with-python-mode/25650/7 "2020-11-24T03:58:14Z")

</div>

I think its just my desktop is under onedrive, but I’m not using it remotely. Can you explain it more?  
Very apprcreciate.

---

<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:** [November 24, 2020, 4:04am UTC](https://discourse.processing.org/t/processing-3-5-4-not-working-with-python-mode/25650/8 "2020-11-24T04:04:52Z")

</div>

Maybe create a new directory ‘above’ the _OneDrive_ one, like `C:\Users\smith\processing`. You can store your Processing files in there so they aren’t synchronized.

You might even use a Git repository so those files are version-controlled (and duplicated in the cloud).

---

<div class="post-metadata">

**Author:** ![wunaizcy](https://avatars.discourse-cdn.com/v4/letter/w/57b2e6/32.png) [@wunaizcy](https://discourse.processing.org/u/wunaizcy)\
**Post date:** [November 24, 2020, 4:28am UTC](https://discourse.processing.org/t/processing-3-5-4-not-working-with-python-mode/25650/9 "2020-11-24T04:28:14Z")

</div>

This is where my processing is at C:\Users\smith\Documents\processing-3.5.4  
and this is where the sktech i want to run is at C:\Users\smith\hw10\pacman\_game\_starter  
Unfortunaly this doesn’t solve the issue.

---

<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:** [November 24, 2020, 4:34am UTC](https://discourse.processing.org/t/processing-3-5-4-not-working-with-python-mode/25650/10 "2020-11-24T04:34:58Z")

</div>

Hmm. In the Processing editor, select **File \> Preferences**. Check that the _Sketchbook location_ isn’t in the `OneDrive` directory. Restart Processing if you change anything.

---

<div class="post-metadata">

**Author:** ![villares](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/villares/32/3166_2.png) [@villares](https://discourse.processing.org/u/villares)\
**Post date:** [November 26, 2020, 3:40pm UTC](https://discourse.processing.org/t/processing-3-5-4-not-working-with-python-mode/25650/11 "2020-11-26T15:40:27Z")

</div>

@tabreturn has a broguht a good point! Checking at the preferences were your _sketchbook_ a.k.a “Documents/Processing/” is stored, because the libraries and Python Mode files are kept there. It could be an issue, I suppose.

---

<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:17am UTC](https://discourse.processing.org/t/processing-3-5-4-not-working-with-python-mode/25650/12 "2021-12-06T06:17:56Z")

</div>

install Oracle JDK1.8\* and add the bin path to the system environment.

---

<div class="post-metadata">

**Author:** ![villares](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/villares/32/3166_2.png) [@villares](https://discourse.processing.org/u/villares)\
**Post date:** [December 12, 2021, 12:50am UTC](https://discourse.processing.org/t/processing-3-5-4-not-working-with-python-mode/25650/13 "2021-12-12T00:50:58Z")

</div>

Welcome @qfxfox! I’m afraid this might not be a good idea. The Processing IDE always uses its own Java runtime, not the one from the system, so we never recommend installing another JDK just to try to solve Processing IDE issues.

[EDITED: Changed reply to clarify it is OK to install other Java runtimes. Processing IDE just won’t notice them]

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [December 12, 2021, 10:05am UTC](https://discourse.processing.org/t/processing-3-5-4-not-working-with-python-mode/25650/14 "2021-12-12T10:05:14Z")

</div>

@villares Doesn’t seem to be a problem on linux (and I can’t imagine its any difference on Windows.  
See result from terminal (ie installed java) compared with processing-3.5.4.

 ![python](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/f/fa6eaa155dfc937fc5a011af7f758dbda433db6d.jpeg)

---

<div class="post-metadata">

**Author:** ![villares](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/villares/32/3166_2.png) [@villares](https://discourse.processing.org/u/villares)\
**Post date:** [December 12, 2021, 8:04pm UTC](https://discourse.processing.org/t/processing-3-5-4-not-working-with-python-mode/25650/15 "2021-12-12T20:04:23Z")

</div>

Cheers @monkstone!  
I guess my message sounded ambiguous! Sure, there is no harm in installing Open JDK.  
I just wanted to say that I think it is not a good idea to suggest installing any other Java in order to solve Processing IDE issues, like the one being discussed on this thread, as Processing won’t even “see” it.
