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

TASK: fix Python 3.12 FTBFS in ELN packages #144

Closed
23 tasks done
yselkowitz opened this issue Jul 4, 2023 · 5 comments
Closed
23 tasks done

TASK: fix Python 3.12 FTBFS in ELN packages #144

yselkowitz opened this issue Jul 4, 2023 · 5 comments
Assignees

Comments

@yselkowitz
Copy link
Member

yselkowitz commented Jul 4, 2023

What does the ELN SIG need to do?

The Python 3.12 mass rebuild is about to be merged into rawhide, which will trigger the same in ELN. However, as of the time of merging, there are still packages which FTBFS with Python 3.12. Those that are in the ELN package set need to be fixed quickly so as to not disrupt the forthcoming CentOS Stream 10 import.

Details: https://lists.fedoraproject.org/archives/list/[email protected]/thread/BI3TYWJFMSCW4RMWI3FUYPRWZWWI4G7E/

@hroncok
Copy link

hroncok commented Jul 4, 2023

pythran is only pulled into ELN by scipy and scipy has been rebuilt without pythran first. a WIP PR is at https://src.fedoraproject.org/rpms/pythran/pull-request/25 but it is not yet fully functional.

@hroncok
Copy link

hroncok commented Jul 10, 2023

pythran fixed

@yselkowitz
Copy link
Member Author

@hroncok the following Python 3.12 issues remain with the ELN package set:

  • pyodbc: uses obsolete PyUnicode APIs removed in 3.12:
  In file included from src/pyodbc.h:172,
                   from src/buffer.cpp:12:
  src/pyodbccompat.h: In function ‘PyObject* Text_New(Py_ssize_t)’:
  src/pyodbccompat.h:75:12: error: ‘PyUnicode_FromUnicode’ was not declared in this scope; did you mean ‘PyUnicode_FromString’?
     75 |     return PyUnicode_FromUnicode(0, length);
        |            ^~~~~~~~~~~~~~~~~~~~~
        |            PyUnicode_FromString
  src/pyodbccompat.h: In function ‘Py_UNICODE* Text_Buffer(PyObject*)’:
  src/pyodbccompat.h:86:12: error: ‘PyUnicode_AS_UNICODE’ was not declared in this scope; did you mean ‘PyUnicode_AsUCS4’?
     86 |     return PyUnicode_AS_UNICODE(o);
        |            ^~~~~~~~~~~~~~~~~~~~
        |            PyUnicode_AsUCS4
  src/pyodbccompat.h: In function ‘Py_ssize_t Text_Size(PyObject*)’:
  src/pyodbccompat.h:126:40: error: ‘PyUnicode_GET_SIZE’ was not declared in this scope; did you mean ‘PyDict_GET_SIZE’?
    126 |     return (o && PyUnicode_Check(o)) ? PyUnicode_GET_SIZE(o) : 0;
        |                                        ^~~~~~~~~~~~~~~~~~
        |                                        PyDict_GET_SIZE
  src/pyodbccompat.h: In function ‘Py_ssize_t TextCopyToUnicode(Py_UNICODE*, PyObject*)’:
  src/pyodbccompat.h:146:26: error: ‘PyUnicode_GET_SIZE’ was not declared in this scope; did you mean ‘PyDict_GET_SIZE’?
    146 |         Py_ssize_t cch = PyUnicode_GET_SIZE(o);
        |                          ^~~~~~~~~~~~~~~~~~
        |                          PyDict_GET_SIZE
  src/pyodbccompat.h:147:24: error: ‘PyUnicode_AS_UNICODE’ was not declared in this scope; did you mean ‘PyUnicode_AsUCS4’?
    147 |         memcpy(buffer, PyUnicode_AS_UNICODE(o), cch * sizeof(Py_UNICODE));
        |                        ^~~~~~~~~~~~~~~~~~~~
        |                        PyUnicode_AsUCS4
  error: command '/usr/bin/gcc' failed with exit code 1
  error: subprocess-exited-with-error
  • sudo: crash during %check in plugins/python

@yselkowitz
Copy link
Member Author

Carrying over remaining failures to #153

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

4 participants