-
Notifications
You must be signed in to change notification settings - Fork 820
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
Compatibility with Python 3.7 #57
Comments
This issue can be worked around rather easily by adding calls to import from import sys
if sys.version_info < (3, 8):
from typing_extensions import Final
else:
from typing import Final |
Thanks for the tip @nateraw , we will look into adding 3.7 support. |
You might be happy to hear the Colab has recently updated to 3.8. I still run 3.7 environments, and stumbled across the following problem This should be changed:
To this:
https://github.com/Unstructured-IO/unstructured/blob/main/unstructured/partition/text_type.py ImportError: cannot import name 'List' from 'typing_extensions' (/opt/conda/lib/python3.7/site-packages/typing_extensions.py) |
Per issue #57 , fix typing imports in Python 3.7.
This was completed with #108 . |
So related to #56 , Colab's environment uses Python 3.7. Since in the package you are using
typing.Final
, it makes this package unusable on Python 3.7 unfortunately, as that is only supported on Python >= 3.8Would it be possible to not use this
typing
feature so the package works on Python < 3.8?The text was updated successfully, but these errors were encountered: