Failed to download and build `scipy==1.13.1` ../meson.build:78:0: ERROR: Unknown compiler(s): [['gfortran'],

Hello,

I have this problem “Failed to download and build scipy==1.13.1 ../meson.build:78:0: ERROR: Unknown compiler(s): [[‘gfortran’],” when I try to deploy my streamlit app, can u help me?

Please take a moment to search the forum and documentation before posting a new topic.
If you’re creating a debugging post, please include the following info:

  1. Are you running your app locally or is it deployed? Deployed
  2. If your app is deployed:
    a. Is it deployed on Community Cloud or another hosting platform? community cloud
    b. Share the link to the public deployed app. there are an error
  3. Share the link to your app’s public GitHub repository (including a requirements file): GitHub - laradhawatef-ia/chatbot-ia: test d'un projet chatbot ia
  4. Share the full text of the error message (not a screenshot).
  5. Share the Streamlit and Python versions. Python 3.11.14 & Streamlit, version 1.50.0

[18:17:33] 🚀 Starting up repository: 'chatbot-ia', branch: 'main', main module: 'app.py'

[18:17:33] 🐙 Cloning repository...

[18:17:33] 🐙 Cloning into '/mount/src/chatbot-ia'...

[18:17:33] 🐙 Cloned repository!

[18:17:33] 🐙 Pulling code changes from Github...

[18:17:33] 📦 Processing dependencies...

──────────────────────────────────────── uv ───────────────────────────────────────────

Using uv pip install.

Using Python 3.13.9 environment at /home/adminuser/venv

Resolved 44 packages in 455ms

× Failed to download and build `scipy==1.13.1`

╰─▶ Build backend failed to build wheel through `build_wheel` (exit status:

1)

[stdout]

+ meson setup

/home/adminuser/.cache/uv/sdists-v6/pypi/scipy/1.13.1/nN6TPzs4530dMfuY-3To-/src

/home/adminuser/.cache/uv/sdists-v6/pypi/scipy/1.13.1/nN6TPzs4530dMfuY-3To-/src/.mesonpy-pfe8lmk8

-Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md

--native-file=/home/adminuser/.cache/uv/sdists-v6/pypi/scipy/1.13.1/nN6TPzs4530dMfuY-3To-/src/.mesonpy-pfe8lmk8/meson-python-native-file.ini

The Meson build system

Version: 1.9.1

Source dir:

/home/adminuser/.cache/uv/sdists-v6/pypi/scipy/1.13.1/nN6TPzs4530dMfuY-3To-/src

Build dir:

/home/adminuser/.cache/uv/sdists-v6/pypi/scipy/1.13.1/nN6TPzs4530dMfuY-3To-/src/.mesonpy-pfe8lmk8

Build type: native build

Project name: scipy

Project version: 1.13.1

C compiler for the host machine: cc (gcc 12.2.0 "cc (Debian

12.2.0-14+deb12u1) 12.2.0")

C linker for the host machine: cc ld.bfd 2.40

C++ compiler for the host machine: c++ (gcc 12.2.0 "c++ (Debian

12.2.0-14+deb12u1) 12.2.0")

C++ linker for the host machine: c++ ld.bfd 2.40

Cython compiler for the host machine: cython (cython 3.0.12)

Host machine cpu family: x86_64

Host machine cpu: x86_64

Program python found: YES

(/home/adminuser/.cache/uv/builds-v0/.tmpGBBEiV/bin/python)

Did not find pkg-config by name 'pkg-config'

Found pkg-config: NO

Run-time dependency python found: YES 3.13

Program cython found: YES

(/home/adminuser/.cache/uv/builds-v0/.tmpGBBEiV/bin/cython)

Compiler for C supports arguments -Wno-unused-but-set-variable: YES

Compiler for C supports arguments -Wno-unused-function: YES

Compiler for C supports arguments -Wno-conversion: YES

Compiler for C supports arguments -Wno-misleading-indentation: YES

Library m found: YES

../meson.build:78:0: ERROR: Unknown compiler(s): [['gfortran'],

['flang-new'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'],

['ifx'], ['g95']]

The following exception(s) were encountered:

Running `gfortran --help` gave "[Errno 2] No such file or directory:

'gfortran'"

Running `gfortran --version` gave "[Errno 2] No such file or directory:

'gfortran'"

Running `gfortran -V` gave "[Errno 2] No such file or directory:

'gfortran'"

Running `flang-new --help` gave "[Errno 2] No such file or directory:

'flang-new'"

Running `flang-new --version` gave "[Errno 2] No such file or directory:

'flang-new'"

Running `flang-new -V` gave "[Errno 2] No such file or directory:

'flang-new'"

Running `flang --help` gave "[Errno 2] No such file or directory:

'flang'"

Running `flang --version` gave "[Errno 2] No such file or directory:

'flang'"

Running `flang -V` gave "[Errno 2] No such file or directory: 'flang'"

Running `nvfortran --help` gave "[Errno 2] No such file or directory:

'nvfortran'"

Running `nvfortran --version` gave "[Errno 2] No such file or directory:

'nvfortran'"

Running `nvfortran -V` gave "[Errno 2] No such file or directory:

'nvfortran'"

Running `pgfortran --help` gave "[Errno 2] No such file or directory:

'pgfortran'"

Running `pgfortran --version` gave "[Errno 2] No such file or directory:

'pgfortran'"

Running `pgfortran -V` gave "[Errno 2] No such file or directory:

'pgfortran'"

Running `ifort --help` gave "[Errno 2] No such file or directory:

'ifort'"

Running `ifort --version` gave "[Errno 2] No such file or directory:

'ifort'"

Running `ifort -V` gave "[Errno 2] No such file or directory: 'ifort'"

Running `ifx --help` gave "[Errno 2] No such file or directory: 'ifx'"

Running `ifx --version` gave "[Errno 2] No such file or directory:

'ifx'"

Running `ifx -V` gave "[Errno 2] No such file or directory: 'ifx'"

Running `g95 --help` gave "[Errno 2] No such file or directory: 'g95'"

Running `g95 --version` gave "[Errno 2] No such file or directory:

'g95'"

Running `g95 -V` gave "[Errno 2] No such file or directory: 'g95'"

A full log can be found at

/home/adminuser/.cache/uv/sdists-v6/pypi/scipy/1.13.1/nN6TPzs4530dMfuY-3To-/src/.mesonpy-pfe8lmk8/meson-logs/meson-log.txt

Checking if Streamlit is installed

Installing rich for an improved exception logging

Using uv pip install.

Using Python 3.13.9 environment at /home/adminuser/venv

Resolved 4 packages in 124ms

Prepared 4 packages in 132ms

Installed 4 packages in 18ms

[2025-11-10 18:17:48.591087] + markdown-it-py==4.0.0

+ mdurl==0.1.2

+ pygments==2.19.2

+ rich==14.2.0

────────────────────────────────────────────────────────────────────────────────────────

──────────────────────────────────────── pip ───────────────────────────────────────────

Using standard pip install.

Collecting altair==5.5.0 (from -r /mount/src/chatbot-ia/requirements.txt (line 1))

Downloading altair-5.5.0-py3-none-any.whl.metadata (11 kB)

Collecting attrs==25.4.0 (from -r /mount/src/chatbot-ia/requirements.txt (line 2))

Downloading attrs-25.4.0-py3-none-any.whl.metadata (10 kB)

Collecting blinker==1.9.0 (from -r /mount/src/chatbot-ia/requirements.txt (line 3))

Downloading blinker-1.9.0-py3-none-any.whl.metadata (1.6 kB)

Collecting cachetools==6.2.1 (from -r /mount/src/chatbot-ia/requirements.txt (line 4))

Downloading cachetools-6.2.1-py3-none-any.whl.metadata (5.5 kB)

Collecting certifi==2025.10.5 (from -r /mount/src/chatbot-ia/requirements.txt (line 5))

Downloading certifi-2025.10.5-py3-none-any.whl.metadata (2.5 kB)

Collecting charset-normalizer==3.4.4 (from -r /mount/src/chatbot-ia/requirements.txt (line 6))

Downloading charset_normalizer-3.4.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (37 kB)

Collecting click==8.1.8 (from -r /mount/src/chatbot-ia/requirements.txt (line 7))

Downloading click-8.1.8-py3-none-any.whl.metadata (2.3 kB)

Collecting gitdb==4.0.12 (from -r /mount/src/chatbot-ia/requirements.txt (line 8))

Downloading gitdb-4.0.12-py3-none-any.whl.metadata (1.2 kB)

Collecting GitPython==3.1.45 (from -r /mount/src/chatbot-ia/requirements.txt (line 9))

Downloading gitpython-3.1.45-py3-none-any.whl.metadata (13 kB)

Collecting idna==3.11 (from -r /mount/src/chatbot-ia/requirements.txt (line 10))

Downloading idna-3.11-py3-none-any.whl.metadata (8.4 kB)

Collecting Jinja2==3.1.6 (from -r /mount/src/chatbot-ia/requirements.txt (line 11))

Downloading jinja2-3.1.6-py3-none-any.whl.metadata (2.9 kB)

Collecting joblib==1.5.2 (from -r /mount/src/chatbot-ia/requirements.txt (line 12))

Downloading joblib-1.5.2-py3-none-any.whl.metadata (5.6 kB)

Collecting jsonschema==4.25.1 (from -r /mount/src/chatbot-ia/requirements.txt (line 13))

Downloading jsonschema-4.25.1-py3-none-any.whl.metadata (7.6 kB)

Collecting jsonschema-specifications==2025.9.1 (from -r /mount/src/chatbot-ia/requirements.txt (line 14))

Downloading jsonschema_specifications-2025.9.1-py3-none-any.whl.metadata (2.9 kB)

Collecting MarkupSafe==3.0.3 (from -r /mount/src/chatbot-ia/requirements.txt (line 15))

Downloading markupsafe-3.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (2.7 kB)

Collecting narwhals==2.10.2 (from -r /mount/src/chatbot-ia/requirements.txt (line 16))

Downloading narwhals-2.10.2-py3-none-any.whl.metadata (11 kB)

Collecting nltk==3.9.2 (from -r /mount/src/chatbot-ia/requirements.txt (line 17))

Downloading nltk-3.9.2-py3-none-any.whl.metadata (3.2 kB)

Collecting numpy==2.0.2 (from -r /mount/src/chatbot-ia/requirements.txt (line 18))

Downloading numpy-2.0.2.tar.gz (18.9 MB)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.9/18.9 MB 168.0 MB/s eta 0:00:00[2025-11-10 18:17:51.597027]

Installing build dependencies: started

Installing build dependencies: finished with status 'done'

Getting requirements to build wheel: started

Getting requirements to build wheel: finished with status 'done'

Installing backend dependencies: started

Installing backend dependencies: finished with status 'done'

Preparing metadata (pyproject.toml): started

[19:03:17] ❗️ installer returned a non-zero exit code

[19:03:17] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.

[19:03:17] 🐙 Pulling code changes from Github...

[19:03:17] 📦 Processing dependencies...

[19:49:04] ❗️ installer returned a non-zero exit code

Require a more recent scipy or use an older python.