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.12 build error #99

Open
willemw12 opened this issue Apr 30, 2024 · 0 comments
Open

Python 3.12 build error #99

willemw12 opened this issue Apr 30, 2024 · 0 comments

Comments

@willemw12
Copy link

Fails to build with Python 3.12 on Arch Linux: https://aur.archlinux.org/packages/qutepart-git.

After ignoring build warnings "-Wdeprecated-declarations", "-Wnt-conversion" and "-Wimplicit-function-declaration" (warnings cause build errors), there are still build errors left:

qutepart/syntax/cParser.c: In function ‘AbstractRuleParams_init’:
qutepart/syntax/cParser.c:492:55: error: subscripted value is neither array nor pointer nor vector
  492 |         self->textType = PyUnicode_AsUnicode(textType)[0];
      |                                                       ^

When removing all the "[0]" mentioned in the compile error messages, it builds successfully.

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

1 participant