It looks like the problem here is a multithreading or multiprocess issue with file system access in django_pyscss/scss.py at line 161. It appears that django_pyscss is just ensuring the assets directory is created and fails with the obvious threading issue. I am surprised this happens so frequently.
Still, as a workaround I propose we just create the directory ourselves early in Horizon code by repeating the directory check/creation and ignoring any exceptions. If there is a legitimate failure (like from directory permissions or space issues) the problem will be rediscovered in the django_pyscss code and a meaningful exception can be thrown.
I think this issue is actually unrelated to https:/ /bugs.launchpad .net/horizon/ +bug/1345955
It looks like the problem here is a multithreading or multiprocess issue with file system access in django_ pyscss/ scss.py at line 161. It appears that django_pyscss is just ensuring the assets directory is created and fails with the obvious threading issue. I am surprised this happens so frequently.
Still, as a workaround I propose we just create the directory ourselves early in Horizon code by repeating the directory check/creation and ignoring any exceptions. If there is a legitimate failure (like from directory permissions or space issues) the problem will be rediscovered in the django_pyscss code and a meaningful exception can be thrown.