Hi Valentyn, I'm aware there is Python 3 environment and have worked on the options <https://github.com/apache/beam/pull/6397> module. Yes, I'd love to contribute more. The issue I raise here is specifically about Python 3.7, where the dependency on typing library would fail all the tests. Do you know which version of Python 3 is setup for our tests ?
Manu On Fri, Sep 28, 2018 at 8:02 AM Valentyn Tymofieiev <valen...@google.com> wrote: > Hi Manu, > > We have added Python 3 environment to our tests see [1], and we are > actively making changes to Beam code to make it Python 3-compatible. We are > enabling tests module by module, although we have to disable some of the > tests initially, when failures are likely introduced in other modules. > > I think @RobbeSneyders is currently working on typehints package > specifically, as per our Kanban board [2]. > > If you (or anyone else) is interested in helping with Python 3 support, > and has cycles to actively work on it now, please reach out - I would be > happy to coordinate the effort, and help with code reviews. > > Thanks, > Valentyn > > [1] > https://github.com/apache/beam/blob/5d298db4c20bbb8876a5b75142341332c1e3fb8d/sdks/python/tox.ini#L56 > [2] > https://issues.apache.org/jira/secure/RapidBoard.jspa?rapidView=245&view=detail > > > On Thu, Sep 27, 2018 at 3:52 PM Manu Zhang <owenzhang1...@gmail.com> > wrote: > >> Hi all, >> >> I failed to run Python tests in 3.7 with the following error. >> >> File >> "/Users/doria/git/incubator-beam/sdks/python/apache_beam/typehints/native_type_compatibility.py", >> line 23, in <module> >> >> import typing >> >> File >> "/Users/doria/git/incubator-beam/sdks/python/.eggs/typing-3.6.6-py3.7.egg/typing.py", >> line 1356, in <module> >> >> class Callable(extra=collections_abc.Callable, >> metaclass=CallableMeta): >> >> File >> "/Users/doria/git/incubator-beam/sdks/python/.eggs/typing-3.6.6-py3.7.egg/typing.py", >> line 1004, in __new__ >> >> self._abc_registry = extra._abc_registry >> >> AttributeError: type object 'Callable' has no attribute '_abc_registry' >> >> This is because the required typing library is not provisional in Python >> 3.7 <https://github.com/python/typing#important-dates>. >> >> Any thoughts on this? Shall we add Python 3.7 environment to our tests ? >> >> Thanks, >> Manu Zhang >> >