Skip to content

GCEComputeResourceController creates VM incompatible default Python version #293

@davidxia

Description

@davidxia

The GCEComputeResourceController class creates a GCE VM whose default Python version is incompatible with the client source code.

This line

private static final String SOURCE_FAMILY =
"projects/ubuntu-os-cloud/global/images/ubuntu-1604-xenial-v20171026a"; // Ubuntu 16.04 LTS
creates a GCE VM with Ubuntu 16.04 Xenial. The default Python 3 version is 3.5.2.

This client code

class PublisherSubtaskWorker(SubtaskWorker):
def __init__(self):
super().__init__()
self._flow_controller: FlowController = None
self._pub_id = int(random.random())
uses variable annotations which aren't supported until Python 3.6 [1].

The SOURCE_FAMILY should probably be changed to use an Ubuntu version whose default Python is >= 3.6 like Focal 20.04.

1: https://www.python.org/dev/peps/pep-0526/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions