Getting error during python app deployment, need help resolving
TC ] Logs for stratifyy.streamlit.app/
────────────────────────────────────────────────────────────────────────────────────────
[00:51:41] 🖥 Provisioning machine...
[00:51:41] 🎛 Preparing system...
[00:51:41] ⛓ Spinning up manager process...
[00:51:43] 🚀 Starting up repository: 'swing-trade-scoring-platform', branch: 'main', main module: 'streamlit_app.py'
[00:51:43] 🐙 Cloning repository...
[00:51:43] 🐙 Cloning into '/mount/src/swing-trade-scoring-platform'...
[00:51:43] 🐙 Cloned repository!
[00:51:43] 🐙 Pulling code changes from Github...
[00:51:44] 📦 Processing dependencies...
──────────────────────────────────────── uv ───────────────────────────────────────────
Using uv pip install.
Using Python 3.13.9 environment at /home/adminuser/venv
Resolved 58 packages in 1.68s
× Failed to download and build `scipy==1.11.3`[2025-10-29 00:52:09.423240]
╰─▶ Build backend failed to build wheel through `[2025-10-29 00:52:09.424296] build_wheel[2025-10-29 00:52:09.424634] ` (exit status:
1)
[2025-10-29 00:52:09.424972] [stdout][2025-10-29 00:52:09.425411]
+ meson setup
/home/adminuser/.cache/uv/sdists-v6/pypi/scipy/1.11.3/JGwL3R2swAgmxwgd0hzsV/src
/home/adminuser/.cache/uv/sdists-v6/pypi/scipy/1.11.3/JGwL3R2swAgmxwgd0hzsV/src/.mesonpy-tfizaomg
-Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md
--native-file=/home/adminuser/.cache/uv/sdists-v6/pypi/scipy/1.11.3/JGwL3R2swAgmxwgd0hzsV/src/.mesonpy-tfizaomg/meson-python-native-file.ini
The Meson build system
Version: 1.9.1
Source dir:
/home/adminuser/.cache/uv/sdists-v6/pypi/scipy/1.11.3/JGwL3R2swAgmxwgd0hzsV/src
Build dir:
/home/adminuser/.cache/uv/sdists-v6/pypi/scipy/1.11.3/JGwL3R2swAgmxwgd0hzsV/src/.mesonpy-tfizaomg
Build type: native build
Project name: SciPy
Project version: 1.11.3
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 0.29.37)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES
(/home/adminuser/.cache/uv/builds-v0/.tmpTEF3hc/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/.tmpTEF3hc/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:82: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.11.3/JGwL3R2swAgmxwgd0hzsV/src/.mesonpy-tfizaomg/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 79ms
Prepared 1 package in 45ms
Installed 4 packages in 35ms
+ markdown-it-py==4.0.0
+ [2025-10-29 00:52:09.717372] mdurl==0.1.2
+ pygments==2.19.2
+ rich==14.2.0
────────────────────────────────────────────────────────────────────────────────────────
──────────────────────────────────────── pip ───────────────────────────────────────────
Using standard pip install.
Collecting streamlit==1.28.0 (from -r /mount/src/swing-trade-scoring-platform/requirements.txt (line 1))
Downloading streamlit-1.28.0-py2.py3-none-any.whl.metadata (8.1 kB)
Collecting pandas==2.1.1 (from -r /mount/src/swing-trade-scoring-platform/requirements.txt (line 2))
Downloading pandas-2.1.1.tar.gz (4.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.3/4.3 MB 60.9 MB/s eta 0:00:00[2025-10-29 00:52:12.560926]
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
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [105 lines of output]
+ meson setup /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21 /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/.mesonpy-kvmsx23_/build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=/tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/.mesonpy-kvmsx23_/build/meson-python-native-file.ini
The Meson build system
Version: 1.2.1
Source dir: /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21
Build dir: /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/.mesonpy-kvmsx23_/build
Build type: native build
Project name: pandas
Project version: 2.1.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 0.29.37)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (/home/adminuser/venv/bin/python)
Did not find pkg-config by name 'pkg-config'
Found Pkg-config: NO
Run-time dependency python found: YES 3.13
Build targets in project: 53
pandas 2.1.1
User defined options
Native files: /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/.mesonpy-kvmsx23_/build/meson-python-native-file.ini
buildtype : release
vsenv : True
b_ndebug : if-release
b_vscrt : md
Found ninja-1.13.0.git.kitware.jobserver-pipe-1 at /tmp/pip-build-env-xrhuxi2t/normal/bin/ninja
Visual Studio environment is needed to run Ninja. It is recommended to use Meson wrapper:
/tmp/pip-build-env-xrhuxi2t/overlay/bin/meson compile -C .
+ /tmp/pip-build-env-xrhuxi2t/normal/bin/ninja
[1/151] Generating pandas/_libs/algos_common_helper_pxi with a custom command
[2/151] Generating pandas/_libs/algos_take_helper_pxi with a custom command
[3/151] Generating pandas/_libs/khash_primitive_helper_pxi with a custom command
[4/151] Generating pandas/_libs/index_class_helper_pxi with a custom command
[5/151] Generating pandas/_libs/hashtable_class_helper_pxi with a custom command
[6/151] Generating pandas/_libs/hashtable_func_helper_pxi with a custom command
[7/151] Generating pandas/_libs/intervaltree_helper_pxi with a custom command
[8/151] Generating pandas/_libs/sparse_op_helper_pxi with a custom command
[9/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/tslibs/base.pyx
[10/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/tslibs/np_datetime.pyx
[11/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/tslibs/nattype.pyx
[12/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/tslibs/dtypes.pyx
[13/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/tslibs/ccalendar.pyx
[14/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/arrays.pyx
[15/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/tslibs/timezones.pyx
[16/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/indexing.pyx
[17/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/tslibs/conversion.pyx
[18/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/tslibs/vectorized.pyx
[19/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/tslibs/strptime.pyx
[20/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/tslibs/fields.pyx
[21/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/tslibs/parsing.pyx
[22/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/tslibs/period.pyx
[23/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/tslibs/timedeltas.pyx
[24/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/tslibs/offsets.pyx
[25/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/tslibs/tzconversion.pyx
[26/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/tslibs/timestamps.pyx
[27/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/missing.pyx
[28/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/ops_dispatch.pyx
[29/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/properties.pyx
[30/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/byteswap.pyx
[31/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/hashing.pyx
[32/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/internals.pyx
[33/151] Compiling C object pandas/_libs/tslibs/base.cpython-313-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o
FAILED: [code=1] pandas/_libs/tslibs/base.cpython-313-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o
cc -Ipandas/_libs/tslibs/base.cpython-313-x86_64-linux-gnu.so.p -Ipandas/_libs/tslibs -I../../pandas/_libs/tslibs -I../../../../pip-build-env-xrhuxi2t/overlay/lib/python3.13/site-packages/numpy/_core/include -I../../pandas/_libs/include -I/usr/local/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -w -std=c99 -O3 -DNPY_NO_DEPRECATED_API=0 -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -fPIC -MD -MQ pandas/_libs/tslibs/base.cpython-313-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o -MF pandas/_libs/tslibs/base.cpython-313-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o.d -o pandas/_libs/tslibs/base.cpython-313-x86_64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o -c pandas/_libs/tslibs/base.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/tslibs/base.pyx.c
pandas/_libs/tslibs/base.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/tslibs/base.pyx.c: In function ‘__Pyx_PyInt_As_long’:
pandas/_libs/tslibs/base.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/tslibs/base.pyx.c:5397:27: error: too few arguments to function ‘_PyLong_AsByteArray’
5397 | int ret = _PyLong_AsByteArray((PyLongObject *)v,
| ^~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/python3.13/longobject.h:107,
from /usr/local/include/python3.13/Python.h:82,
from pandas/_libs/tslibs/base.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/tslibs/base.pyx.c:6:
/usr/local/include/python3.13/cpython/longobject.h:111:17: note: declared here
111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
| ^~~~~~~~~~~~~~~~~~~
pandas/_libs/tslibs/base.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/tslibs/base.pyx.c: In function ‘__Pyx_PyInt_As_int’:
pandas/_libs/tslibs/base.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/tslibs/base.pyx.c:5631:27: error: too few arguments to function ‘_PyLong_AsByteArray’
5631 | int ret = _PyLong_AsByteArray((PyLongObject *)v,
| ^~~~~~~~~~~~~~~~~~~
/usr/local/include/python3.13/cpython/longobject.h:111:17: note: declared here
111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
| ^~~~~~~~~~~~~~~~~~~
[34/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/ops.pyx
[35/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/testing.pyx
[36/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/index.pyx
[37/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/sas.pyx
[38/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/parsers.pyx
[39/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/window/indexers.pyx
[40/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/reshape.pyx
[41/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/lib.pyx
[42/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/writers.pyx
[43/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/tslib.pyx
[44/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/window/aggregations.pyx
[45/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/interval.pyx
[46/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/sparse.pyx
[47/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/algos.pyx
[48/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/join.pyx
[49/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/hashtable.pyx
[50/151] Compiling Cython source /tmp/pip-install-kk2en143/pandas_f81ce53373034972a04d3df376215c21/pandas/_libs/groupby.pyx
ninja: build stopped: subcommand failed.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[notice] A new release of pip is available: 24.0 -> 25.3
[notice] To update, run: pip install --upgrade pip
Checking if Streamlit is installed
Installing rich for an improved exception logging
Using standard pip install.
Collecting rich>=10.14.0
Downloading rich-14.2.0-py3-none-any.whl.metadata (18 kB)
Collecting markdown-it-py>=2.2.0 (from rich>=10.14.0)
Downloading markdown_it_py-4.0.0-py3-none-any.whl.metadata (7.3 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich>=10.14.0)
Downloading pygments-2.19.2-py3-none-any.whl.metadata (2.5 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=10.14.0)
Downloading mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
Downloading rich-14.2.0-py3-none-any.whl (243 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 243.4/243.4 kB 9.7 MB/s eta 0:00:00[2025-10-29 00:52:48.088973]
Downloading markdown_it_py-4.0.0-py3-none-any.whl (87 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.3/87.3 kB 129.5 MB/s eta 0:00:00[2025-10-29 00:52:48.105148]
Downloading pygments-2.19.2-py3-none-any.whl (1.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 66.3 MB/s eta 0:00:00[2025-10-29 00:52:48.139281]
Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Installing collected packages: pygments, mdurl, markdown-it-py, rich
Attempting uninstall: pygments
Found existing installation: Pygments 2.19.2
Uninstalling Pygments-2.19.2:
Successfully uninstalled Pygments-2.19.2
Attempting uninstall: mdurl
Found existing installation: mdurl 0.1.2
Uninstalling mdurl-0.1.2:
Successfully uninstalled mdurl-0.1.2
Attempting uninstall: markdown-it-py
Found existing installation: markdown-it-py 4.0.0
Uninstalling markdown-it-py-4.0.0:
Successfully uninstalled markdown-it-py-4.0.0
Attempting uninstall: rich
Found existing installation: rich 14.2.0
Uninstalling rich-14.2.0:
Successfully uninstalled rich-14.2.0
Successfully installed markdown-it-py-4.0.0 mdurl-0.1.2 pygments-2.19.2 rich-14.2.0
[notice] A new release of pip is available: 24.0 -> 25.3
[notice] To update, run: pip install --upgrade pip