This question has been flagged
12 Replies
64564 Views

Hello

I am trying to install odoo12 but I am getting

odoo.addons.base.models.assetsbundle: Could not execute command 'sassc'This error occured while compiling the bundle 'web.assets_frontend' containing  this error.

I tried below solution but didn't get any result

https://www.odoo.com/forum/help-1/question/ubuntu-16-04-how-to-install-sass-for-odoo-123090

can anyone help?

Avatar
Discard
Best Answer



I had faced the same issue while installing odoo 12.

It was solved by typing ..

~# pip3 install libsass==0.12.3


Thanks...


iWesabe


Avatar
Discard
Best Answer

Hi Dyvia,

I followed the following steps and the problem has been solved

Download and install SassC and LibSass

cd /usr/local/lib/
sudo git clone https://github.com/sass/sassc.git --branch 3.2.1 --depth 1
sudo git clone https://github.com/sass/libsass.git --branch 3.2.1 --depth 1
Then add the path to /etc/environment
sudo nano /etc/environment
# Add this line to the end of the file
SASS_LIBSASS_PATH="/usr/local/lib/libsass"
# Flush the changes… source /etc/environment # Make sure it worked… echo $SASS_LIBSASS_PATH # Now you can make SassC… cd /usr/local/lib/sassc/ sudo make

Then update SassC

cd /usr/local/lib/sassc/
SASS_LIBSASS_PATH="/usr/local/lib/libsass"; sudo make

The final step is to make sure the sassc command is in your PATH by creating a symbolic link in /usr/local/bin/.

cd /usr/local/bin/
ln -s ../lib/sassc/bin/sassc sassc

Restart your odoo and open it in new incognito window

The steps in the following link with some changes I have made

http://crocodillon.com/blog/how-to-install-sassc-and-libsass-on-ubuntu

Regards,

Hazem

Avatar
Discard
Best Answer
1. pip3 install libsass==0.12.3


2.sudo apt update
sudo apt install sassc
Avatar
Discard
Best Answer

Hello you can follow this video , it show you how to resolve the problem step by step

https://www.youtube.com/watch?v=s4ygbFH58h8

Avatar
Discard
Best Answer

In Mac, i found same issue and solve by this command,

pip3 install libsass==0.12.3

Avatar
Discard
Best Answer

Hi,

Install the package libsaas

Thanks




Avatar
Discard
Author

can you give me command for that ?

Try sudo pip install libsaas

Author

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

getting this error after installing libsass

Best Answer

Hi, Just simply run this command

sudo apt install python3-libsass

Avatar
Discard
Best Answer

Checkout my answer: t.ly/NYA88

Avatar
Discard
Best Answer

hello 

go to odoo directory, execute below command in terminal

sudo pip3 install -r requirements.txt
Avatar
Discard
Best Answer

You need to run this command...

pip3 install libsass==0.12.3

Avatar
Discard
Best Answer

sudo apt-get install python3-pip 

pip3 install -r requirements.txt (make sure you set path of odoo 12.0 directory)

Avatar
Discard
Best Answer

Hi,

You can see here http://crocodillon.com/blog/how-to-install-sassc-and-libsass-on-ubuntu it should help

Regards,

Mustufa Rangwala

Avatar
Discard