moma
November 1, 2023, 10:36am
2
Hello,
the same bug occurred to me. I found an easy solution to fix it but also made a bug report here:
opened 10:29AM - 01 Nov 23 UTC
## Description
When the exported script is executed it crashes and prints o… ut the following error message:
"java.lang.UnsatisfiedLinkError: no processing-io in java.library.path:"
## Expected Behavior
To get a working script after exporting a sketch using the Hardware I/O Library to Raspberry Pi.
The proposed change would be to include the corresponding "libprocessing-io.so" file automatically during the export.
## Current Behavior
I can get the sketch running by manually copying the file "libprocessing-io.so" into the "lib" folder of the exported sketch.
## Steps to Reproduce
The most simple sketch to reproduce the bug:
import processing.io.*;
GPIO.pinMode(4, GPIO.INPUT_PULLUP);
1. Export the above sketch to Linux Raspberry Pi 64 or 32 bit.
2. Execute the script in terminal.
## Your Environment
* Processing version: 4.3
* Operating System and OS version (for running the exported script): Raspberry Pi 4, Raspberry Pi OS (64-bit) Published: 2023-10-10
* Other information: Problem occurs when sketch is exported on the Raspberry Pi 4 itself or as well on a MacBook Pro M2.
## Possible Causes / Solutions
To get a working script you would have to manually copy the file “/Documents/Processing/libraries/io/library/linux-arm64/libprocessing-io.so” into the “lib” folder of the exported sketch.
Hope it helps.
1 Like