Open stevenpackardblp opened 3 years ago
I can confirm the attached patch fixes the issue.
Very thorough report, thanks!
Python 3.10 is officially releasing today. Shall I submit a Pull Request with my patch?
@dreness I went ahead and submitted a Pull Request. Now that Python 3.10 is officially released, this is becoming problematic for pip installations from PyPI. Please have a look. Thanks!
just hit this on OSX with /usr/local/Cellar/ansible/5.2.0/libexec/bin/python3.10
same on 3.11. by now on a M1 MacBook so a fully reinstalled homebrew tree. Don't have kerberos installed, only pykerberos 1.2.4. Also checked that the sources are patched with stevenpackardblp 's patch. Maybe time to buy a dozen raspberrys with different virtual_envs. it must all be joke. I don't care anymore.
When using the module with Python 3.10 in conjunction with requests-kerberos, a
SystemError
is thrown in thechannelBindings
function. This is the stack trace:This is due to a behavioral change made in Python 3.10 which requires extension modules to use the
Py_ssize_t
type rather than theint
type for string lengths:The following patch resolves the issue: