Skip to content

Update Dockerfile to use 3.10 in PYTHONPATH#12

Merged
kieranajp merged 2 commits into
vimeda:masterfrom
hvpareja:update-pythonpath-3.10
Dec 5, 2022
Merged

Update Dockerfile to use 3.10 in PYTHONPATH#12
kieranajp merged 2 commits into
vimeda:masterfrom
hvpareja:update-pythonpath-3.10

Conversation

@hvpareja
Copy link
Copy Markdown

@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
Copy Markdown
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
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