Open italovalcy opened 4 months ago
Having delved further into this. Here's the source of the error: Debian image stable-slim has moved to Bookworm which uses python version 3.11, whereas the original OpenNSA build used Bullseye, using python version 3.9, and the package twistar does not support version 3.11
In python 3.11, they require using a tag at the beginning of regex, like (?s) or (?i), which the twistar library does not do.
As it stands, the latest version of twistar is version 2.0.0, which is the version used by OpenNSA, and it was released back in 2018 and the git hub repo has been archived by the owner back in 2021. It appears very, very unlikely that Twistar will be updated to use Python 3.11 on its own, so there's 3 options at this point.
from debian:bullseye-slim
In my development, migrating back to Bullseye has proven successful, however this solution won't support all requirements, particularly once Bullseye reaches EOL in 2026.
Hi @Joshua-M-CANARIE thanks a lot for checking this. I've a running version of opennsa and BerlinInflector lib running on debian 12 with the following change:
sed -i 's/\^(?i)(ox)/(?i)^(ox)/g' /usr/local/lib/python3.11/dist-packages/BermiInflector/Rules/English.py
I think the best option would be Refactor the OpenNSA library to not make use of Twistar. However, since I this. seems to be a long path, maybe maintaining a fork of BermiInflector or Twistar. I can help on that if you guys are interested.
Hi,
After fixing other building errors like the one reported in #44, the following error happens after starting opennsa in Debian 12 I get the following error: