-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes required for installation under Ubuntu 24.04 LTS #3
Comments
We use Python 3.11 / Debian stable in our installations. The latest code of our test system is here: https://gitlab.com/stweil/escriptorium/-/commits/latest. It uses some newer packages, supports non-root installation, supports Opensearch as alternative to Elasticsearch and shows how to add settings and modifications for a local instance. |
|
The installation of Python 3.11 and related modules is the only special step which should be required for very recent Linux distributions. I wouldn't base a new installation on Python 3.8 because that version is rather old with a higher risk that it does not provide newer versions for all Python modules which are used by eScriptorium. |
Maybe for server installations this documentation is a better starting point. Some advanced instructions are still missing, especially installation, configuration and operation of a search index (Elasticsearch or OpenSearch) and support for alignment. |
As we use 3.11.2, the installation should not fail. Maybe the failure was caused by an old package requirement which is already fixed in our branch (and which should be backported to the official code). |
Yes, this is it! I tried the installation again with Python 3.11.9 and the check failed for psycopg2, which has a dependency that uses a version lower to 2.9. I see in your latest test code that you have omited this limitation (https://gitlab.com/stweil/escriptorium/-/commit/e179812253459cd6a7bdae2b49feee764304672c) and i have changed the requirements.txt as well. Now the installation worked without a problem! I see also, that you have updated some NPM related dependencies as well...will look into it after my vacation. Thank you for both the installation quide for a FQDN server and your latest code of your test system. Both are very valuable! Not sure what to do with this ticket here now...it would certainly be helpful showing a path on how to use an older python version then the one shipped with ubuntu 24.04. But on the other hand, maybe kraken will update its dependencies soon as well, so that there are no actions required in downgrading the Python version for the virtual enviroment. And i believe you said your changes for the dependencies will be pulled into the main repository as well at some point??? My initial proposal for python3.8 is not useful anymore and instead of |
It's not only Kraken which still has problems with Python 3.12. I estimate that we'll have to stick to 3.11 at least for this year. My latest merge request for the requirements was merged today, so I can send a new one with the updates for Python 3.11. |
We are currently exploring the installation of eScriptorium (as a first step just for internal use only) with the help of your magnificent documentation (https://github.com/UB-Mannheim/eScriptorium_Dokumentation/blob/main/Lokale_Installation_eScriptorium.md). I was able to get it running under Ubuntu 24.04 LTS (Noble Numbat) in a virtual machine, but had some initial struggles that i would like to share. I believe some changes should be made to the description of the installation. Either by providing a seperate section that describes changes specifically for Ubuntu 24.04 LTS in the affected steps or as a seperate page? Not quite sure which way you would prefer... maybe its even general enough to work from Ubuntu 20.04 upwards ... but i have no knowledge about WSL, so have not tested it there.
Also i cant really tell at the moment, if actually everything works as it should and if the vulnerabilites mentioned by NPM are actually harmful or not - the eScriptorium GIT progressed a lot and the interface changed a lot as well. I was able to segment, recognize and train a new model based upon an imported model (german_print/german_handwriting). So from this perspective everything so far worked out as it should.
Important: It is set that our servers will run with nothing less then the current stable LTS release, which is 24.04. We won't use older versions on new servers because of our policy.
Installation issues
Ubuntu 24.04 LTS ships with Python 3.12.x which causes the installation to fail, as we can't install and use necessary dependencies. This is because the virtual python environment will use the distros version, if not specifically provided another one.
So we need to install at least Python 3.8.x - the eScriptorium Wiki luckily mentioned this as well (https://gitlab.com/scripta/escriptorium/-/wikis/full-install). I had tested for Python 3.11.x to fullfil krakens dependency, but the installation failed at a later point, when checking via manage.py ... so even this version is to high.
So we would need (at least if not specifically) to install Python 3.8.x under Ubuntu 24.04 LTS. From what i have seen, only two steps would need to be changed then:
1. Installation relevanter Programme
This affects step 1, so the call would actually be:
Not sure if we actually require
python3.8-pip
as well? It's just mentioned in the Scripta-Documentation but not in yours ... so just as a mention.7. Virtuelle Umgebung
Also we need to create a virtual python environment under this step with the now appropriate version:
We can check the python version in our virtual environment simply by typing
python --version
... in our case:Python 3.8.19
Everything else went through without any problems...
The text was updated successfully, but these errors were encountered: