Skip to content

fix: windows runtime error - could not find home dir#297

Merged
pranav-okta merged 1 commit intomasterfrom
fix-windows-runtime-error
Jan 8, 2026
Merged

fix: windows runtime error - could not find home dir#297
pranav-okta merged 1 commit intomasterfrom
fix-windows-runtime-error

Conversation

@pranav-okta
Copy link
Contributor

@pranav-okta pranav-okta commented Jan 8, 2026

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)

Copy link

@dhiwakar-okta dhiwakar-okta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@pranav-okta pranav-okta merged commit 88e0532 into master Jan 8, 2026
6 checks passed
@pranav-okta pranav-okta deleted the fix-windows-runtime-error branch February 3, 2026 05:01
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