Skip to content

Conversation

@emanor-okta
Copy link
Contributor

@emanor-okta emanor-okta commented Dec 7, 2025

Fixes:

error running process
aws s3 ls
Traceback (most recent call last):
  File "aws.py", line 19, in <module>
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 384, in exec_module
  File "awscli\clidriver.py", line 78, in <module>
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 384, in exec_module
  File "awscli\telemetry.py", line 31, in <module>
  File "pathlib\_abc.py", line 758, in home
  File "pathlib\_local.py", line 808, in expanduser
RuntimeError: Could not determine home directory.
[PYI-1964:ERROR] Failed to execute script 'aws' due to unhandled exception!

Error: exit status 1
Usage:

on Windows system when --exec is used to run a aws cli command (--exec -- aws s3 ls)

@pranav-okta
Copy link
Contributor

Closing in favor of #297

@pranav-okta pranav-okta closed this Jan 8, 2026
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

Successfully merging this pull request may close these issues.

2 participants