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 <[email protected]> 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
>

Reply via email to