Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit254273b

Browse files
committed
Pass SYSTEMROOT env variable to fix "_Py_HashRandomization_Init" error on Windows
1 parent4886f1b commit254273b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ pip install https://github.com/boto/botocore/archive/v2.zip https://github.com/a
6363

6464
##Change Log
6565

66+
* v0.18: Pass`SYSTEMROOT` env variable to fix "_Py_HashRandomization_Init" error on Windows
67+
* v0.17: Remove obsolete/erroneous FORCE_V2 flag
6668
* v0.16: Minor fix reading addressing_style in profile config
6769
* v0.15: Fix lookup of v1/v2 AWS CLI version, apply --s3-endpoint-url only for v1
6870
* v0.14: Quote file name for windows to allow folder names with spaces

‎bin/awslocal‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ S3_VIRTUAL_ENDPOINT_HOSTNAME = 's3.localhost.localstack.cloud'
2828
ifos.path.isdir(os.path.join(PARENT_FOLDER,'.venv')):
2929
sys.path.insert(0,PARENT_FOLDER)
3030

31+
# names of additional environment variables to pass to subprocess
32+
ENV_VARS_TO_PASS= ['PATH','PYTHONPATH','SYSTEMROOT']
33+
3134
fromlocalstack_clientimportconfig# noqa: E402
3235

3336

@@ -153,8 +156,7 @@ def run_as_separate_process():
153156
Constructs a command line string and calls "aws" as an external process.
154157
"""
155158
env_dict=prepare_environment()
156-
env_vars= ['PATH','PYTHONPATH']
157-
env_dict= {k:vfork,vinenv_dict.items()ifk.startswith('AWS_')orkinenv_vars}
159+
env_dict= {k:vfork,vinenv_dict.items()ifk.startswith('AWS_')orkinENV_VARS_TO_PASS}
158160

159161
cmd_args=prepare_cmd_args()
160162
cmd_args[0]='aws'

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name='awscli-local',
9-
version='0.17',
9+
version='0.18',
1010
description='Thin wrapper around the "aws" command line interface for use with LocalStack',
1111
author='Waldemar Hummer',
1212
author_email='waldemar.hummer@gmail.com',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp