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

Unable to build from source from version 2.25.0 onwards on a Apple Silicon MAC #9393

Closed
1 task done
dorankangwai opened this issue Mar 23, 2025 · 4 comments
Closed
1 task done
Labels
bug This issue is a bug. p0 This issue is the highest priority potential-regression Marking this issue as a potential regression to be checked by team member

Comments

@dorankangwai
Copy link

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

@dorankangwai dorankangwai added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Mar 23, 2025
@github-actions github-actions bot added the potential-regression Marking this issue as a potential regression to be checked by team member label Mar 23, 2025
@ashovlin
Copy link
Member

Thanks for the report, I've reproduced and am planning to address via #9395.

@ashovlin ashovlin added p0 This issue is the highest priority and removed needs-triage This issue or PR still needs to be triaged. labels Mar 24, 2025
@ashovlin
Copy link
Member

This should be addressed in today's release of 2.25.2. Let us know if you're still seeing issues.

@ashovlin ashovlin added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Mar 24, 2025
@RyanFitzSimmonsAK RyanFitzSimmonsAK added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Mar 24, 2025
@dorankangwai
Copy link
Author

Hi @ashovlin I can confirm that I can successfully compile with version 2.25.2

Thanks for the speedy response!

@github-actions github-actions bot removed closing-soon This issue will automatically close in 4 days unless further comments are made. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. labels Mar 25, 2025
Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. p0 This issue is the highest priority potential-regression Marking this issue as a potential regression to be checked by team member
Projects
None yet
Development

No branches or pull requests

3 participants