Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tfx support for python 3 #35

Closed
orechick opened this issue Apr 7, 2019 · 13 comments
Closed

tfx support for python 3 #35

orechick opened this issue Apr 7, 2019 · 13 comments

Comments

@orechick
Copy link

orechick commented Apr 7, 2019

Hi
is there an estimation when tfx will be based on python 3 (and not as today - python 2)?

@MattMorgis
Copy link
Contributor

Hi @orechick - We've been compiling/installing from source, and it works on Python 3. There is a commit that enables it in setup.py. I think it's going to be supported and offered in the next version, 0.13.0

You'll need protoc installed where you do this, and then I believe the command is pip install -e .[tfx] from the root directory after a git checkout of this repo.

@ruoyu90
Copy link
Contributor

ruoyu90 commented Apr 8, 2019

Thanks @MattMorgis for the detailed introduction!
Hi @orechick - tfx package is now Python3 compatible, however we decide to postpone releasing Python3 version on PyPi since there are some bugs to be fixed in our dependency libraries. The good news is we're very close and hope to release 0.13 (including a Python3 version) soon. In the meantime, you can try it out by installing from source. Please let us know for any problem!

@orechick
Copy link
Author

when does 0.13 will be released?

@zhitaoli
Copy link
Contributor

zhitaoli commented Apr 16, 2019 via email

@krazyhaas
Copy link

minor correction: we are awaiting Apache beam 2.12.0 to be released.

@ruoyu90
Copy link
Contributor

ruoyu90 commented Apr 26, 2019

TFX 0.13.0rc0 is alive now. Feel free to try it out and let us know for anything :)

@thak123
Copy link

thak123 commented Apr 29, 2019

Apache beam 2.12.0 is out
https://github.com/apache/beam/releases

@Mageswaran1989
Copy link

Error

  Traceback (most recent call last):
    File "/home/mageswarand/.conda/envs/default/lib/python3.7/runpy.py", line 193, in _run_module_as_main
      "__main__", mod_spec)
    File "/home/mageswarand/.conda/envs/default/lib/python3.7/runpy.py", line 85, in _run_code
      exec(code, run_globals)
    File "/home/mageswarand/.conda/envs/default/lib/python3.7/site-packages/pip/__main__.py", line 16, in <module>
      from pip._internal import main as _main  # isort:skip # noqa
    File "/home/mageswarand/.conda/envs/default/lib/python3.7/site-packages/pip/_internal/__init__.py", line 4, in <module>
      import locale
    File "/home/mageswarand/.conda/envs/default/lib/python3.7/locale.py", line 16, in <module>
      import re
    File "/home/mageswarand/.conda/envs/default/lib/python3.7/re.py", line 143, in <module>
      class RegexFlag(enum.IntFlag):
  AttributeError: module 'enum' has no attribute 'IntFlag'

While following the workshop setup on Python 3.7.1 env, Airflow installation is having problem and solution is pip uninstall enum34 . Reference

@ruoyu90
Copy link
Contributor

ruoyu90 commented Apr 29, 2019

@thak123 Yep! We pushed 0.13.0rc0 last week which includes Python 3 support (3.5). Feel free to try it out :)

@Mageswaran1989 Currently we only have fully support for Python 3.5 with 0.13.0rc0. Btw, are you having problems on Mac?

@Mageswaran1989
Copy link

@ruoyu90 I use Ubuntu 18 and this particular issue comes while installing Airflow package, which I had faced in the past also.

@ruoyu90
Copy link
Contributor

ruoyu90 commented Apr 30, 2019

@Mageswaran1989 Maybe try a different Python version? Python 3.5 works for me well on Linux. If problem still persists, maybe forward this to Airflow community for better assistant?

@Mageswaran1989
Copy link

Mageswaran1989 commented May 2, 2019

@ruoyu90 it is just that we are using python 3.7.1 version, and we are currently understanding the example :)

We are working on Image data set and was wondering is there any examples/materials that could help us to start with? 80

@ruoyu90
Copy link
Contributor

ruoyu90 commented May 15, 2019

FYI TFX 0.13 release is alive now with Python 3.5 support.

@ruoyu90 ruoyu90 closed this as completed May 17, 2019
ruoyu90 pushed a commit to ruoyu90/tfx that referenced this issue Aug 28, 2019
* Update Charter for SIG-TensorBoard

* Update project lead to maniv at google
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants