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-cx-freeze 7.2.7-2 build error #2753

Open
jghodd opened this issue Dec 27, 2024 · 11 comments
Open

python-cx-freeze 7.2.7-2 build error #2753

jghodd opened this issue Dec 27, 2024 · 11 comments
Milestone

Comments

@jghodd
Copy link

jghodd commented Dec 27, 2024

To replicate, check out Arch Linux python-cx-freeze from the AUR, and run makepkg.

Build fails.

Build shouldn;t fail.

Not sure what else to add. Error message is listed below. Architecture is x86_64. All system and python software is up to date.

Please fix.

In file included from /usr/include/python3.13/Python.h:123:
/usr/include/python3.13/pylifecycle.h:37:38: note: declared here
   37 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *);
      |                                      ^~~~~~~~~~~~~~~~~
source/bases/common.c:291:5: error: implicit declaration of function ‘Py_SetPath’; did you mean ‘Py_GetPath’? [-Wimplicit-function-declaration]
  291 |     Py_SetPath(wpath);
      |     ^~~~~~~~~~
      |     Py_GetPath
source/bases/common.c:293:5: warning: ‘PySys_SetArgvEx’ is deprecated [-Wdeprecated-declarations]
  293 |     PySys_SetArgvEx(argc, argv, 0);
      |     ^~~~~~~~~~~~~~~
In file included from /usr/include/python3.13/Python.h:125:
/usr/include/python3.13/sysmodule.h:11:38: note: declared here
   11 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetArgvEx(int, wchar_t **, int);
      |                                      ^~~~~~~~~~~~~~~
source/bases/console.c: In function ‘main’:
source/bases/console.c:75:14: error: implicit declaration of function ‘_PyMem_RawStrdup’; did you mean ‘PyMem_RawFree’? [-Wimplicit-function-declaration]
   75 |     oldloc = _PyMem_RawStrdup(setlocale(LC_ALL, NULL));
      |              ^~~~~~~~~~~~~~~~
      |              PyMem_RawFree
source/bases/console.c:75:12: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
   75 |     oldloc = _PyMem_RawStrdup(setlocale(LC_ALL, NULL));
      |            ^
error: command '/bin/gcc' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel
==> ERROR: A failure occurred in build().
    Aborting...

@marcelotduarte
Copy link
Owner

Support for Python 3.13 in the next minor release (7.3.0).
You can test it:
pip install git+https://github.com/marcelotduarte/cx_Freeze.git@main

Duplicate of #2568

@jghodd
Copy link
Author

jghodd commented Dec 27, 2024 via email

@marcelotduarte
Copy link
Owner

If you are using py313t you may get the same errors. But with py313 it works.
I believe you can test it with
You can test the PR with:
pip install --extra-index-url https://test.pypi.org/simple/ cx-Freeze==7.3.0.dev1735263095

@jghodd
Copy link
Author

jghodd commented Dec 27, 2024 via email

@marcelotduarte
Copy link
Owner

The main branch works.
I don't use Arch.
Show me your PKGBUILD because there must be an error in it.

@marcelotduarte marcelotduarte reopened this Jan 7, 2025
@marcelotduarte marcelotduarte added this to the 7.3.0 milestone Jan 7, 2025
@jghodd
Copy link
Author

jghodd commented Jan 7, 2025

I did end up sending you my PKGBUILD, but I'm not seeing it in the comments. Strange. I replied right away when you asked to see it.

@marcelotduarte
Copy link
Owner

I didn't receive it. Please paste it.

@jghodd
Copy link
Author

jghodd commented Jan 7, 2025 via email

@marcelotduarte
Copy link
Owner

marcelotduarte commented Jan 7, 2025

You can use:

source=('python-cx-freeze-git::git+https://github.com/marcelotduarte/cx_Freeze#branch=main')
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

@envolution
Copy link

@schoekek
Copy link

python3.13 compatibility is a prerequisite for a successful Debian sid build.
When is the release planned?

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