Ask Your Question

Problems running "collectstatic" on Mac OS

asked 2018-06-10 20:20:40 -0500

updated 2018-06-10 20:23:12 -0500

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 collectstatic for the first time after setting the system up as described HERE.

Traceback (most recent call last):
File "", line 10, in <module>
ImportError: dlopen([MY_PATH]/python2.7/site-packages/PIL/, 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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-06-10 20:21:52 -0500

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

pip install --force-reinstall Pillow==5.0.0
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-06-10 20:20:40 -0500

Seen: 1,629 times

Last updated: Jun 10 '18