Odoo Help

Welcome!

This community 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.

0

Clean Theme, Still lessc troubles

By
Lucas Huber
on 3/7/15, 5:44 AM 1,917 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.

0
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.

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin 

 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
0
Yogesh
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
0
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

0

Ermin Trevisan

--Ermin Trevisan--
3548
| 6 3 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 ?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

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