I am trying to run a Python script that is supposed to import some Cython code, and I get the following error:
ImportError: 'path to my .so file': undefined symbol: _Py_ZeroStruct
I have read that this could be due to a mismatch between Python versions. However, I have tried to compile with Python 2.7 and 3.8 (on Visual Studio code) and I always get the same error. I am using try to run this Ubuntu 20.04. I should also add that the code worked fine with older versions of Ubuntu, before I upgraded it a few days ago (I had Ubuntu 16 before).
Any idea how I can solve the problem?