First time here? Check out the FAQ!
1

Problems running "collectstatic" on Mac OS
 

I'm using a Mac OS(El Capitan), Python 2.7 and AskBot source code from the master branch (last commit was this)!

I run into the following problem when executing python manage.py collectstatic for the first time after setting the system up as described HERE.

Traceback (most recent call last):
File "manage.py", line 10, in <module>
(...)
ImportError: dlopen([MY_PATH]/python2.7/site-packages/PIL/_imaging.so, 2): Symbol not found: _clock_gettime
Referenced from: [MY_PATH]/python2.7/site-packages/PIL/.dylibs/liblzma.5.dylib (which was built for Mac OS X 10.12)

After going crazy about it, I found HERE that there is a problem with the Pillow 5.1.0 version that is installed by default (it is not specified in the current requirements file). I'll post the solution in an answer just to make it easier for people to propose other solutions in the future.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Nigini A. Oliveira's avatar
111
Nigini A. Oliveira
asked 6 years ago, updated 6 years ago

Comments

see more comments

1 Answer

1

The solution it to force installing the previous version of the Pillow package:

pip install --force-reinstall Pillow==5.0.0

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Nigini A. Oliveira's avatar
111
Nigini A. Oliveira
answered 6 years ago
link

Comments

see more comments