Package Details: pyinstaller 6.17.0-1

Git Clone URL: https://aur.archlinux.org/pyinstaller.git (read-only, click to copy)
Package Base: pyinstaller
Description: Bundles a Python application and all its dependencies into a single package
Upstream URL: https://www.pyinstaller.org
Licenses: LicenseRef-custom
Submitter: jackdroido
Maintainer: envolution
Last Packager: envolution
Votes: 53
Popularity: 0.026779
First Submitted: 2012-06-13 22:56 (UTC)
Last Updated: 2025-11-25 01:56 (UTC)

Latest Comments

1 2 3 4 5 6 7 Next › Last »

harryr commented on 2026-02-22 00:47 (UTC)

error while building: [21/23] Compiling src/main.c ../../src/pyi_utils_posix.c: In function ‘_pyi_create_runtime_tmpdir’: ../../src/pyi_utils_posix.c:157:24: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 157 | for(subpath_cursor = strchr(runtime_tmpdir, '/'); subpath_cursor != NULL; subpath_cursor = strchr(++subpath_cursor, '/')) { | ^ cc1: all warnings being treated as errors

../../src/pyi_utils.c: In function ‘pyi_create_parent_directory_tree’: ../../src/pyi_utils.c:65:25: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 65 | for (subpath_cursor = strchr(filename, PYI_SEP); subpath_cursor != NULL; subpath_cursor = strchr(++subpath_cursor, PYI_SEP)) { | ^ cc1: all warnings being treated as errors

harryr commented on 2026-02-22 00:44 (UTC)

error while building: [21/23] Compiling src/main.c ../../src/pyi_utils_posix.c: In function ‘_pyi_create_runtime_tmpdir’: ../../src/pyi_utils_posix.c:157:24: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 157 | for(subpath_cursor = strchr(runtime_tmpdir, '/'); subpath_cursor != NULL; subpath_cursor = strchr(++subpath_cursor, '/')) { | ^ cc1: all warnings being treated as errors

../../src/pyi_utils.c: In function ‘pyi_create_parent_directory_tree’: ../../src/pyi_utils.c:65:25: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 65 | for (subpath_cursor = strchr(filename, PYI_SEP); subpath_cursor != NULL; subpath_cursor = strchr(++subpath_cursor, PYI_SEP)) { | ^ cc1: all warnings being treated as errors

yochananmarqos commented on 2024-10-16 22:58 (UTC)

Just FYI, no GNU / Linux package should need PyInstaller.

nuc commented on 2024-08-12 21:44 (UTC)

For me it is still failing

==> Validating source files with sha256sums...
    pyinstaller-6.10.0.tar.gz ... FAILED
    fortify-source-fix.diff ... Passed
==> ERROR: One or more files did not pass the validity check!
 -> error making: pyinstaller-exit status 1

yochananmarqos commented on 2024-08-12 16:02 (UTC)

I've disabled the tests.

brownpaperbag666 commented on 2024-08-12 09:44 (UTC)

@yochananmarqos

The build process runs the tests using the system python instance, and if user has >older PyInstaller installed there (in this case, 6.9.0), that ends up being used in the >tests.

Tested with archlinux:latest container:

building the 6.10.0 package in "clean" python environment works as expected building the 6.9.0 package first and installing it, then trying to build 6.10.0 package >fails as reported

Suggested solution:

I think the proper fix would be to change that pytest ... invocation in PKGBUILD into >python -m pytest ...; could be that other packages are using that (or are not running >tests at all).

See issue here: https://github.com/pyinstaller/pyinstaller/issues/8725

Henry-ZHR commented on 2024-08-12 02:34 (UTC)

The checksum is outdated again

Henry-ZHR commented on 2024-08-12 02:29 (UTC)

https://github.com/pyinstaller/pyinstaller/issues/8725

PYTHONPATH="$(pwd)" did work on my machine

yochananmarqos commented on 2024-08-11 16:51 (UTC)

@fam007e: I can't reproduce in a clean chroot. However, I've skipped the isolation tests for now.

fam007e commented on 2024-08-11 13:53 (UTC) (edited on 2024-08-11 13:56 (UTC) by fam007e)

Recent pyinstaller update showing this particular error:

================================================================================================================= FAILURES ==================================================================================================================
___________________________________________________________________________________________________________ test_nested_isolation ___________________________________________________________________________________________________________
[gw1] linux -- Python 3.12.4 /usr/bin/python

    def test_nested_isolation():
        def isolated_function():
            from PyInstaller import isolated
            import os

            # Get this process ID of this (isolated process)
            pid = os.getpid()

            @isolated.decorate
            def isolated_subfunction():
                import os
                return os.getpid()

            other_pid = isolated_subfunction()
            return pid, other_pid

        # Test the isolated.call invocation
        pid, other_pid = isolated.call(isolated_function)
>       assert pid == other_pid, f"Did not reuse the same isolated process: {pid} vs. {other_pid}"
E       AssertionError: Did not reuse the same isolated process: 217181 vs. 217184
E       assert 217181 == 217184

tests/unit/test_isolation.py:354: AssertionError
============================================================================================================= warnings summary ==============================================================================================================
../../../../../../../usr/lib/python3.12/site-packages/altgraph/__init__.py:142
../../../../../../../usr/lib/python3.12/site-packages/altgraph/__init__.py:142
../../../../../../../usr/lib/python3.12/site-packages/altgraph/__init__.py:142
  /usr/lib/python3.12/site-packages/altgraph/__init__.py:142: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

../../../../../../../usr/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
../../../../../../../usr/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
../../../../../../../usr/lib/python3.12/site-packages/pkg_resources/__init__.py:2832
  /usr/lib/python3.12/site-packages/pkg_resources/__init__.py:2832: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zope')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

../../../../../../../usr/lib/python3.12/site-packages/setuptools/_distutils/ccompiler.py:850
../../../../../../../usr/lib/python3.12/site-packages/setuptools/_distutils/ccompiler.py:850
../../../../../../../usr/lib/python3.12/site-packages/setuptools/_distutils/ccompiler.py:850
  /usr/lib/python3.12/site-packages/setuptools/_distutils/ccompiler.py:850: DeprecationWarning: includes is deprecated
    warnings.warn("includes is deprecated", DeprecationWarning)

../../../../../../../usr/lib/python3.12/site-packages/_pytest/config/__init__.py:1437
../../../../../../../usr/lib/python3.12/site-packages/_pytest/config/__init__.py:1437
../../../../../../../usr/lib/python3.12/site-packages/_pytest/config/__init__.py:1437
  /usr/lib/python3.12/site-packages/_pytest/config/__init__.py:1437: PytestConfigWarning: Unknown config option: timeout

    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================================================================== short test summary info ==========================================================================================================
SKIPPED [2] tests/unit/test_hook_order.py:18: Skipped
FAILED tests/unit/test_isolation.py::test_nested_isolation - AssertionError: Did not reuse the same isolated process: 217181 vs. 217184
=============================================================================== 1 failed, 334 passed, 2 skipped, 11 xfailed, 12 warnings in 70.67s (0:01:10) ================================================================================
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: pyinstaller-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
pyinstaller - exit status 4

The error I am encountering is maybe when trying to install pyinstaller AUR is due to a failed test case, specifically test_nested_isolation. This test is asserting that the same process ID should be reused during nested isolation, but the assertion failed because different process IDs were returned.