Bonjorno friends, I have been trying to make the p...
# ask-community
a
Bonjorno friends, I have been trying to make the prefect cloud work for the past few days. After resolving various errors and deployment crashes, I encountered a new issue: the agent is raising a NotImplementedError. To address this, I followed the suggestion in an article I found and updated to Python 3.11.5. However, I am now encountering the following error:
Copy code
(anton) C:\Users\Anton\Desktop\DE2\2_workflow_orchestration\flows\03_deployments>python flow_pandas.py  
Traceback (most recent call last):
  File "C:\Users\Anton\Desktop\DE2\2_workflow_orchestration\flows\03_deployments\flow_pandas.py", line 5, in <module>
    from prefect import flow, task
  File "C:\Users\Anton\anaconda3\envs\anton\Lib\site-packages\prefect\_init_.py", line 37, in <module>
    from prefect.runner import Runner, serve
  File "C:\Users\Anton\anaconda3\envs\anton\Lib\site-packages\prefect\runner.py", line 46, in <module>
    from prefect.client.orchestration import get_client
  File "C:\Users\Anton\anaconda3\envs\anton\Lib\site-packages\prefect\client\orchestration.py", line 11, in <module>
    import pydantic
  File "pydantic\_init_.py", line 2, in init pydantic._init_
  File "pydantic\dataclasses.py", line 41, in init pydantic.dataclasses
    # +=========+=========================================+

ModuleNotFoundError: No module named 'typing_extensions'
I updated all the packages in my env, prefect, python, etc. checked all the possible solutions around 'typing_extensions'. Maybe I missed something obvious? Do you have any suggestions to where should I look? Cheers!
i
Hey Anton, do you mind sharing which version of pydantic you're using? Or just dump the contents of this here:
pip3 freeze | grep "prefect\|pydantic\|fastapi"
We can continue here, but just FYI there's #CM28LL405 also.
I see you're on Windows, so it should be:
pip freeze | findstr "prefect pydantic fastapi"
I didn't test it so feel free to just dump all of
pip freeze
🙂
a
Hello Islam! It worked, here's the short version: fastapi==0.103.1 prefect==2.13.3 prefect-gcp==0.4.6 prefect-sqlalchemy==0.2.2 pydantic==1.10.10 pydantic_core==2.6.3
Thanks for helping! 🙂
Hey, it seems that Anaconda's env was causing the issue. I had to re-install typing_extensions using the anaconda's gui. All good now!