-
Couldn't load subscription status.
- Fork 4.4k
Closed
Labels
bugThis issue is a bug.This issue is a bug.p0This issue is the highest priorityThis issue is the highest prioritypotential-regressionMarking this issue as a potential regression to be checked by team memberMarking this issue as a potential regression to be checked by team member
Description
Describe the bug
This is likely a duplicate of #9331 since I see the change log that pyinstaller was upgraded to 6.11.1 for 2.25.0 which was the cause of the issue reported in #9331
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
Successfully compile from source on Apple silicon MAC
Current Behavior
Fails with
14109 INFO: Analyzing run-time hooks ...
14112 INFO: Including run-time hook 'pyi_rth_inspect.py' from '/Users/build-user/awscli-2.25.1/build/venv/lib/python3.9/site-packages/PyInstaller/hooks/rthooks'
14112 INFO: Including run-time hook 'pyi_rth_pkgutil.py' from '/Users/build-user/awscli-2.25.1/build/venv/lib/python3.9/site-packages/PyInstaller/hooks/rthooks'
14113 INFO: Including run-time hook 'pyi_rth_multiprocessing.py' from '/Users/build-user/awscli-2.25.1/build/venv/lib/python3.9/site-packages/PyInstaller/hooks/rthooks'
14114 INFO: Including run-time hook 'pyi_rth_cryptography_openssl.py' from '/Users/build-user/awscli-2.25.1/build/venv/lib/python3.9/site-packages/_pyinstaller_hooks_contrib/rthooks'
14236 INFO: Looking for dynamic libraries
14400 INFO: Warnings written to /Users/build-user/awscli-2.25.1/build/exe/build/aws/warn-aws.txt
14439 INFO: Graph cross-reference written to /Users/build-user/awscli-2.25.1/build/exe/build/aws/xref-aws.html
Traceback (most recent call last):
File "/Users/build-user/awscli-2.25.1/build/venv/bin/pyinstaller", line 8, in <module>
sys.exit(_console_script_run())
File "/Users/build-user/awscli-2.25.1/build/venv/lib/python3.9/site-packages/PyInstaller/__main__.py", line 231, in _console_script_run
run()
File "/Users/build-user/awscli-2.25.1/build/venv/lib/python3.9/site-packages/PyInstaller/__main__.py", line 215, in run
run_build(pyi_config, spec_file, **vars(args))
File "/Users/build-user/awscli-2.25.1/build/venv/lib/python3.9/site-packages/PyInstaller/__main__.py", line 70, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "/Users/build-user/awscli-2.25.1/build/venv/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 1252, in main
build(specfile, distpath, workpath, clean_build)
File "/Users/build-user/awscli-2.25.1/build/venv/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 1192, in build
exec(code, spec_namespace)
File "/Users/build-user/awscli-2.25.1/exe/pyinstaller/aws.spec", line 43, in <module>
raise ValueError((f'Symlink ({dest} -> {src}) found in table of contents. '
ValueError: Symlink (Python3 -> Python3.framework/Versions/3.9/Python3) found in table of contents. Our downstream packaging and signing code does not support symlinks, so this requires investigation.
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/build-user/awscli-2.25.1/./backends/build_system/__main__.py", line 125, in <module>
main()
File "/Users/build-user/awscli-2.25.1/./backends/build_system/__main__.py", line 121, in main
parsed_args.func(parsed_args)
File "/Users/build-user/awscli-2.25.1/./backends/build_system/__main__.py", line 45, in build
create_exe(aws_venv, parsed_args.build_dir)
File "/Users/build-user/awscli-2.25.1/./backends/build_system/__main__.py", line 35, in create_exe
builder.build()
File "/Users/build-user/awscli-2.25.1/./backends/build_system/exe.py", line 46, in build
self._build_aws()
File "/Users/build-user/awscli-2.25.1/./backends/build_system/exe.py", line 69, in _build_aws
aws_exe_build_dir = self._run_pyinstaller("aws.spec")
File "/Users/build-user/awscli-2.25.1/./backends/build_system/exe.py", line 82, in _run_pyinstaller
self._utils.run(
File "/Users/build-user/awscli-2.25.1/./backends/build_system/utils.py", line 238, in run
return subprocess.run(args, **kwargs)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/Users/build-user/awscli-2.25.1/build/venv/bin/python', '/Users/build-user/awscli-2.25.1/build/venv/bin/pyinstaller', '/Users/build-user/awscli-2.25.1/exe/pyinstaller/aws.spec', '--distpath', '/Users/build-user/awscli-2.25.1/build/exe/dist', '--workpath', '/Users/build-user/awscli-2.25.1/build/exe/build']' returned non-zero exit status 1.
make: *** [build] Error 1
Reproduction Steps
Download
curl -o awscli.tar.gz https://awscli.amazonaws.com/awscli.tar.gz
tar -xzf awscli.tar.gz
configure with
PYTHON=/usr/bin/python3 ./configure --prefix=/Users/install-user/dir --with-download-deps --with-install-type=portable-exe
make
Possible Solution
No response
Additional Information/Context
No response
CLI version used
2.25.1
Environment details (OS name and version, etc.)
Apple silicon MAC Sequoia 15.3.2
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.p0This issue is the highest priorityThis issue is the highest prioritypotential-regressionMarking this issue as a potential regression to be checked by team memberMarking this issue as a potential regression to be checked by team member