lemonsaurus / django-simple-bulma

Django application to add the Bulma CSS framework and its extensions
MIT License
137 stars 17 forks source link

AttributeError: module 'sass' has no attribute 'compile' #13

Closed oguzhanogreden closed 5 years ago

oguzhanogreden commented 5 years ago

Hi,

You attend to one issue so quickly, you get one more... :-)

If sass is installed next to libsass, this error is raised in finders.py line 57 (also see). This is clearly not your fault and a I can imagine a reliable solution in the app being cumbersome.

Maybe a note in the Readme file would do it? This would help those of use who are not very well versed in web technologies.

Thanks, Oguzhan

lemonsaurus commented 5 years ago

I'll leave a note in the readme, and I'll also make collectstatic crash with an error explaining why this happens. Something like this:

UserWarning: There was an error compiling your Bulma CSS. This error is probably caused by having the `sass` module installed.
Please ensure you have only the `libsass` module installed, not both `sass` and `libsass`, or this application will not work.
lemonsaurus commented 5 years ago

@oguzhanogreden Okay, solved in v1.1.2, which is live now on https://pypi.org/project/django-simple-bulma/.

I've added a note in the Troubleshooting section of the readme, and I've also made the error you're gonna get if you try to run collectstatic while sass is installed less cryptic and more informative.

lemonsaurus commented 5 years ago

And again, thanks for reporting the bug to us. :+1: