-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
[bug][4.12.2][Notebook] cannot import name 'TypeIs' from 'typing_extensions' #510
Comments
This sounds like an environmental problem where the wrong version of the library is picked up. You could check that by printing |
import typing_extensions
print(typing_extensions.__file__)
That's the same file as mentioned above. |
It's probably already imported in your notebook process before the time you install the newer version There's not really anything we can do to help you in this issue tracker |
Thanks for your feedback. I solved the problem and want to add the information here if someone else has the same problem: I contacted the support of Fabric and they responded with the following suggestion:
To solve the problem I had to replace !pip install openai --upgrade with %pip install openai --upgrade |
I am using Fabric Notebook and I want to use the
openai
package but I get an error on importing it. (installingopenai
with--upgrade
also upgradestyping_extensions
to version 4.12.2)!pip install openai --upgrade
The same error occurs on importing
TypeIs
.The weird thing is, that the
/home/trusted-service-user/cluster-env/trident_env/lib/python3.11/site-packages/typing_extensions.py
contains theTypeIs
in the__all__
variable but when I execute the following code I cannot findTypeIs
in the resulting array.I am using typing_extensions v4.12.2 and python v3.11.8
I've run out of ideas on how to solve the problem. It worked yesterday and today I cannot import it any longer.
This has to be an issue with Fabric Notebook because everything works fine locally on my device. But maybe you have an idea how to solve it in Notebook.
The text was updated successfully, but these errors were encountered: