From c86c7f5a1c3f8afc52f94883c5ab88650050290d Mon Sep 17 00:00:00 2001 From: Jason Harmon Date: Thu, 23 Jul 2015 16:54:58 -0500 Subject: [PATCH 1/4] pip PIL installation issues --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 985c019..d0cf6a8 100644 --- a/README.md +++ b/README.md @@ -50,9 +50,10 @@ Please note: I am not extremely well-versed in Python. I have been playing with Installation: ===== -* Place the file wherever you like and chmod +x it to make it executable +* Place the file wherever you like and `chmod +x` it to make it executable * Ensure you have Python installed (default for Ubuntu) and the PIL and lxml packages: -* pip install -f requirements.txt or sudo apt-get install python-imaging python-lxml +* `pip install -f requirements.txt` or `sudo apt-get install python-imaging python-lxml` + * pip may have trouble installing PIL, if so run `pip install PIL --allow-external PIL --allow-unverified PIL` * Set the defaults in the file Defaults: From d34a3eb2b4be7eef6f9d954382cffbd770dd0815 Mon Sep 17 00:00:00 2001 From: Jason Harmon Date: Thu, 23 Jul 2015 17:02:39 -0500 Subject: [PATCH 2/4] Install issues with lxml At least on Debian 8, all of the packages here had to be installed in order for pip to compile successfully. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d0cf6a8..563d64e 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Installation: ===== * Place the file wherever you like and `chmod +x` it to make it executable * Ensure you have Python installed (default for Ubuntu) and the PIL and lxml packages: -* `pip install -f requirements.txt` or `sudo apt-get install python-imaging python-lxml` +* `pip install -f requirements.txt` or `sudo apt-get install python-imaging python-lxml python-lxml-dbg libxml2-dev libxslt1-dev python-dev` * pip may have trouble installing PIL, if so run `pip install PIL --allow-external PIL --allow-unverified PIL` * Set the defaults in the file From 81cea26164e2ed3f583a8731fc728c1505a8410a Mon Sep 17 00:00:00 2001 From: Jason Harmon Date: Thu, 23 Jul 2015 17:31:26 -0500 Subject: [PATCH 3/4] Adding virtualenv install issues --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 563d64e..ebb5883 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Installation: * `pip install -f requirements.txt` or `sudo apt-get install python-imaging python-lxml python-lxml-dbg libxml2-dev libxslt1-dev python-dev` * pip may have trouble installing PIL, if so run `pip install PIL --allow-external PIL --allow-unverified PIL` * Set the defaults in the file - + * If installing in `virtualenv`, use `pip install ruamel.venvgtk` if you get errors related to `glib` Defaults: ===== While the script will detect as much as possible and has safe defaults, you may want to set your own. From 2ee44c69a96087122dcc180ae00943e8ec45b8fb Mon Sep 17 00:00:00 2001 From: Jason Harmon Date: Thu, 23 Jul 2015 17:32:30 -0500 Subject: [PATCH 4/4] Pillow needed in order to satisfy PIL jpeg resize --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 8c722e5..78331fa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ PIL==1.1.7 lxml==2.3.6 +pillow==2.9.0