You need mysqlclient installed. sudo apt-get install libmysqlclient-dev or brew install mysql-client
or whatever.
pip install virtualenvcd /path/to/projectvirtualenv .venv --python=python3.10source .venv/bin/activatepip install pipenvpipenv install"UserWarning: Unknown distribution option: 'descriptions'" when installing uwsgi?LDFLAGS=-fno-lto pip install uwsgi, then repeatexport TELEGRAM_TOKEN=...export OWNER_TELEGRAM_ID=...export DB_HOST=127.0.0.1export DB_NAME=fatbotexport DB_USER=fatbotexport DB_PASSWORD=fatbotalembic upgrade headpython fatbot.py
docker compose exec mysql mysql -uroot -prootCREATE USER 'fatbot'@'192.168.%' IDENTIFIED BY 'fatbot';GRANT ALL ON fatbot.* to fatbot@'192.168.%';
alembic revision -m "revisionname"
alembic upgrade head
alembic downgrade -1
pipenv install --devalembic upgrade headpytest
cp .env.example .envnano .envsudo cp fatbot.service.example /etc/systemd/system/fatbot.servicesudo nano /etc/systemd/system/fatbot.servicesudo systemctl daemon-reloadsudo systemctl start fatbotsudo systemctl enable fatbotsudo visudo- add
yakninja ALL=(ALL:ALL) NOPASSWD: /bin/systemctl start fatbot, /bin/systemctl stop fatbot, /bin/systemctl restart fatbot - see logs with
journalctl -f -u fatbot