Skip to content

Support Python 3 for TensorFlow scripts #19

Closed

Description

@meownoid

Is there any reason not to do this? Python 2 is an officially outdated language and will retire in 2 years.

Activity

  1. iquintero commented on Dec 14, 2017

    @iquintero
    Contributor

    Hi @meownoid

    Thanks for your interest in Sagemaker! Support for python3 is definitively important! it just didn't make the cut for launch. This is on our backlog, and we'll give you an update when we have an ETA.

  2. nathanielcompton commented on Jan 12, 2018

    @nathanielcompton

    @iquintero Is there somewhere public-facing for Sagemaker users to track progress? 👍 to this issue.

  3. aodhan-domhnaill commented on Jan 15, 2018

    @aodhan-domhnaill

    +1 Python2.7 is old and the inconsistency is annoying,

    Traceback (most recent call last):
      File "/opt/amazon/bin/entry.py", line 32, in <module>
        modes[mode]()
      File "/opt/amazon/lib/python2.7/site-packages/container_support/training.py", line 21, in start
        raise e
      File "/opt/ml/code/lstm-trainer.py", line 55
        logging.info(f'[Epoch {epoch}] Training: {name}={acc}')
                                                             ^
    SyntaxError: invalid syntax
    
  4. flexthink commented on Feb 8, 2018

    @flexthink

    +1: Given the lack of backwards compatibility, I wouldn't want to start using a tool that locks me into Python 2.x for new projects

  5. jwygoda commented on Mar 5, 2018

    @jwygoda

    Hi @iquintero
    Can we get an estimate for python3 compatibility?

  6. andremoeller commented on Mar 8, 2018

    @andremoeller
    Contributor

    Hi @adogyf

    We don't have an estimate for this right now, but it's on our roadmap, and we're continuously updating our priorities based on community feedback. Thanks!

  7. aodhan-domhnaill commented on Mar 8, 2018

    @aodhan-domhnaill

    @andremoeller Is there an open Dockerfile for the default container? If so, I'd happily submit a PR.

  8. andremoeller commented on Mar 13, 2018

    @andremoeller
    Contributor

    Hi @aidan-plenert-macdonald ,

    We're actively working on open-sourcing our Dockerfiles, but we don't have one open-sourced yet. Thanks!

  9. mlaicode commented on May 19, 2018

    @mlaicode

    Hi @iquintero Any further update since early March for python3 compatibility? Thanks.

  10. pranavmodi commented on Jun 18, 2018

    @pranavmodi

    Hello, my organization is considering using Sagemaker. It fits our usecase very well - but support for Python 3 is needed. Is there any timeline for supporting it? Thanks!

  11. cniedzwiedz commented on Jun 23, 2018

    @cniedzwiedz

    +1 for Python3 support

  12. 3 remaining items

  13. kalpitsmehta commented on Sep 5, 2018

    @kalpitsmehta

    +1 for Python 3 support

  14. rparundekar commented on Sep 5, 2018

    @rparundekar

    +1

  15. yyolk commented on Oct 4, 2018

    @yyolk

    +1

  16. Jsturgeo commented on Oct 16, 2018

    @Jsturgeo

    +1

  17. ShukuiZhang commented on Oct 18, 2018

    @ShukuiZhang

    +1

  18. gdj0nes commented on Oct 19, 2018

    @gdj0nes

    +1
    Someone with AWS has at least started working on this here @ranman

  19. sharmasx commented on Oct 25, 2018

    @sharmasx

    +1

  20. adkatrit commented on Nov 19, 2018

    @adkatrit

    +1

  21. laurenyu commented on Nov 19, 2018

    @laurenyu
    Contributor

    Hi all, thanks for letting us know how important this feature is to you! We've released Python 3 support for TF in #475 - though it does require a new training script format. Documentation is on its way, but I wanted to post an update here letting you know that you can now use our Python 3 TF images

  22. gudongfeng commented on Nov 25, 2018

    @gudongfeng

    I am still getting an ERROR ClientError: Cannot pull algorithm container
    when I was trying to run the following code

    ...
    estimator = TensorFlow(
        entry_point='endpoint.py',
        source_dir=source_dir,
        role=role,
        output_path=model_artifacts_location,
        code_location=custom_code_upload_location,
        train_instance_count=1,
        train_volume_size=30,  # GB
        framework_version='1.8.0',
        train_instance_type=train_instance_type,
        py_version='py3',
        hyperparameters=HYPERPARAMETERS)
    
    estimator.fit(data_location, run_tensorboard_locally=False)
    
  23. mvsusp commented on Dec 13, 2018

    @mvsusp
    Contributor

    Closing this issue now that we have official support for python 3.

    🎉 🎈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions