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

When inferring task, open config.json for reading only. #74

Merged
merged 3 commits into from
Nov 28, 2022

Conversation

davidthomas426
Copy link
Contributor

Issue #, if available:

Description of changes:
config.json was being opened in read-write mode ('r+'), which caused problems if the model artifact was on a read-only filesystem. There's no actual need to open this file with write permissions, since all it does is call json.loads on it.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@davidthomas426 davidthomas426 requested a review from a team November 22, 2022 13:07
There's an open issue with setup-python action with Python 3.6 on Ubuntu.
For details, see actions/setup-python#544
@maaquib maaquib merged commit e9c6dc6 into aws:main Nov 28, 2022
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.

3 participants