# Problems with Python mode in Processing 4.3 on M1 Mac running OSX 12.7.1

**URL:** https://discourse.processing.org/t/problems-with-python-mode-in-processing-4-3-on-m1-mac-running-osx-12-7-1/44102
**Category:** Processing.py
**Created:** [March 16, 2024, 12:00am UTC](https://discourse.processing.org/t/problems-with-python-mode-in-processing-4-3-on-m1-mac-running-osx-12-7-1/44102 "2024-03-16T00:00:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jrsjrs](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jrsjrs](https://discourse.processing.org/u/jrsjrs)
#### Post date: [March 16, 2024, 12:00am UTC](https://discourse.processing.org/t/problems-with-python-mode-in-processing-4-3-on-m1-mac-running-osx-12-7-1/44102/1 "2024-03-16T00:00:14Z")

</div>

I am trying to use Python mode in Processing 4.3 on M1 Mac running OSX 12.7.1.  
At a certain point in my program I am getting these two errors (below). Any suggestions welcome.

Errors:  
Hmm. Can’t load native code to bring window to front using the absolute path: /Users/jrs/Documents/Processing/modes/PythonMode/mode/libjniosx.dylib.  
Hmm. Can’t load native code to bring window to front.

---

<div class="post-metadata">

### Author: ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)
#### Post date: [March 16, 2024, 12:12am UTC](https://discourse.processing.org/t/problems-with-python-mode-in-processing-4-3-on-m1-mac-running-osx-12-7-1/44102/2 "2024-03-16T00:12:00Z")

</div>

Try using Processing version 3.5.4.

---

<div class="post-metadata">

### Author: ![jrsjrs](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jrsjrs](https://discourse.processing.org/u/jrsjrs)
#### Post date: [March 16, 2024, 1:50am UTC](https://discourse.processing.org/t/problems-with-python-mode-in-processing-4-3-on-m1-mac-running-osx-12-7-1/44102/3 "2024-03-16T01:50:39Z")

</div>

Thanks for the suggestion. I just tried that and unfortunately 3.5.4 does not work at all. The editor starts up, but when I click run (on a simple example like Mouse2D) nothing happens…no error message, no execution window, etc. Again this is an M1 Mac running MacOS Monterey 12.7.1…

---

<div class="post-metadata">

### Author: ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)
#### Post date: [March 16, 2024, 3:12am UTC](https://discourse.processing.org/t/problems-with-python-mode-in-processing-4-3-on-m1-mac-running-osx-12-7-1/44102/4 "2024-03-16T03:12:50Z")

</div>

I just tried some Processing Python example code on a Mac M2 and had trouble also. The files in ‘Examples/Python Mode Differences’ would run but none of the others that I tested. If you know how to use pure Python the Thonny editor might be a better choice.

See other current thread: [https://discourse.processing.org/t/is-a-fresh-install-of-processing-3-5-4-and-python-mode-possible-mac-os/44104/2](https://discourse.processing.org/t/is-a-fresh-install-of-processing-3-5-4-and-python-mode-possible-mac-os/44104/2)

**Addendum:**  
I tried writing a simple demo with my M2 using a fresh download of version 3.5.4 from the website [Processing.org](http://Processing.org) and it ran ok. The code that I tested follows:

```auto
def setup():
    size(400,400)
    
def draw():
    fill(255,0,0)
    circle(width/2,height/2,100)            

```
