apprunner-roadmap icon indicating copy to clipboard operation
apprunner-roadmap copied to clipboard

Bugs about downloading pysqlite3

Open jiangzizi opened this issue 7 months ago • 0 comments

Here is my apprunner.yaml

version: 1.0
runtime: python3
build:
  commands:
    build:
      - yum install -y gcc gcc-c++ make
      - yum install -y python3-devel python3-dev
      - pip install --upgrade pip
      - pip install -r requirements.txt
run:
  runtime-version: 3.8.16
  command: sh startup.sh
  network:
    port: 8000

And here is my requirements.txt

annotated-types==0.7.0
anyio==4.5.2
asgiref==3.8.1
backports.zoneinfo==0.2.1
cachetools==5.5.2
certifi==2025.4.26
Django==4.2.20
exceptiongroup==1.2.2
gunicorn==20.1.0
h11==0.16.0
httpcore==1.0.9
httpx==0.28.1
idna==3.10
pydantic==2.10.6
pydantic_core==2.27.2
PyJWT==2.8.0
PyMySQL==1.1.1
pysqlite3==0.5.4
pytz==2025.2
sniffio==1.3.1
sqlparse==0.5.3
typing_extensions==4.13.2
whitenoise==6.4.0
zhipuai==2.1.5.20250421

I think I do all things right, but I got

05-07-2025 04:04:23 PM [Build] Building wheels for collected packages: pysqlite3
05-07-2025 04:04:23 PM [Build]   Building wheel for pysqlite3 (pyproject.toml): started
05-07-2025 04:04:23 PM [Build]   Building wheel for pysqlite3 (pyproject.toml): finished with status 'error'
05-07-2025 04:04:23 PM [Build] [91m  error: subprocess-exited-with-error
05-07-2025 04:04:23 PM [Build]   × Building wheel for pysqlite3 (pyproject.toml) did not run successfully.
05-07-2025 04:04:23 PM [Build]   │ exit code: 1
05-07-2025 04:04:23 PM [Build]   ╰─> [17 lines of output]
05-07-2025 04:04:23 PM [Build]       running bdist_wheel
05-07-2025 04:04:23 PM [Build]       running build
05-07-2025 04:04:23 PM [Build]       running build_py
05-07-2025 04:04:23 PM [Build]       creating build/lib.linux-x86_64-cpython-38/pysqlite3
05-07-2025 04:04:23 PM [Build]       copying pysqlite3/__init__.py -> build/lib.linux-x86_64-cpython-38/pysqlite3
05-07-2025 04:04:23 PM [Build]       copying pysqlite3/dbapi2.py -> build/lib.linux-x86_64-cpython-38/pysqlite3
05-07-2025 04:04:23 PM [Build]       running build_ext
05-07-2025 04:04:23 PM [Build]       Builds a C extension linking against libsqlite3 library
05-07-2025 04:04:23 PM [Build]       building 'pysqlite3._sqlite3' extension
05-07-2025 04:04:23 PM [Build]       creating build/temp.linux-x86_64-cpython-38/src
05-07-2025 04:04:23 PM [Build]       gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DMODULE_NAME=\"pysqlite3.dbapi2\" -I/usr/include -I/usr/include/python3The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1
05-07-2025 04:04:23 PM [Build]       In file included from src/blob.c:1:0:
05-07-2025 04:04:23 PM [Build]       src/blob.h:3:10: fatal error: Python.h: No such file or directory
05-07-2025 04:04:23 PM [Build]        #include "Python.h"
05-07-2025 04:04:23 PM [Build]                 ^~~~~~~~~~
05-07-2025 04:04:23 PM [Build]       compilation terminated.
05-07-2025 04:04:23 PM [Build]       error: command '/usr/bin/gcc' failed with exit code 1
05-07-2025 04:04:23 PM [Build]       [end of output]
05-07-2025 04:04:23 PM [Build]   note: This error originates from a subprocess, and is likely not a problem with pip.
05-07-2025 04:04:23 PM [Build] [0m[91m  ERROR: Failed building wheel for pysqlite3
05-07-2025 04:04:23 PM [Build] [0mFailed to build pysqlite3
05-07-2025 04:04:23 PM [Build] [91mERROR: Failed to build installable wheels for some pyproject.toml based projects (pysqlite3)
05-07-2025 04:04:23 PM [Build] [0m
05-07-2025 04:04:27 PM [AppRunner] Failed to build your application source code. Reason: Failed to execute 'build' command.
05-07-2025 04:04:30 PM [AppRunner] Failed to deploy your application source code.

jiangzizi avatar May 07 '25 08:05 jiangzizi