Skip to content
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

Python 3.10 compatiblity #24

Open
LukeLIN-web opened this issue Mar 7, 2024 · 1 comment
Open

Python 3.10 compatiblity #24

LukeLIN-web opened this issue Mar 7, 2024 · 1 comment

Comments

@LukeLIN-web
Copy link

LukeLIN-web commented Mar 7, 2024

Encountered some compatibility issues while installing LSH due to different Python versions:

In "lsh/cMinhash.cpp" at line 19292, there is an error related to 'PyThreadState' (also known as 'struct _ts') where it mentions that 'exc_type' is not a member, and it suggests replacing it with 'curexc_type' to resolve the issue.

In "lsh/cMinhash.cpp" at line 17704, there is another error involving 'PyTypeObject' (or 'struct _typeobject') where 'tp_print' is not a member. The solution is to replace 'tp_print' with 'tp_vectorcall_offset'.

There is another one.

python3.10/object.h:133:33: error: lvalue required as increment operand
        133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
            |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
@1195343015
Copy link

same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants