Closed FriedrichFroebel closed 1 year ago
If someone wants to test it or have a look at the generated wheels: https://github.com/FriedrichFroebel/gamera-4/actions/workflows/wheels.yml. If the downloads are missing (retention days have been reached), just drop me a comment and I will re-generate them. By default, wheels for Python 3.10 and Python 3.11 are provided as assets.
Dear Friedrich, thanks for the contributions which I have just merged into the main branch. I would like to add your name to the ACKNOWLEDGEMENTS file, but do not know whether your name is correctly written with "oe" or with an umlaut. Would you mind letting me know? Thanks, Christoph
@cdalitz Just to clarify: FriedrichFröbel is just the nick name I use on GitHub (and at some other places) - I prefer to not disclose my real name here. If you want to add me to the ACKNOWLEDGEMENTS, just use FriedrichFröbel or FriedrichFroebel, where I prefer the first one (the second one just avoids the umlauts to simplify stuff for non-German sites/users).
Done. Maybe we will have one day more contributors with celebrities as nicknames, which makes the "hall of fame" very illustruos ;-)
To come back to this issue: I had some look at this issue again, but it still remains unclear to me what actually causes this.
What I tested: Built Python 3.11.0rc2 on an Ubuntu 22.04 machine and tested both the CI-generated wheel and a local package build. When running
import gamera
print(gamera.__version__)
print(dir(gamera))
from gamera import core
there, everything will run fine - except for the last import, where we will get the aforementioned stack trace. For now, I did not manage to get something helpful out of GDB which would help here. From what I have read, this error could be caused by any build or linking issue.
While there still is an issue with building from #61, it seems like it fixes Python 3.11 support as well (at least with my custom Python 3.11.0rc2 build previously used locally as well and the above code).
Build error:
building 'gamera.plugins._fourier_features' extension
[...]
cc1plus: fatal error: src/geostructs/delaunaytree.cpp: Datei oder Verzeichnis nicht gefunden
compilation terminated.
This should be fixed with the latest commit. I have only tested it with python 3.5. Can you please test it with python 3.11, too? Thanks.
As mentioned in the above comment, Python 3.11 seems to work now. This is backed through the gamera-4 CI using Python 3.11 as well, too.
I just started evaluating whether gamera-4 already works with the latest release candidate of Python 3.11. Doing so, I performed some initial clean-up of build warnings as well to reduce the build noise, as I still did not manage to get a successful package. My changes are currently available at https://github.com/FriedrichFroebel/gamera-4.
What I did so far:
Py_TYPE
had to be changed toPy_SET_TYPE
.What I might fix in the near future to further reduce the build noise:
While Python 3.8 to Python 3.10 still work with these changes, I am facing failing tests on Python 3.11:
I am not sure what the actual issue is here, as the message is not really helpful. Only
test_graph.py
andtest_kdtree.py
are not affected here. The build seems to work correctly (at least there are no errors any more, just warnings). Does anyone have an idea about this and how it could be fixed?