1.28.74
ошибка:
fastapi | ModuleNotFoundError: No module named 'boto3'
fastapi | [2023-10-31 11:07:20 +0000] [11] [INFO] Worker exiting (pid: 11)
fastapi | [2023-10-31 11:07:20 +0000] [9] [ERROR] Worker (pid:10) exited with code 3
fastapi | [2023-10-31 11:07:20 +0000] [9] [ERROR] Worker (pid:11) was sent SIGTERM!
fastapi | [2023-10-31 11:07:21 +0000] [9] [ERROR] Shutting down: Master
fastapi | [2023-10-31 11:07:21 +0000] [9] [ERROR] Reason: Worker failed to boot.
почему так?
Разные питоны небось
да нет, в venv все делаю
Покажи python -m pip list
(venv) λ fedora new_sc → λ git minio* → python -m pip list Package Version --------------------------- --------- alembic 1.10.4 amqp 5.1.1 anyio 3.6.2 asyncpg 0.27.0 bcrypt 4.0.1 billiard 3.6.4.0 boto3 1.28.74 botocore 1.31.74 celery 5.2.7 certifi 2022.12.7 cffi 1.15.1 click 8.1.3 click-didyoumean 0.3.0 click-plugins 1.1.1 click-repl 0.2.0 cryptography 40.0.2 dnspython 2.3.0 ecdsa 0.18.0 email-validator 1.3.1 fastapi 0.95.1 fastapi-jwt-auth 0.5.0 fastapi-users 11.0.0 fastapi-users-db-sqlalchemy 5.0.0 flake8 6.1.0 flower 1.2.0 greenlet 2.0.2 gunicorn 21.1.0 h11 0.14.0 httpcore 0.17.0 httptools 0.5.0 httpx 0.24.0 humanize 4.6.0 idna 3.4 itsdangerous 2.1.2 Jinja2 3.1.2 jmespath 1.0.1 jose 1.0.0 kombu 5.2.4 makefun 1.15.1 Mako 1.2.4 MarkupSafe 2.1.2 mccabe 0.7.0 orjson 3.8.10 packaging 23.1 passlib 1.7.4 pip 23.2.1 prometheus-client 0.17.0 prompt-toolkit 3.0.38 pyasn1 0.5.0 pycodestyle 2.11.1 pycparser 2.21 pydantic 1.10.7 pyflakes 3.1.0 PyJWT 1.7.1 python-dateutil 2.8.2 python-dotenv 1.0.0 python-jose 3.3.0 python-multipart 0.0.6 pytz 2023.3 PyYAML 6.0 redis 4.5.5 rsa 4.9 s3transfer 0.7.0 setuptools 62.6.0 six 1.16.0 sniffio 1.3.0 SQLAlchemy 2.0.19 starlette 0.26.1 tornado 6.3.2 typing_extensions 4.5.0 ujson 5.7.0 urllib3 2.0.7 uvicorn 0.21.1 uvloop 0.17.0 vine 5.0.0 watchfiles 0.19.0 wcwidth 0.2.6 websockets 11.0.1 XlsxWriter 3.1.2
А запускаешь свой фастапи какой командой?
gunicorn app.main:app --workers 2 --worker-class uvicorn.workers.UvicornWorker --bind=0.0.0.0:8000
which gunicorn покажи
(venv) λ fedora new_sc → λ git minio* → which gunicorn ~/middletest/venv/bin/gunicorn
Этот тот же венв или другой?
вот мой проект сейчас (venv) λ fedora new_sc → λ git minio* → which gunicorn ~/middletest/venv/bin/gunicorn гуникорн не от сюда походу
нет, другой
Обсуждают сегодня