models icon indicating copy to clipboard operation
models copied to clipboard

Python 3.9 is not working with tensorflow_models

Open DanielUsselmann opened this issue 1 year ago • 1 comments

Prerequisites

Please answer the following question for yourself before submitting an issue.

  • [x] I checked to make sure that this issue has not been filed already.

1. The entire URL of the documentation with the issue

https://github.com/tensorflow/models

2. Describe the issue

In the README part it says, that Python 3.9 is supported but if I try to use tensorflow_models I'm getting: TypeError: unsupported operand type(s) for |: 'type' and '_GenericAlias'

There has been a similar issue with https://github.com/tensorflow/models/issues/10986 but the docu still says it works with python 3.9

DanielUsselmann avatar Aug 05 '24 20:08 DanielUsselmann

Hi @DanielUsselmann Thanks for reporting the issue. I was able to reproduce this issue, it is due to new typing feature of python 3.10. I've opened a PR #11259 to make tensorflow_models compatible with python3.7+

bharatjetti avatar Sep 16 '24 05:09 bharatjetti