-
Notifications
You must be signed in to change notification settings - Fork 586
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
AttributeError: module 'typing' has no attribute '_Final' (or '_Union') #2095
Comments
|
Presumable cause: #2092 |
|
What's your exact python version? And are you installing a typing module backport? |
|
We're running in a virtualenv with these packages: It will take me a bit to dig up the exact python version (beyond 3.5) |
|
there were some changes to the typing module in python 3.5 between micro versions. I managed to reproduce your issue with python 3.5.0 |
Yep... I'll fix this and add a 3.5.0 CI environment 😩 |
|
In case it's relevant we were running Python 3.5.2 |
Traceback (most recent call last):
File "/tmpfs/bazel_tests_virtualenv/lib/python3.5/site-packages/hypothesis/internal/compat.py", line 304, in
typing_root_type = (typing._Final, typing._GenericAlias) # type: ignore
AttributeError: module 'typing' has no attribute '_Final'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmpfs/tmp/bazel/sandbox/linux-sandbox/725/execroot/tensorflow_probability/bazel-out/k8-opt/bin/tensorflow_probability/python/bijectors/bijector_properties_test_eager.runfiles/tensorflow_probability/tensorflow_probability/python/bijectors/bijector_properties_test.py", line 23, in
import hypothesis as hp
File "/tmpfs/bazel_tests_virtualenv/lib/python3.5/site-packages/hypothesis/init.py", line 27, in
from hypothesis._settings import (
File "/tmpfs/bazel_tests_virtualenv/lib/python3.5/site-packages/hypothesis/_settings.py", line 40, in
from hypothesis.internal.compat import integer_types, quiet_raise, string_types
File "/tmpfs/bazel_tests_virtualenv/lib/python3.5/site-packages/hypothesis/internal/compat.py", line 310, in
typing._Union,
AttributeError: module 'typing' has no attribute '_Union'
The text was updated successfully, but these errors were encountered: