Odoo Help


Clean Theme, Still lessc troubles

Lucas Huber
on 3/7/15, 5:44 AM 2,717 views

I did install all dependies as proposed in https://www.odoo.com/documentation/8.0/setup/install.html#source-install on my Ubuntu 14.4 server. After installing clean theme on a newly created database I see on the website that there must be a CSS error (no grafic, no structure).

The Logfile says:
IOError: [Errno 2] command not found: 'lessc'

When I check which less and which lessc the results are the same as odoo or as root user:

/usr/bin/less and /usr/local/bin/lessc

I think the problem is that odoo can't find lessc, but I don't have any idea how to fix this.
In my odoo home folder the .npm folder has been created.

Lucas Huber
On 3/22/15, 1:28 PM

The solution in my question was relativly simple, but without the help of a friend I would have having problems to find the clue.

Because normally odoo is started from the root user, so the environment variable from the odoo user are not active. The  environment variables are coming from the process, eg are normally stated in the /etc/init.d/odoo-server startup file.

This variable should solve the problem:  Please ad or correct in the startup script.


 Another solution is the create a link to lessc folder

sudo ln -s /usr/local/bin/lessc /usr/bin/lessc

Meanwhile I have found this way, which I believe is quite fool-proof. https://www.odoo.com/forum/help-1/question/ubuntu-server-14-04-howto-install-nodejs-npm-and-less-82575

Ermin Trevisan
on 3/23/15, 5:35 AM



| 4 3 8
Delhi, India

Nothing to say .... :)

On 1/27/16, 7:01 AM

error is for missing file "/usr/bin/less" for me this command worked.

sudo npm install -g less less-plugin-clean-css
Gajanan Kathar
On 9/26/15, 8:57 AM

This error shows because of two reasons

  1. You don't install required packages and plug-ins on your ubuntu system or

  2. Install packages and plug-ins are outdated

To ride off from this issue try this commands on your ubuntu terminal

  • sudo apt-get install curl

  • curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash -

  • sudo apt-get install -y nodejs

  • sudo npm install -g npm (to update npm)

  • sudo npm install -g less less-plugin-clean-css


Ermin Trevisan

--Ermin Trevisan--
| 6 5 7
Walchwil, Switzerland
--Ermin Trevisan--

Ermin Trevisan
On 3/10/15, 3:55 AM

It took me weeks of desperation to overcome these problems...it's working fine now, but I don't know anymore how I did it exactly  :-(

Did you try vilder's suggestion in this issue: https://github.com/odoo/odoo/issues/4604 ?

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 3/7/15, 5:44 AM
Seen: 2717 times
Last updated: 1/27/16, 7:01 AM