hrsht-13 / Breast-Cancer-Detection

This project uses mammograms for breast cancer detection using deep learning techniques.
33 stars 19 forks source link

ImportError: cannot import name 'ParamSpec' from 'typing_extensions' #3

Open johnfelipe opened 2 years ago

johnfelipe commented 2 years ago
(env) root@felipe:~/Breast-Cancer-Detection# python3 app.py                     2022-06-05 06:05:49.297118: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2022-06-05 06:05:49.297168: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
  File "app.py", line 7, in <module>
    import gradio as gr
  File "/root/Breast-Cancer-Detection/env/lib/python3.8/site-packages/gradio/__init__.py", line 3, in <module>
    import gradio.components as components
  File "/root/Breast-Cancer-Detection/env/lib/python3.8/site-packages/gradio/components.py", line 28, in <module>
    from gradio.blocks import Block
  File "/root/Breast-Cancer-Detection/env/lib/python3.8/site-packages/gradio/blocks.py", line 14, in <module>
    from fastapi.concurrency import run_in_threadpool
  File "/root/Breast-Cancer-Detection/env/lib/python3.8/site-packages/fastapi/__init__.py", line 7, in <module>
    from .applications import FastAPI as FastAPI
  File "/root/Breast-Cancer-Detection/env/lib/python3.8/site-packages/fastapi/applications.py", line 15, in <module>
    from fastapi import routing
  File "/root/Breast-Cancer-Detection/env/lib/python3.8/site-packages/fastapi/routing.py", line 22, in <module>
    from fastapi.datastructures import Default, DefaultPlaceholder
  File "/root/Breast-Cancer-Detection/env/lib/python3.8/site-packages/fastapi/datastructures.py", line 3, in <module>
    from starlette.datastructures import URL as URL  # noqa: F401
  File "/root/Breast-Cancer-Detection/env/lib/python3.8/site-packages/starlette/datastructures.py", line 7, in <module>
    from starlette.concurrency import run_in_threadpool
  File "/root/Breast-Cancer-Detection/env/lib/python3.8/site-packages/starlette/concurrency.py", line 11, in <module>
    from typing_extensions import ParamSpec
ImportError: cannot import name 'ParamSpec' from 'typing_extensions' (/root/Breast-Cancer-Detection/env/lib/python3.8/site-packages/typing_extensions.py)