# Processing.py

**URL:** https://discourse.processing.org/c/processing-py/9.md

[Latest](https://discourse.processing.org/latest.md) · [Categories](https://discourse.processing.org/categories.md) · [Tags](https://discourse.processing.org/tags.md)

---

## [About the Processing.py category](https://discourse.processing.org/t/about-the-processing-py-category/19)

<div class="topic-metadata">

**Author:** [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Replies:** 0

</div>

Python language Mode for Processing

---

## [4.5.6 Python Mode Error](https://discourse.processing.org/t/4-5-6-python-mode-error/49409)

<div class="topic-metadata">

**Author:** [@Kiyoshimon](https://discourse.processing.org/u/Kiyoshimon)\
**Replies:** 5\
**Last updated:** [September 22, 2026, 6:16pm UTC](https://discourse.processing.org/t/4-5-6-python-mode-error/49409 "2026-09-22T18:16:19Z")

</div>

Hi all, I’ve had issues using Python mode since the most recent update. Version 3 does not link to the server anymore to to fetch Python mode, and Version 4.5.6 yields this error upon swapping to Python Mode for 4 (imag…

---

## [Getting error in version 4](https://discourse.processing.org/t/getting-error-in-version-4/49150)

<div class="topic-metadata">

**Author:** [@givetosurfrider](https://discourse.processing.org/u/givetosurfrider)\
**Replies:** 8\
**Last updated:** [August 12, 2026, 11:36pm UTC](https://discourse.processing.org/t/getting-error-in-version-4/49150 "2026-08-12T23:36:01Z")

</div>

\<!- Getting this error message - any thoughts? Hmm. Can’t load native code to bring window to front using the absolute path: /Users/montyjones/Library/CloudStorage/GoogleDrive-joneswm2@vcu.edu/My Drive/Processing.py/mod…

---

## [Installing Python mode with no admin?](https://discourse.processing.org/t/installing-python-mode-with-no-admin/47137)

<div class="topic-metadata">

**Author:** [@amb](https://discourse.processing.org/u/amb)\
**Replies:** 2\
**Last updated:** [September 13, 2025, 3:24am UTC](https://discourse.processing.org/t/installing-python-mode-with-no-admin/47137 "2025-09-13T03:24:44Z")

</div>

Hi All: I installed Processing.org from a zip file (classroom computer, Windows 11 and I don’t have admin). Next installed Python mode. When I try to switch to Python mode in the IDE, I get this error message: “cannot…

---

## [Version of Python used in Python Mode](https://discourse.processing.org/t/version-of-python-used-in-python-mode/10254)

<div class="topic-metadata">

**Author:** [@lnp](https://discourse.processing.org/u/lnp)\
**Replies:** 13\
**Last updated:** [August 25, 2025, 4:07am UTC](https://discourse.processing.org/t/version-of-python-used-in-python-mode/10254 "2025-08-25T04:07:23Z")

</div>

Hello wonderful discussion board! Having a hellish time trying to install external modules and then importing in Processing Python mode. Running up against “ImportError: No Module named twitter found”. My system python…

---

## [Color to grayscale algorithm](https://discourse.processing.org/t/color-to-grayscale-algorithm/45171)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 16\
**Last updated:** [June 26, 2025, 7:01am UTC](https://discourse.processing.org/t/color-to-grayscale-algorithm/45171 "2025-06-26T07:01:46Z")

</div>

I want to convert RGB colour images to greyscale. I know a number of ways to do this in Processing, but the algorithms are under the bonnet. I want to do the conversion AND know what I am doing! After some research (Col…

---

## [Python mode tab loading issue](https://discourse.processing.org/t/python-mode-tab-loading-issue/46096)

<div class="topic-metadata">

**Author:** [@maumanto16](https://discourse.processing.org/u/maumanto16)\
**Replies:** 2\
**Last updated:** [March 28, 2025, 8:24pm UTC](https://discourse.processing.org/t/python-mode-tab-loading-issue/46096 "2025-03-28T20:24:49Z")

</div>

Hello. I have a very simple sketch with 2 tabs. When i try to load a function from the second tab into my main tab it gives me: NameError: global name ‘scene1’ is not defined I tried debugging by making the codes as …

---

## [Is Python mode's aplication export not working at all?](https://discourse.processing.org/t/is-python-modes-aplication-export-not-working-at-all/45950)

<div class="topic-metadata">

**Author:** [@LSharkey](https://discourse.processing.org/u/LSharkey)\
**Replies:** 2\
**Last updated:** [March 10, 2025, 7:11pm UTC](https://discourse.processing.org/t/is-python-modes-aplication-export-not-working-at-all/45950 "2025-03-10T19:11:36Z")

</div>

I’ve found some other forum posts (on github and StackOverflow) talking about an issue being resolved in Beta 7(although not sure what that means), but it seems to be referring to Java mode. Wondering if it is still poss…

---

## [Dpi and dimensions: print-ready images in processing.py](https://discourse.processing.org/t/dpi-and-dimensions-print-ready-images-in-processing-py/45468)

<div class="topic-metadata">

**Author:** [@LindowMan](https://discourse.processing.org/u/LindowMan)\
**Replies:** 4\
**Last updated:** [December 17, 2024, 9:56pm UTC](https://discourse.processing.org/t/dpi-and-dimensions-print-ready-images-in-processing-py/45468 "2024-12-17T21:56:51Z")

</div>

Hi everyone I want to print some things I have made in processing. For this, I need high dpi (It’s a lot of “line art” and fine details). It seems like the ideal image would be a lot larger than my screen could show in …

---

## [Chess engine recursive problems](https://discourse.processing.org/t/chess-engine-recursive-problems/24613)

<div class="topic-metadata">

**Author:** [@Grusat](https://discourse.processing.org/u/Grusat)\
**Replies:** 8\
**Last updated:** [December 8, 2024, 6:16pm UTC](https://discourse.processing.org/t/chess-engine-recursive-problems/24613 "2024-12-08T18:16:16Z")

</div>

I’m implementing a minimax algorithm with alphabeta pruning for a chess AI but i’m getting a maximum recursive depth reached error in some positions. I guess my recursive function minimax isn’t correct but i can’t find …

---

## [Processing with python 3](https://discourse.processing.org/t/processing-with-python-3/45378)

<div class="topic-metadata">

**Author:** [@blindschleiche](https://discourse.processing.org/u/blindschleiche)\
**Replies:** 2\
**Last updated:** [November 23, 2024, 9:22pm UTC](https://discourse.processing.org/t/processing-with-python-3/45378 "2024-11-23T21:22:47Z")

</div>

ist it possible to run processing 4 with python 3? when i check the version it workw with python 2.7.1. how can i change that? thanks for help

---

## [Rough time coming back to Processing](https://discourse.processing.org/t/rough-time-coming-back-to-processing/45375)

<div class="topic-metadata">

**Author:** [@slashwreck](https://discourse.processing.org/u/slashwreck)\
**Replies:** 6\
**Last updated:** [November 23, 2024, 12:36pm UTC](https://discourse.processing.org/t/rough-time-coming-back-to-processing/45375 "2024-11-23T12:36:01Z")

</div>

I haven’t messed around with Processing for a couple years. The installed version had been 3.5.4. I installed the new 4.3 and tried to run some of my old programs. Inscrutable failures. I threw away that cache/prefe…

---

## [Why I can not change element of list in for cycle?](https://discourse.processing.org/t/why-i-can-not-change-element-of-list-in-for-cycle/45239)

<div class="topic-metadata">

**Author:** [@Elena](https://discourse.processing.org/u/Elena)\
**Replies:** 3\
**Last updated:** [October 28, 2024, 2:30am UTC](https://discourse.processing.org/t/why-i-can-not-change-element-of-list-in-for-cycle/45239 "2024-10-28T02:30:19Z")

</div>

Why elements of List is not changing? Python. Yes, I know that I can use for m in range(0, len(circleList)) and change circleList\[m\], and it is working fine for numbers. I am tying to draw 2 moving cirles. If I use l…

---

## [Bit masking (or not)?](https://discourse.processing.org/t/bit-masking-or-not/45177)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 10\
**Last updated:** [October 27, 2024, 4:56pm UTC](https://discourse.processing.org/t/bit-masking-or-not/45177 "2024-10-27T16:56:33Z")

</div>

I often see it said that bit masking is faster \[1\] than other simpler Processing methods. I also read that bit masking is not faster \[2\], and it comes with disadvantages such as extra lines of code and less clarity. Is …

---

## [Mple division does not output a float number](https://discourse.processing.org/t/mple-division-does-not-output-a-float-number/45105)

<div class="topic-metadata">

**Author:** [@blindschleiche](https://discourse.processing.org/u/blindschleiche)\
**Replies:** 5\
**Last updated:** [September 30, 2024, 2:06pm UTC](https://discourse.processing.org/t/mple-division-does-not-output-a-float-number/45105 "2024-09-30T14:06:08Z")

</div>

i am testing python with processing. one of my first scripts was a simple division 13 divided by 2 which should give out the result 6.5 - but in the console there is 6 does anybody know why it seems to be impossible to …

---

## [In Processing Python canvas does not automatically close after run for the second time](https://discourse.processing.org/t/in-processing-python-canvas-does-not-automatically-close-after-run-for-the-second-time/45047)

<div class="topic-metadata">

**Author:** [@Elena](https://discourse.processing.org/u/Elena)\
**Replies:** 1\
**Last updated:** [September 15, 2024, 2:15am UTC](https://discourse.processing.org/t/in-processing-python-canvas-does-not-automatically-close-after-run-for-the-second-time/45047 "2024-09-15T02:15:56Z")

</div>

I am runnung code in Python Processing. Then I make changes. I am running again. The previous canva is still there. And I also can see the current canva. How can I get rid of old canva? If I run Java Processing. I s…

---

## [Can't run exe from exported Python sketch (Processing 3.5.4)](https://discourse.processing.org/t/cant-run-exe-from-exported-python-sketch-processing-3-5-4/44931)

<div class="topic-metadata">

**Author:** [@planT\_444](https://discourse.processing.org/u/planT_444)\
**Replies:** 3\
**Last updated:** [August 20, 2024, 7:53pm UTC](https://discourse.processing.org/t/cant-run-exe-from-exported-python-sketch-processing-3-5-4/44931 "2024-08-20T19:53:46Z")

</div>

Hello, I’m on Windows 10 (64-bit) and want to export a game I made using the Python mode for Processing last year to share it with others. I used Minim for sfx and music. I previously had different classes stored in dif…

---

## [How can I use debug with Processing Python?](https://discourse.processing.org/t/how-can-i-use-debug-with-processing-python/44868)

<div class="topic-metadata">

**Author:** [@Elena](https://discourse.processing.org/u/Elena)\
**Replies:** 1\
**Last updated:** [July 31, 2024, 1:18pm UTC](https://discourse.processing.org/t/how-can-i-use-debug-with-processing-python/44868 "2024-07-31T13:18:31Z")

</div>

Can I use debug with Processing Python? How can I use debug with Processing Python?

---

## [How to make executable from Processing Python project](https://discourse.processing.org/t/how-to-make-executable-from-processing-python-project/44820)

<div class="topic-metadata">

**Author:** [@Elena](https://discourse.processing.org/u/Elena)\
**Replies:** 1\
**Last updated:** [July 24, 2024, 11:23pm UTC](https://discourse.processing.org/t/how-to-make-executable-from-processing-python-project/44820 "2024-07-24T23:23:42Z")

</div>

How to make executable from Processing Python pgoject? File → Export application. I have error: Exception in thread “AWT-EventQueue-0” java.lang.NoSuchMethodError: ‘int processing.app.Platform.getNativeBits()’ Process…

---

## [Why there is a error in importing the video library](https://discourse.processing.org/t/why-there-is-a-error-in-importing-the-video-library/38815)

<div class="topic-metadata">

**Author:** [@huxx](https://discourse.processing.org/u/huxx)\
**Replies:** 3\
**Last updated:** [June 12, 2024, 10:45am UTC](https://discourse.processing.org/t/why-there-is-a-error-in-importing-the-video-library/38815 "2024-06-12T10:45:19Z")

</div>

Processing 3.5.4 Python Video3 sketch\_220915d.pyde:1: RuntimeWarning: PyTableCode.call caught a Throwable that is not an Exception: java.lang.UnsatisfiedLinkError: C:\\Users\\17164\\Documents\\Processing\\libraries\\video…

---

## [Solar system animation issue](https://discourse.processing.org/t/solar-system-animation-issue/44308)

<div class="topic-metadata">

**Author:** [@Ray0204](https://discourse.processing.org/u/Ray0204)\
**Replies:** 5\
**Last updated:** [April 19, 2024, 6:39am UTC](https://discourse.processing.org/t/solar-system-animation-issue/44308 "2024-04-19T06:39:34Z")

</div>

Hi, everyone, I encountered an issue while creating a solar system animation in Python mode. When running the program, instead of the new planets orbiting the sun, they rapidly flicker and then disappear. Upon single-fra…

---

## [Help on creating very simple game in Python mode](https://discourse.processing.org/t/help-on-creating-very-simple-game-in-python-mode/44279)

<div class="topic-metadata">

**Author:** [@givetosurfrider](https://discourse.processing.org/u/givetosurfrider)\
**Replies:** 2\
**Last updated:** [April 17, 2024, 6:00pm UTC](https://discourse.processing.org/t/help-on-creating-very-simple-game-in-python-mode/44279 "2024-04-17T18:00:21Z")

</div>

I am trying to create the simplest game in python mode for my class. I have created a very very simple “whack-a-mole” type game. It generally works except when i click outside of the circle, the score updates, but just w…

---

## [Problem installing Python mode](https://discourse.processing.org/t/problem-installing-python-mode/44201)

<div class="topic-metadata">

**Author:** [@the.salmone](https://discourse.processing.org/u/the.salmone)\
**Replies:** 8\
**Last updated:** [April 5, 2024, 2:21pm UTC](https://discourse.processing.org/t/problem-installing-python-mode/44201 "2024-04-05T14:21:33Z")

</div>

Hi everyone, I tried installing Python mode via the mod manager in Processing last release but i get “Error during download and installation of Python mode for Processing 4”. It’s already an acknowledged problem or I’m …

---

## [A beautiful spin](https://discourse.processing.org/t/a-beautiful-spin/44212)

<div class="topic-metadata">

**Author:** [@aliec](https://discourse.processing.org/u/aliec)\
**Replies:** 1\
**Last updated:** [April 2, 2024, 1:37pm UTC](https://discourse.processing.org/t/a-beautiful-spin/44212 "2024-04-02T13:37:24Z")

</div>

def setup(): size(600,600) rectMode(CENTER) colorMode(HSB) t=0 def draw(): global t background(255) translate(width/2,height/2) rotate(radians(t)) for i in range(90): pushMatrix…

---

## [HELP！missing .py examples from Chapter 6 of “Nature of Code.”](https://discourse.processing.org/t/help-missing-py-examples-from-chapter-6-of-nature-of-code/44074)

<div class="topic-metadata">

**Author:** [@Ray0204](https://discourse.processing.org/u/Ray0204)\
**Replies:** 7\
**Last updated:** [March 22, 2024, 12:33am UTC](https://discourse.processing.org/t/help-missing-py-examples-from-chapter-6-of-nature-of-code/44074 "2024-03-22T00:33:38Z")

</div>

Hello everyone, I’m a beginner in processing.py, and I’m currently learning processing by converting the content of “Nature of Code” into Python syntax. I usually refer to this link for my studies: noc-examples-python/ch…

---

## [Is a fresh install of Processing 3.5.4 and Python mode possible? (Mac OS)](https://discourse.processing.org/t/is-a-fresh-install-of-processing-3-5-4-and-python-mode-possible-mac-os/44104)

<div class="topic-metadata">

**Author:** [@SLG](https://discourse.processing.org/u/SLG)\
**Replies:** 2\
**Last updated:** [March 16, 2024, 3:33am UTC](https://discourse.processing.org/t/is-a-fresh-install-of-processing-3-5-4-and-python-mode-possible-mac-os/44104 "2024-03-16T03:33:39Z")

</div>

I have been using Mac OS Processing Python mode in my computer science classes for many years now. Due to the almost non-existent error checking and various other issues with Processing 4 Python mode, I would really lik…

---

## [Problems with Python mode in Processing 4.3 on M1 Mac running OSX 12.7.1](https://discourse.processing.org/t/problems-with-python-mode-in-processing-4-3-on-m1-mac-running-osx-12-7-1/44102)

<div class="topic-metadata">

**Author:** [@jrsjrs](https://discourse.processing.org/u/jrsjrs)\
**Replies:** 3\
**Last updated:** [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 "2024-03-16T03:12:50Z")

</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 br…

---

## [Python Graphics Demos Not Loading](https://discourse.processing.org/t/python-graphics-demos-not-loading/43975)

<div class="topic-metadata">

**Author:** [@asterobiology](https://discourse.processing.org/u/asterobiology)\
**Replies:** 3\
**Last updated:** [February 23, 2024, 11:49am UTC](https://discourse.processing.org/t/python-graphics-demos-not-loading/43975 "2024-02-23T11:49:36Z")

</div>

I just downloaded Processing 4.3 and installed Python Mode for Processing 4 from the Contribution Manager. However, when I open up the graphics demos, such as Tentacles, and try to press Run, the demo will not load. The …

---

## [ASCII special characters \[Solved\]](https://discourse.processing.org/t/ascii-special-characters-solved/43887)

<div class="topic-metadata">

**Author:** [@salvalnx](https://discourse.processing.org/u/salvalnx)\
**Replies:** 3\
**Last updated:** [February 12, 2024, 8:54am UTC](https://discourse.processing.org/t/ascii-special-characters-solved/43887 "2024-02-12T08:54:56Z")

</div>

Hello everyone I’m trying to make a graph in which I want to include text. I want that text to have the character PI (π) and some of a plot like these: ▒ The problem is that when I run it it does not recognize those ch…

---

## [Program stopping after executing certain lines when handling key presses](https://discourse.processing.org/t/program-stopping-after-executing-certain-lines-when-handling-key-presses/43838)

<div class="topic-metadata">

**Author:** [@Eb3yr](https://discourse.processing.org/u/Eb3yr)\
**Replies:** 1\
**Last updated:** [February 6, 2024, 2:06am UTC](https://discourse.processing.org/t/program-stopping-after-executing-certain-lines-when-handling-key-presses/43838 "2024-02-06T02:06:44Z")

</div>

I’m having a problem where the program stops executing whenever I run certain lines of code when handling key presses and mouse clicks. I’m trying to accept certain inputs to create an object of certain mass, radius and …

[Next page](https://discourse.processing.org/c/processing-py/9.md?page=1)
