Error trying to install PiOLED

Good afternoon,

I’ve recently gotten an Adafruit PiOLED Display and have hooked it up to my pioreactor. But when I attempted to install the plugin but I get the following error and the display seems unresponsive.

Any assistance?

Hi @PJ_2025,

Ah, yes, there were some changes to internal apis, and this plugin didn’t get updated. Can you try the latest version, 0.5.0, just released? That should fix it.

Brilliant!

Did the spectrometer reading plugin also get affected by this update as well?

Mm, no, but are you seeing an issue there?

The plugin works fine, the spectrometer turns on, but it suggest it’s not taking any readings, either in between OD measurements or not, in the MQTT

hm, let me test here. What version of Pioreactor software and version of spec plugin are installed?

Pioreactor: 25.7.2

Plugin: 0.2.13

Hm, I’m on the same versions, and seeing data collected and landing in the database:

Can you be more specific about what you are not seeing?

Here is an experiment I’ve been running for the past few minutes. Both the OD and spectrometer measurements were left on, I received OD values (with the calibrations off to leave out any extra variables) but I received no spectrometer readings.


I just uploaded a new version of the spec plugin, 0.3.0. Can you try that?

I wasn’t able to reproduce what you are seeing, but this new version makes it more explicit when collection occurs. Take a look at the detailed event logs when you start the spec job.

I’ve downloaded the update, now the spectrometer reading job won’t start from the UI or the command line.

I get the following error:


I’ve also noticed that my Pio isn’t updating to 25.7.2. I’ve tried updating it from the UI, from the command line, and manually from the .zip file. I tells me that my device has been updated but once I checked the version it persists to say it’s 25.6.25.

On the Ui It will say that I’m on version 25.7.2, but upon a power cycle, it goes back to 25.6.25.

I checked the log any further information but nothing out of the ordinary pops out.


Sometimes I get the following error:

I’m working with a singular Pioreactor so I’m not sure how the version might not aligned with itself.

I’m working with a singular Pioreactor so I’m not sure how the version might not aligned with itself.

lol that’s a reasonable observation.

Yea, after seeing that this failed, I also suspected that your version wasn’t 25.7.2.

Okay, so why isn’t it updating correctly…

I have a few ideas, but I suspect that the Pioreactor software is installed in a “non-standard” location. On the command line, can you run:

python -c "import pioreactor;print(pioreactor.__file__)"

does this return

/usr/local/lib/python3.11/dist-packages/pioreactor/__init__.py

Likewise, does:

which pio

return

/usr/local/bin/pio

I have great news.

I’ve updated my packages Debian packages and the raspberry pi firmware.
Then I downloaded the Air Bubbler Plugin, which I had previously uninstalled for troubleshooting.
Suddenly, like magic, the Pio was working perfectly. The new version was implemented and now I’m getting my spectrometer readings.

I was also having a problem when I would get the error that my MQTT broker address was wrong and the UI would disconnect from the Pioreactor for no apparent reason, but that too is gone now.

I also ran the commands you said and it was running all fine.

Thank you very much.

I suspect the problem was with deleting the Air bubbler plugin, perhaps it was messing with the system too much?