I am trying to install odoo12 but getting this error like
AttributeError: module 'sass' has no attribute 'compile'.
I installed libsass python library which is required for odoo12 after installing thar error happened
please, anyone help.
try doing pip freeze | grep sass if the output lists the sass module next to libsass this is the problem. removing sass (and optionally reinstalling libsass) should fix the problem.
Related
I am starting a new project using materializecss. I wanted to use the Sass setup but when I run: gem 'materialize-sass' I get the following error.
ERROR: While executing gem ... (Gem::CommandLineError)
Unknown command materialize-sass
I have ruby installed as I use Sass on a daily basis so I am not exactly sure what the issue is here.
Any help would be greatly appreciated.
I have a similar issue, but not quite the same.
It looks like you need the gem installed first.
Run
gem install materialize-sass
-to install seperately, as per https://github.com/mkhairi/materialize-sass
I'm beginning to set up a Jekyll site and I've installed everything and copied the contents of this theme into the site's directory. I've installed Pygments via the gem install pygments.rb command and it seemed to install fine. But I'm still getting the error from my screenshot below when trying jekyll serve . I found this post and tried the commands in the given answer, installing pygments worked fine, but when I tried gem 'pygments.rb' I got the error in the first line of the screenshot "Unknown command pygments.rb".
I'm running this command in the directory with my gemfile, so I'm not sure what the problem is.
I'm not really sure what else I can try. I've installed pygments but I still get the error that it is not installed. I am using rbenv to manage my Ruby versions, I have the global ruby version set to 2.0.0-p247. Any ideas how I can fix this?
Edit: So I followed the theme's install guide, but I'm getting the same error except for Kramdown:
Conversion error: Jekyll::Converters::Markdown encountered an error while converting '_posts/2016-01-08-welcome-to-jekyll.markdown':
Missing dependency: kramdown
ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
Missing dependency: kramdown
If you read theme's install steps, your not supposed to battle with any pygments install.
Here are two working ways for a Jekyll install :
http://jekyllrb.com/docs/quickstart/
https://help.github.com/articles/using-jekyll-with-pages/#installing-jekyll
I recently downloaded OSX Yosemite and now grunt-contrib-sass is not working and I am getting the error:
Running "sass:dist" (sass) task
Warning: spawn ENOENT Use --force to continue.
Aborted due to warnings.
I'm not a grunt expert, do I need to reinstall any plugins or something else? I'm happy to provide any other information if needed. Thanks.
Adding it as an answer here from comments above for posterity.
That error usually means Sass isn't installed. Run gem install sass to install it.
For me, it kept failing to install, so ran gem install sass --debug --backtrace --verbose and that fixed the no implicit conversion of nil into String (TypeError) install error.
I noticed that running compass directly threw an exception, so I uninstalled compass and reinstalled it (making sure to delete all compass binaries on PATH) and that fixed it.
I've been using Sass 3.2.13.
I want to try out the sourcemap generation in 3.3, so I installed 3.3.
'gem list | grep sass' returns
sass (3.3.0.rc.5, 3.2.14)
I would like to invoke sass 3.3 from the commandline. I'm not using sass from a within a ruby project.
I discovered that format should work:
gem_name __versionNum__ --opts
So, I've tried this:
sass _3.3.0.rc.5_ --watch --sourcemap sass/site.sass: css/site2.css
The resulting stack trace returns
"Could not find sass (= 3.3.0.rc.5)..."
I've tried variations, like 3.3.0, 3.3, but these return stack traces with the same message about not being able to find the specified version.
Turns out that I was calling the wrong 'sass' binary.
Instead of using my rbenv gem, I was using 'sass' from '/usr/local/bin'.
I've deleted system sass. Now when I call 'sass' I get the version offered by the gem I installed via rbenv.
Yes, I know I shouldn't be deleting system binaries. It's a dirty, dirty thing to do. In the desperate case of removing system ruby from ubuntu, I think the measure is justifiable.
I am having problems when creating a new compass project (Windows 7). I get this:
C:\>compass create a
create config.rb
Errno::EACCES on line ["891"] of C: Permission denied - (C:/a/config.rb20140321-6828-1g0ytlc, C:/a/config.rb)
Run with --trace to see the full backtrace
I have tried to start cmd with "Run as administrator", I have tried to delete compass, sass and ruby, and reinstalled without any luck. Anyone else having problems or know a solution to this irritating problem?
I was using the latest version (21.03.2014) of compass v.0.12.4...
Downgraded to v.0.12.2 everything worked fine!
Looks like a bug?
To downgrade:
$ gem uninstall compass
$ gem uninstall sass
$ gem install compass -v 0.12.2
$ gem install sass -v <rev>
Please update to Sass 3.2.18 and let me know if that fixes it.
Is this linked to
Compass/Sass writing files with "No Access" permissions for Everyone group on OSX?
If so, updating to 3.2.18 hasn't made a difference.
This has been resolved in Compass version 0.12.5
https://github.com/chriseppstein/compass/issues/1618