You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
contourpy 1.2.0 requires numpy<2.0,>=1.20, but you have numpy 2.0.2 which is incompatible.
gensim 4.3.3 requires numpy<2.0,>=1.18.5, but you have numpy 2.0.2 which is incompatible.
Because of which code is throwing the following
C:\Users\sudhe\anaconda3\Lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "C:\AI\pythonguides\fastrtc\llm_voice_chat.py", line 3, in
from fastrtc import (ReplyOnPause, Stream, get_stt_model, get_tts_model)
File "C:\Users\sudhe\anaconda3\Lib\site-packages\fastrtc_init_.py", line 9, in
from .stream import Stream
File "C:\Users\sudhe\anaconda3\Lib\site-packages\fastrtc\stream.py", line 12, in
import gradio as gr
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_init_.py", line 3, in
import gradio.simple_templates
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_simple_templates_init.py", line 1, in
from .simpledropdown import SimpleDropdown
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_simple_templates\simpledropdown.py", line 7, in
from gradio.components.base import Component, FormComponent
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio\components_init_.py", line 40, in
from gradio.components.native_plot import BarPlot, LinePlot, NativePlot, ScatterPlot
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio\components\native_plot.py", line 12, in
import pandas as pd
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas_init_.py", line 26, in
from pandas.compat import (
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas\compat_init_.py", line 27, in
from pandas.compat.pyarrow import (
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas\compat\pyarrow.py", line 8, in
import pyarrow as pa
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pyarrow_init_.py", line 65, in
import pyarrow.lib as _lib
Traceback (most recent call last):
File "C:\Users\sudhe\anaconda3\Lib\site-packages\numpy\core_multiarray_umath.py", line 44, in getattr
raise ImportError(msg)
ImportError:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "C:\AI\pythonguides\fastrtc\llm_voice_chat.py", line 3, in
from fastrtc import (ReplyOnPause, Stream, get_stt_model, get_tts_model)
File "C:\Users\sudhe\anaconda3\Lib\site-packages\fastrtc_init_.py", line 9, in
from .stream import Stream
File "C:\Users\sudhe\anaconda3\Lib\site-packages\fastrtc\stream.py", line 12, in
import gradio as gr
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_init_.py", line 3, in
import gradio.simple_templates
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_simple_templates_init.py", line 1, in
from .simpledropdown import SimpleDropdown
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_simple_templates\simpledropdown.py", line 7, in
from gradio.components.base import Component, FormComponent
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio\components_init_.py", line 40, in
from gradio.components.native_plot import BarPlot, LinePlot, NativePlot, ScatterPlot
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio\components\native_plot.py", line 12, in
import pandas as pd
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas_init_.py", line 49, in
from pandas.core.api import (
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas\core\api.py", line 1, in
from pandas.libs import (
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas_libs_init.py", line 17, in
import pandas._libs.pandas_datetime # noqa: F401 # isort: skip # type: ignore[reportUnusedImport]
Traceback (most recent call last):
File "C:\Users\sudhe\anaconda3\Lib\site-packages\numpy\core_multiarray_umath.py", line 44, in getattr
raise ImportError(msg)
ImportError:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last):
File "C:\AI\pythonguides\fastrtc\llm_voice_chat.py", line 3, in
from fastrtc import (ReplyOnPause, Stream, get_stt_model, get_tts_model)
File "C:\Users\sudhe\anaconda3\Lib\site-packages\fastrtc_init_.py", line 9, in
from .stream import Stream
File "C:\Users\sudhe\anaconda3\Lib\site-packages\fastrtc\stream.py", line 12, in
import gradio as gr
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_init_.py", line 3, in
import gradio.simple_templates
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_simple_templates_init.py", line 1, in
from .simpledropdown import SimpleDropdown
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_simple_templates\simpledropdown.py", line 7, in
from gradio.components.base import Component, FormComponent
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio\components_init_.py", line 40, in
from gradio.components.native_plot import BarPlot, LinePlot, NativePlot, ScatterPlot
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio\components\native_plot.py", line 12, in
import pandas as pd
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas_init_.py", line 49, in
from pandas.core.api import (
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas\core\api.py", line 1, in
from pandas.libs import (
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas_libs_init.py", line 17, in
import pandas._libs.pandas_datetime # noqa: F401 # isort: skip # type: ignore[reportUnusedImport]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: numpy.core.multiarray failed to import
Hi @aiwithsudheer - can you try installing in a fresh environment or upgrading your version of gradio? I think what happened is that the previous installation of gradio installed some dependencies that are not compatible with numpy > 2.0.2
I get the following error installing the packages
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
contourpy 1.2.0 requires numpy<2.0,>=1.20, but you have numpy 2.0.2 which is incompatible.
gensim 4.3.3 requires numpy<2.0,>=1.18.5, but you have numpy 2.0.2 which is incompatible.
Because of which code is throwing the following
C:\Users\sudhe\anaconda3\Lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "C:\AI\pythonguides\fastrtc\llm_voice_chat.py", line 3, in
from fastrtc import (ReplyOnPause, Stream, get_stt_model, get_tts_model)
File "C:\Users\sudhe\anaconda3\Lib\site-packages\fastrtc_init_.py", line 9, in
from .stream import Stream
File "C:\Users\sudhe\anaconda3\Lib\site-packages\fastrtc\stream.py", line 12, in
import gradio as gr
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_init_.py", line 3, in
import gradio.simple_templates
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_simple_templates_init.py", line 1, in
from .simpledropdown import SimpleDropdown
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_simple_templates\simpledropdown.py", line 7, in
from gradio.components.base import Component, FormComponent
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio\components_init_.py", line 40, in
from gradio.components.native_plot import BarPlot, LinePlot, NativePlot, ScatterPlot
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio\components\native_plot.py", line 12, in
import pandas as pd
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas_init_.py", line 26, in
from pandas.compat import (
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas\compat_init_.py", line 27, in
from pandas.compat.pyarrow import (
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas\compat\pyarrow.py", line 8, in
import pyarrow as pa
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pyarrow_init_.py", line 65, in
import pyarrow.lib as _lib
Traceback (most recent call last):
File "C:\Users\sudhe\anaconda3\Lib\site-packages\numpy\core_multiarray_umath.py", line 44, in getattr
raise ImportError(msg)
ImportError:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "C:\AI\pythonguides\fastrtc\llm_voice_chat.py", line 3, in
from fastrtc import (ReplyOnPause, Stream, get_stt_model, get_tts_model)
File "C:\Users\sudhe\anaconda3\Lib\site-packages\fastrtc_init_.py", line 9, in
from .stream import Stream
File "C:\Users\sudhe\anaconda3\Lib\site-packages\fastrtc\stream.py", line 12, in
import gradio as gr
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_init_.py", line 3, in
import gradio.simple_templates
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_simple_templates_init.py", line 1, in
from .simpledropdown import SimpleDropdown
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_simple_templates\simpledropdown.py", line 7, in
from gradio.components.base import Component, FormComponent
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio\components_init_.py", line 40, in
from gradio.components.native_plot import BarPlot, LinePlot, NativePlot, ScatterPlot
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio\components\native_plot.py", line 12, in
import pandas as pd
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas_init_.py", line 49, in
from pandas.core.api import (
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas\core\api.py", line 1, in
from pandas.libs import (
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas_libs_init.py", line 17, in
import pandas._libs.pandas_datetime # noqa: F401 # isort: skip # type: ignore[reportUnusedImport]
Traceback (most recent call last):
File "C:\Users\sudhe\anaconda3\Lib\site-packages\numpy\core_multiarray_umath.py", line 44, in getattr
raise ImportError(msg)
ImportError:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last):
File "C:\AI\pythonguides\fastrtc\llm_voice_chat.py", line 3, in
from fastrtc import (ReplyOnPause, Stream, get_stt_model, get_tts_model)
File "C:\Users\sudhe\anaconda3\Lib\site-packages\fastrtc_init_.py", line 9, in
from .stream import Stream
File "C:\Users\sudhe\anaconda3\Lib\site-packages\fastrtc\stream.py", line 12, in
import gradio as gr
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_init_.py", line 3, in
import gradio.simple_templates
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_simple_templates_init.py", line 1, in
from .simpledropdown import SimpleDropdown
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio_simple_templates\simpledropdown.py", line 7, in
from gradio.components.base import Component, FormComponent
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio\components_init_.py", line 40, in
from gradio.components.native_plot import BarPlot, LinePlot, NativePlot, ScatterPlot
File "C:\Users\sudhe\anaconda3\Lib\site-packages\gradio\components\native_plot.py", line 12, in
import pandas as pd
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas_init_.py", line 49, in
from pandas.core.api import (
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas\core\api.py", line 1, in
from pandas.libs import (
File "C:\Users\sudhe\anaconda3\Lib\site-packages\pandas_libs_init.py", line 17, in
import pandas._libs.pandas_datetime # noqa: F401 # isort: skip # type: ignore[reportUnusedImport]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: numpy.core.multiarray failed to import
(base) C:\AI\pythonguides\fastrtc>pip install numpy
Requirement already satisfied: numpy in c:\users\sudhe\anaconda3\lib\site-packages (2.0.2)
The text was updated successfully, but these errors were encountered: