Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update Dockerfile to use 3.10 in PYTHONPATH #12

Merged
merged 2 commits into from
Dec 5, 2022

Conversation

hvpareja
Copy link

@hvpareja hvpareja commented Nov 28, 2022

[UPDATE]

I found the same issue agan as the Dockerfile had only the major version in the FROM image.

I have pinned the alpine image and change the PYTHONEVN path accordingly

====

Latest Alpine release has upgraded the python version to 3.10 (See: https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.16.0#Python_upgraded_to_3.10)

As the PYTHONPATH is harcoded, the Dockerfile needs to be updated accordingly.

This fixes the issue of aws cli not working:

Traceback (most recent call last):
  File "/usr/bin/aws", line 19, in <module>
    import awscli.clidriver
ModuleNotFoundError: No module named 'awscli'

Please, review and merge ASAP, as this is a breaking change in some of our workflows.

Thanks!

Latest Alpine release has upgraded the python version to 3.10 (See: https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.16.0#Python_upgraded_to_3.10)

As the PYTHONPATH is harcoded, the Dockerfile needs to be updated accordingly
and update the python path again
Copy link
Member

@kieranajp kieranajp left a comment

Choose a reason for hiding this comment

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

Thank you - appreciate the contribution!

@kieranajp kieranajp merged commit 53f614b into vimeda:master Dec 5, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants