From 046438525ca58f41e90484c2391f095b883cb2f8 Mon Sep 17 00:00:00 2001 From: jspearritt Date: Mon, 15 Apr 2024 15:53:35 +0900 Subject: [PATCH 1/2] Bump pyyaml 6.0 -> 6.0.1 to avoid install issue --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 9cd71674..d7db4c20 100644 --- a/requirements.txt +++ b/requirements.txt @@ -53,7 +53,7 @@ pytest-asyncio==0.16.0 python-dateutil==2.8.2 python-dotenv==0.19.2 pytz==2021.3 -PyYAML==6.0 +PyYAML==6.0.1 requests==2.27.1 scipy==1.12.0 selenium==4.1.0 From 2aee00a4b9c9ec6c099117d81d27655e84b6e50d Mon Sep 17 00:00:00 2001 From: jspearritt Date: Mon, 15 Apr 2024 16:06:25 +0900 Subject: [PATCH 2/2] Bump pillow version to one which builds on macos ARM --- docs/running/RUNNING_DIRECTLY.md | 20 +++++++++----------- requirements.txt | 2 +- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/docs/running/RUNNING_DIRECTLY.md b/docs/running/RUNNING_DIRECTLY.md index 9dbb6dc8..dfb983ab 100644 --- a/docs/running/RUNNING_DIRECTLY.md +++ b/docs/running/RUNNING_DIRECTLY.md @@ -13,28 +13,26 @@ simpler, you can run the bot on your server or local system. ### System dependencies -You will need Postgres dev tools installed in order to be able to install the -`psycopg2` Python dependency; these are also useful to be able to e.g. `psql` to -your database. +You will need a couple of specific system packages installed: +* `libpq` as a dependency of the `psycopg2` pip package +* `libjpeg-dev` as a dependency of the `Pillow` pip package + * (this is only here as a dependency of scipy, which is only used in the plotting script and not the running app) -You can do this on various operating syste +You can install these on various OSes as described below: -Postgres is the new preferred way of doing development. To install `psycopg2` -you'll need to install `libpq`. - -#### Ubuntu +#### Ubuntu (or Ubuntu WSL) ``` -sudo apt-get install libpq-dev +sudo apt-get install libpq-dev libjpeg-dev ``` #### Arch linux ``` -pacman -S postgresql-libs +pacman -S postgresql-libs libjpeg-turbo ``` #### MacOS ``` -brew install postgresql +brew install postgresql jpeg ``` ### Python dependencies diff --git a/requirements.txt b/requirements.txt index d7db4c20..6ed9a65f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -39,7 +39,7 @@ outcome==1.1.0 packaging==21.3 pandas==2.2.0 pathspec==0.9.0 -Pillow==9.0.1 +Pillow==10.3.0 platformdirs==2.4.0 pluggy==1.0.0 pre-commit==2.16.0