-
Notifications
You must be signed in to change notification settings - Fork 32
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
ocrd_all (2.45)- make all does not work #970
Comments
oh my... Thanks @stefanCCS for the report! It seems we are leaving the frying pan straight for the fire. We needed So should we remove the |
Is there any way we can fix this upsteam? shapely/shapely#1598 did not lead to a proper workaround, did it?
How so? Or rather what additional dependencies? How can I test (fail) this to debug?
If that is working, then it would be preferable of course.
Since I doubt any fix, should it arise, would be backported, that is likely a dead-end? We could pin it for now at 1.x to make ocrd_all work again in the short term.
As long as we need to build from source, yes. |
no, unfortunately not. The only outcome was that (for whatever reason) we need to import torch prior to shapely. In every module of every processor. It's doable for now with a number of PRs, but still someone might fall into the same trap again in the future. Our short-termed workaround was simply to install from source (hence
I believe it's @stefanCCS can you confirm you did not do That would make it a non-issue for the moment. |
@kba since the prebuilt Shapely 2.x is only available for Python >= 3.7 and our default on ocrd_all is still 3.6, and I do think that source compilation should work with |
Short answer: Confirmed, I have NOT made a |
On that note: Can you have a look at #956 so we can proceed with the base image/python update soon-ish?
Agreed. Just so I understand correctly: updating to Shapely 2.0 might break existing code but we value non-segfault-behavior over possible incompatibility. Updating python to 3.7 will allow us to use shapely wheels again without the segfault with torch?
As long as you move/copy/symlink the backed up directory back to the original place (so absolute paths still work), it will work same as before. |
|
yes, precisely. And we need to move forward to 2.x with our code anyway (just have not found the time to test on a wide set of data with known outcome yet). |
OK, then let's keep the shapely |
yes, either that or do everything in one step (moving to python 3.7 and ubuntu 20.4, dropping forced compilation for shapely, dropping gcc dependency) |
For the record: it did turn out that even with Shapely 2.x, we need source compilation to avoid the segfault with torch. Since we have since kept |
Hi,
I get an error during
make all
for "making" ocrd-all.Version: Made a "pull" at 13.01.2023 --> expecting to have version 2.45.
I have created a new
venv
with: `python3.7 -m venv ocrd-3.7Error I have got (--> please clarify):
The text was updated successfully, but these errors were encountered: