| | 102 | |
| | 103 | == Frequent problems and workarounds == |
| | 104 | |
| | 105 | === PIL / image processing === |
| | 106 | |
| | 107 | If the PIL installation stops with an error saying: "expected ‘{’ at end of input", |
| | 108 | then you are missnig the python-dev (or your distro equivalent) package. Install it and repeat the previous step. |
| | 109 | |
| | 110 | When installing PIL you should look at the first lines of the compilation output. It should read something like: |
| | 111 | |
| | 112 | {{{ |
| | 113 | --- JPEG support available |
| | 114 | --- ZLIB (PNG/ZIP) support available |
| | 115 | --- FREETYPE2 support available |
| | 116 | }}} |
| | 117 | |
| | 118 | If support for jpeg, png or freetype are not available PIL will install all the same but Cyclope will fail to process images properly. |
| | 119 | |
| | 120 | If you are getting errors when displaying captchas or thumbnails this is probably your problem. You need to install the missing libraries for PIL to work properly. |
| | 121 | After installing the libraries (for jpeg, zlib and freetype2) you will need to uninstall PIL: |
| | 122 | {{{ |
| | 123 | # pip uninstall PIL |
| | 124 | }}} |
| | 125 | |
| | 126 | And re-install again. Don't forget to check for the correct compilation output. |
| | 127 | |
| | 128 | {{{ |
| | 129 | # pip install PIL |
| | 130 | }}} |
| | 131 | |
| | 132 | |
| | 133 | ---- |