Skip to content

copytree's dirs_exist_ok parameter is only available in Python 3.8+ #1036

@ivanmkc

Description

@ivanmkc

shutil.copytree(self.script_path, trainer_path, dirs_exist_ok=True)

See https://docs.python.org/3/whatsnew/3.8.html#shutil

Need to replace with something else to support <3.8 or else an exception occurs.

TODO:

  • Replace shutil.copytree with something more compatible
  • Add unit test to cover passing in a folder to _TrainingScriptPythonPackager

Metadata

Metadata

Assignees

Labels

aiplatformIssues related to the AI Platform (Unified) API.api: vertex-aiIssues related to the googleapis/python-aiplatform API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions