# Processing.py

**URL:** https://discourse.processing.org/c/processing-py/9.md?page=11

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

**Page:** 12

---

## ["Present Mode" not removing menu bar?](https://discourse.processing.org/t/present-mode-not-removing-menu-bar/16111)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 3\
**Last updated:** [December 22, 2019, 5:08pm UTC](https://discourse.processing.org/t/present-mode-not-removing-menu-bar/16111 "2019-12-22T17:08:18Z")

</div>

Using fullScreen() or using the Present feature does not remove the Mac OS menu bar for me on Mac OS 10.11.6 El Capitan. Also, has anyone else noticed if sketch \> Present (command+shift+R) is behaving differently on Pyt…

---

## [(OS X) Exported sketch looks for data folder in the wrong place](https://discourse.processing.org/t/os-x-exported-sketch-looks-for-data-folder-in-the-wrong-place/16499)

<div class="topic-metadata">

**Author:** [@pip](https://discourse.processing.org/u/pip)\
**Replies:** 4\
**Last updated:** [December 22, 2019, 4:40pm UTC](https://discourse.processing.org/t/os-x-exported-sketch-looks-for-data-folder-in-the-wrong-place/16499 "2019-12-22T16:40:52Z")

</div>

After exporting a python sketch, which needed a .png image file, the .app wouldn’t run. After doing some testing, I realized the bug was that the sketch was looking for the .png file in “/Users/ME/”, instead of “/Users/…

---

## [Sketch running with no error but display window is blank, no output](https://discourse.processing.org/t/sketch-running-with-no-error-but-display-window-is-blank-no-output/16488)

<div class="topic-metadata">

**Author:** [@geom](https://discourse.processing.org/u/geom)\
**Replies:** 2\
**Last updated:** [December 18, 2019, 6:53am UTC](https://discourse.processing.org/t/sketch-running-with-no-error-but-display-window-is-blank-no-output/16488 "2019-12-18T06:53:38Z")

</div>

Hi everyone, I tried to run these codes from this topic- Sketches are running both for py and java with no error as well display window show-up but with no result or graphics or output. I turned off internet connect…

---

## [Writing a python script that runs a processing program](https://discourse.processing.org/t/writing-a-python-script-that-runs-a-processing-program/16456)

<div class="topic-metadata">

**Author:** [@hinomupi](https://discourse.processing.org/u/hinomupi)\
**Replies:** 3\
**Last updated:** [December 17, 2019, 8:54pm UTC](https://discourse.processing.org/t/writing-a-python-script-that-runs-a-processing-program/16456 "2019-12-17T20:54:12Z")

</div>

I am trying to create a twitter bot that posts randomized content, similar to OreoBot, that uses processing. I have the processing script (made with python mode) that creates the image and I know how to post the image, n…

---

## [Error using a normal python code in python mode](https://discourse.processing.org/t/error-using-a-normal-python-code-in-python-mode/16389)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 2\
**Last updated:** [December 14, 2019, 5:06pm UTC](https://discourse.processing.org/t/error-using-a-normal-python-code-in-python-mode/16389 "2019-12-14T17:06:58Z")

</div>

Hi I’ve written a Code to recognize a number. It works fine for a other editor but in python mode I get the error “Maybe there’s an unclosed paren or quote mark somewhere before this line?” Here is my code so far: imp…

---

## [Running Python Code in a Browser](https://discourse.processing.org/t/running-python-code-in-a-browser/236)

<div class="topic-metadata">

**Author:** [@CrispyCabot](https://discourse.processing.org/u/CrispyCabot)\
**Replies:** 8\
**Last updated:** [December 13, 2019, 4:27am UTC](https://discourse.processing.org/t/running-python-code-in-a-browser/236 "2019-12-13T04:27:37Z")

</div>

So it’s basically all in the title. Does processing.js work with python, is there some other way to do this, etc. Anything helps.

---

## [Use a list to updatePixels()](https://discourse.processing.org/t/use-a-list-to-updatepixels/16268)

<div class="topic-metadata">

**Author:** [@WhatItDo](https://discourse.processing.org/u/WhatItDo)\
**Replies:** 10\
**Last updated:** [December 9, 2019, 9:22pm UTC](https://discourse.processing.org/t/use-a-list-to-updatepixels/16268 "2019-12-09T21:22:45Z")

</div>

Hallo everyone, I have a List of RGB values (technically all grey, in the form of (255, 255, 255), (204, 204, 204), (255, 255, 255) etc.) that I would like to display as an image. From my understanding, the updatePixels…

---

## [I encountered a problem in Fisica's FPrismaticJoint setting](https://discourse.processing.org/t/i-encountered-a-problem-in-fisicas-fprismaticjoint-setting/15732)

<div class="topic-metadata">

**Author:** [@Shitou](https://discourse.processing.org/u/Shitou)\
**Replies:** 2\
**Last updated:** [December 9, 2019, 1:27am UTC](https://discourse.processing.org/t/i-encountered-a-problem-in-fisicas-fprismaticjoint-setting/15732 "2019-12-09T01:27:20Z")

</div>

I want to use the FPrismaticJoint in my python mode processing sketch, but when i use setAxis() of the Joint, it never works. I want the Joint to move horizontally。 add\_library('fisica') from my\_func import \* def set…

---

## [Create a text input when mouse clicked](https://discourse.processing.org/t/create-a-text-input-when-mouse-clicked/16167)

<div class="topic-metadata">

**Author:** [@saltsnuf](https://discourse.processing.org/u/saltsnuf)\
**Replies:** 3\
**Last updated:** [December 5, 2019, 10:10pm UTC](https://discourse.processing.org/t/create-a-text-input-when-mouse-clicked/16167 "2019-12-05T22:10:59Z")

</div>

im trying to make a visual program of sticky notes and im wondering how i get a yellow box to appear where a user can enter in text.

---

## [Help with code in python](https://discourse.processing.org/t/help-with-code-in-python/16128)

<div class="topic-metadata">

**Author:** [@mattharmel](https://discourse.processing.org/u/mattharmel)\
**Replies:** 1\
**Last updated:** [December 5, 2019, 9:54pm UTC](https://discourse.processing.org/t/help-with-code-in-python/16128 "2019-12-05T21:54:26Z")

</div>

Hello! I’m in need of help to figure out how to display the code to the interior angle sum of a polygon. if Someone could help me get started that would be amazing!

---

## [Exported application crashes -- illegal reflective access operation error](https://discourse.processing.org/t/exported-application-crashes-illegal-reflective-access-operation-error/16029)

<div class="topic-metadata">

**Author:** [@sargent](https://discourse.processing.org/u/sargent)\
**Replies:** 1\
**Last updated:** [December 2, 2019, 3:18am UTC](https://discourse.processing.org/t/exported-application-crashes-illegal-reflective-access-operation-error/16029 "2019-12-02T03:18:04Z")

</div>

I have a processing.py sketch that runs fine in the IDE but when I export it (I’m running a mac), I get the following error: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective acces…

---

## [How do i make a username input interface (python)?](https://discourse.processing.org/t/how-do-i-make-a-username-input-interface-python/15832)

<div class="topic-metadata">

**Author:** [@esaem](https://discourse.processing.org/u/esaem)\
**Replies:** 4\
**Last updated:** [November 26, 2019, 7:52pm UTC](https://discourse.processing.org/t/how-do-i-make-a-username-input-interface-python/15832 "2019-11-26T19:52:09Z")

</div>

So i’m making a game in python processing and i need to have people input their names so it get’s attached to player 1 or player 2 etc…

---

## [Font error once python sketch is exported (Mac)](https://discourse.processing.org/t/font-error-once-python-sketch-is-exported-mac/16005)

<div class="topic-metadata">

**Author:** [@pip](https://discourse.processing.org/u/pip)\
**Replies:** 2\
**Last updated:** [December 1, 2019, 12:33am UTC](https://discourse.processing.org/t/font-error-once-python-sketch-is-exported-mac/16005 "2019-12-01T00:33:49Z")

</div>

As the title implies, this problem did not occur before the sketch was exported. The specific error is: java.lang.RuntimeException: Could not load font typewrite.vlw. Make sure that the font has been copied to the dat…

---

## [Python libraries in Processing Python mode?](https://discourse.processing.org/t/python-libraries-in-processing-python-mode/15842)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 2\
**Last updated:** [November 26, 2019, 7:46pm UTC](https://discourse.processing.org/t/python-libraries-in-processing-python-mode/15842 "2019-11-26T19:46:25Z")

</div>

Hi how can you add a Python library to Processing Python mode?

---

## [Displaying console in exported executable output](https://discourse.processing.org/t/displaying-console-in-exported-executable-output/15816)

<div class="topic-metadata">

**Author:** [@katesfb](https://discourse.processing.org/u/katesfb)\
**Replies:** 1\
**Last updated:** [November 26, 2019, 4:08am UTC](https://discourse.processing.org/t/displaying-console-in-exported-executable-output/15816 "2019-11-26T04:08:17Z")

</div>

Hi, I have a python mode script that has no setup() or draw() functions which is fine as 99% of the time the output is not viewed. This script has been exported to a 32 bit executable running on Win 10 and runs well how…

---

## [FRC Networktabels](https://discourse.processing.org/t/frc-networktabels/15501)

<div class="topic-metadata">

**Author:** [@ooss](https://discourse.processing.org/u/ooss)\
**Replies:** 3\
**Last updated:** [November 22, 2019, 8:15pm UTC](https://discourse.processing.org/t/frc-networktabels/15501 "2019-11-22T20:15:55Z")

</div>

I was wondering if anybody would know how to import the network tables for FRC python thing into processing so I can use it with processing. Sorry if this is not the best question or it does not have enough to give me an…

---

## [SVG library doesn't work in Python mode?](https://discourse.processing.org/t/svg-library-doesnt-work-in-python-mode/10270)

<div class="topic-metadata">

**Author:** [@Raums](https://discourse.processing.org/u/Raums)\
**Replies:** 3\
**Last updated:** [November 22, 2019, 8:29am UTC](https://discourse.processing.org/t/svg-library-doesnt-work-in-python-mode/10270 "2019-11-22T08:29:33Z")

</div>

I’ve tried from processing.svg import \* which says “import \* does not work in this environment.” and import processing.svg which says “ImportError: No module named svg” What am I doing wrong?

---

## [Cant convert python mode script to executable](https://discourse.processing.org/t/cant-convert-python-mode-script-to-executable/15641)

<div class="topic-metadata">

**Author:** [@katesfb](https://discourse.processing.org/u/katesfb)\
**Replies:** 3\
**Last updated:** [November 21, 2019, 9:07pm UTC](https://discourse.processing.org/t/cant-convert-python-mode-script-to-executable/15641 "2019-11-21T21:07:31Z")

</div>

Hi, I have a script in python mode that accesses an FTP server, downloads some files, does a bit of processing and then moves them to an archive directory. This program works fine but when I try to convert it to a windo…

---

## [Unknown out of memory leak](https://discourse.processing.org/t/unknown-out-of-memory-leak/15470)

<div class="topic-metadata">

**Author:** [@sargent](https://discourse.processing.org/u/sargent)\
**Replies:** 3\
**Last updated:** [November 18, 2019, 8:48pm UTC](https://discourse.processing.org/t/unknown-out-of-memory-leak/15470 "2019-11-18T20:48:59Z")

</div>

Hi, I am working on a project with the following issue: every few times I run it, it begins to crash on startup due to an out of memory error. Here is the error: OutOfMemoryError: Java heap space at java.awt.image.Da…

---

## [Serial.list() can't work in python mode](https://discourse.processing.org/t/serial-list-cant-work-in-python-mode/1681)

<div class="topic-metadata">

**Author:** [@newton45](https://discourse.processing.org/u/newton45)\
**Replies:** 2\
**Last updated:** [November 7, 2019, 7:54pm UTC](https://discourse.processing.org/t/serial-list-cant-work-in-python-mode/1681 "2019-11-07T19:54:11Z")

</div>

code is very simply. But can’t work. add\_library('serial') def setup(): size(200,200) print Serial.list() def draw(): background(0) The version is 3.3.7 And I also installed a processing version 2.2.1, i…

---

## [contactStarted() in Fisica(python Mode) not worked](https://discourse.processing.org/t/contactstarted-in-fisica-python-mode-not-worked/15172)

<div class="topic-metadata">

**Author:** [@Shitou](https://discourse.processing.org/u/Shitou)\
**Replies:** 2\
**Last updated:** [November 6, 2019, 2:25am UTC](https://discourse.processing.org/t/contactstarted-in-fisica-python-mode-not-worked/15172 "2019-11-06T02:25:49Z")

</div>

The contactStarted() in my python code never be called, please tell me how to fix it. add\_library('fisica') from my\_module import \* from random import random def contactStarted(c): print("hello") b1 = c.getBo…

---

## [Can't use image() with SVG library](https://discourse.processing.org/t/cant-use-image-with-svg-library/10582)

<div class="topic-metadata">

**Author:** [@Raums](https://discourse.processing.org/u/Raums)\
**Replies:** 3\
**Last updated:** [November 4, 2019, 7:45pm UTC](https://discourse.processing.org/t/cant-use-image-with-svg-library/10582 "2019-11-04T19:45:13Z")

</div>

Processing throws a NullPointerException when I try to output an image to SVG while using image(). Looks like this is a known issue from 2017. There’s an answer there but like the poster, I don’t know how to implement it…

---

## [Playbutton not working](https://discourse.processing.org/t/playbutton-not-working/15052)

<div class="topic-metadata">

**Author:** [@Michachacha](https://discourse.processing.org/u/Michachacha)\
**Replies:** 8\
**Last updated:** [November 1, 2019, 12:53am UTC](https://discourse.processing.org/t/playbutton-not-working/15052 "2019-11-01T00:53:20Z")

</div>

Hi! I can’t get processing 3.5.3 to work. Would anyone help me please? It starts up, but hitting the play button doesn’t do anything except making the program (menus etc) react very slowly. This is with the only code e…

---

## ["Jyni" with Python mode](https://discourse.processing.org/t/jyni-with-python-mode/14548)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 8\
**Last updated:** [October 28, 2019, 10:47pm UTC](https://discourse.processing.org/t/jyni-with-python-mode/14548 "2019-10-28T22:47:34Z")

</div>

Dear all, I have recently heard about Jyni (tries to enable Jython to use native CPython extensions) and would like to test it with Python mode. I have 2 questions: Do you think it is compatible with Processing ? (la…

---

## [Get perpendicular angle](https://discourse.processing.org/t/get-perpendicular-angle/14067)

<div class="topic-metadata">

**Author:** [@lnp](https://discourse.processing.org/u/lnp)\
**Replies:** 13\
**Last updated:** [September 22, 2019, 3:09am UTC](https://discourse.processing.org/t/get-perpendicular-angle/14067 "2019-09-22T03:09:10Z")

</div>

This is kind of an embarrassing one. I’m trying to draw a perpendicular line to two given vectors and I can’t work it out for the life of me. I suppose what I’m receiving with atan (or PVector.getAngle) is not what I …

---

## [Processing.py issue with user-created generator (yield)](https://discourse.processing.org/t/processing-py-issue-with-user-created-generator-yield/14011)

<div class="topic-metadata">

**Author:** [@zlohner](https://discourse.processing.org/u/zlohner)\
**Replies:** 3\
**Last updated:** [September 17, 2019, 2:32am UTC](https://discourse.processing.org/t/processing-py-issue-with-user-created-generator-yield/14011 "2019-09-17T02:32:45Z")

</div>

New to Processing but experienced in programming, especially python. I decided implementing Conway’s Game of Life would be a good project to get a feel for how to use Processing.py My code involved a function that retur…

---

## [Help needed to fix Serial in Python Mode](https://discourse.processing.org/t/help-needed-to-fix-serial-in-python-mode/13431)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 1\
**Last updated:** [September 16, 2019, 3:53pm UTC](https://discourse.processing.org/t/help-needed-to-fix-serial-in-python-mode/13431 "2019-09-16T15:53:04Z")

</div>

I use Processing Python Mode in my classes, I really love this stuff. I also use Arduino with Firmata (Serial based) communication to integrate it with Processing. Serial is broken in Python Mode for quite a while now …

---

## [No Module named ast](https://discourse.processing.org/t/no-module-named-ast/13935)

<div class="topic-metadata">

**Author:** [@Troy](https://discourse.processing.org/u/Troy)\
**Replies:** 7\
**Last updated:** [September 16, 2019, 1:50pm UTC](https://discourse.processing.org/t/no-module-named-ast/13935 "2019-09-16T13:50:58Z")

</div>

I’m having a problem with Processing in python mode. I added the mode and it went through the installation process, but whether I have code to run or not, when pressing Run button I get: processing.app.SketchException:…

---

## [Export application problem especially when include csv library in processing.py](https://discourse.processing.org/t/export-application-problem-especially-when-include-csv-library-in-processing-py/13920)

<div class="topic-metadata">

**Author:** [@rumidita](https://discourse.processing.org/u/rumidita)\
**Replies:** 4\
**Last updated:** [September 12, 2019, 7:48am UTC](https://discourse.processing.org/t/export-application-problem-especially-when-include-csv-library-in-processing-py/13920 "2019-09-12T07:48:47Z")

</div>

Hello everyone, I have a problem when trying to export the program especially if it contains CSV library in Processing.py. If I don’t tick the option for “Embed Java for Windows (64-bit)”, it successful to be exported. …

---

## [\[SOLVED\] Does anyone know of a way to build Python code through Sublime Text 3?](https://discourse.processing.org/t/solved-does-anyone-know-of-a-way-to-build-python-code-through-sublime-text-3/8438)

<div class="topic-metadata">

**Author:** [@REal](https://discourse.processing.org/u/REal)\
**Replies:** 3\
**Last updated:** [September 7, 2019, 9:39am UTC](https://discourse.processing.org/t/solved-does-anyone-know-of-a-way-to-build-python-code-through-sublime-text-3/8438 "2019-09-07T09:39:52Z")

</div>

I’m just starting to learn Processing, and I wanted to learn it using Python, but I’m used to the sublime text 3 environment. I just set up the Sublime Text 3 Processing package, but I can’t seem to figure out how to mak…

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

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