You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Kyle Weaver (Jira)" <ji...@apache.org> on 2020/10/02 21:25:00 UTC

[jira] [Commented] (BEAM-10316) Python container builds always create Python 3.6 environment

    [ https://issues.apache.org/jira/browse/BEAM-10316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17206525#comment-17206525 ] 

Kyle Weaver commented on BEAM-10316:
------------------------------------

For those looking to circumvent the bug without having to install new Python versions, you can hack around this by changing this line to the Python version you want: https://github.com/apache/beam/blob/6fe33a5e10e01181f229f5702b8c9da3f8e4c3d0/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy#L1957

> Python container builds always create Python 3.6 environment
> ------------------------------------------------------------
>
>                 Key: BEAM-10316
>                 URL: https://issues.apache.org/jira/browse/BEAM-10316
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-harness
>            Reporter: Kyle Weaver
>            Priority: P2
>
> When I runĀ ./gradlew sdks:python:container:py37:docker, instead of the command creating a Python 3.7 environment as expected, Python 2.7 (the default) is used.
> > Task :sdks:python:setupVirtualenv FAILED
> created virtual environment CPython2.7.18.candidate.1-64 in 418ms
> Update: Now that Python 2.7 and 3.5 are removed, something similar happens for Python 3.6, the new minimum version.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)