andreyfedoseev / django-static-precompiler

Django Static Precompiler provides template tags and filters to compile CoffeeScript, LiveScript, SASS / SCSS, LESS, Stylus, Babel and Handlebars. It works with both inline code and external files.
Other
222 stars 60 forks source link

Cannot run compiler in Travis build. #119

Closed Tomasz-Kluczkowski closed 6 years ago

Tomasz-Kluczkowski commented 6 years ago

Hi,

Any chance you tried to compile scss when doing a Travis CI build? When I run it with: python manage.py compilestatic --settings=<my_proj>.test_settings The build sticks and throws an error: FileNotFoundError: [Errno 2] No such file or directory: 'sass': 'sass' The same command works absolutely fine on local virtual environment and when using tox locally.

andreyfedoseev commented 6 years ago

It seems you don't have SASS installed in your Travis environment. If it is installed, make sure you specify correct path to sass executable (see http://django-static-precompiler.readthedocs.io/en/stable/compiler-settings.html#sass-scss)

Tomasz-Kluczkowski commented 6 years ago

Thx a lot Andrey!

That was it. gem install sass did it. I was falsely thinking that your package does not require sass preinstalled :).

Do you think it would be a good idea for me to create a docs pull request with a small note added to how to use section reminding new users (like me) that a preinstalled sass is required for django-static-precompiler to work?

Take care,

Tomasz

On 18 Jun 2018, at 05:43, Andrey Fedoseev notifications@github.com<mailto:notifications@github.com> wrote:

It seems you don't have SASS installed in your Travis environment. If it is installed, make sure you specify correct path to sass executable (see http://django-static-precompiler.readthedocs.io/en/stable/compiler-settings.html#sass-scsshttps://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdjango-static-precompiler.readthedocs.io%2Fen%2Fstable%2Fcompiler-settings.html%23sass-scss&data=02%7C01%7C%7C0ef2f212812a41f482c608d5d4d60625%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636648938039939870&sdata=DbXkzSe4YkA2DXtvaBZjIv1Sw%2BaES5PSmMmdXQ4%2B2L8%3D&reserved=0)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fandreyfedoseev%2Fdjango-static-precompiler%2Fissues%2F119%23issuecomment-397940564&data=02%7C01%7C%7C0ef2f212812a41f482c608d5d4d60625%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636648938040096128&sdata=UmJ7jEgssEDjwZxZltmDYna90LB4lMUYe%2FDO3ol90E8%3D&reserved=0, or mute the threadhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAY1UaZ0b9NAJ9yGHhMNkmAc_jdaPvxAdks5t9y_qgaJpZM4UrAi4&data=02%7C01%7C%7C0ef2f212812a41f482c608d5d4d60625%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636648938040096128&sdata=Qsq5UI3w819TR7ICoNsZ9WVIzZtwpD6YV99dHoxkoJM%3D&reserved=0.

andreyfedoseev commented 6 years ago

Do you think it would be a good idea for me to create a docs pull request with a small note added to how to use section reminding new users (like me) that a preinstalled sass is required for django-static-precompiler to work?

Yes, I think it's good idea if it would allow to avoid such confusion in the future. Note that SASS isn't the only transpiler supported by django-static-precompiler, so if you want to update the documentation make sure to mention other transpilers as well.