# Error variables.less with installation

**URL:** https://discuss.tryton.org/t/error-variables-less-with-installation/2871
**Category:** System Administrator
**Created:** [June 13, 2020, 4:46pm UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871 "2020-06-13T16:46:50Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![smoothsg](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@smoothsg](https://discuss.tryton.org/u/smoothsg)
#### Post date: [June 13, 2020, 4:46pm UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/1 "2020-06-13T16:46:50Z")

</div>

Hello All,

I have installed gnuhealth server and Sao . But only the hamburger menu, a small green button and two small dots showed up on my website tryton webpage when accessed. Nothing happens when the menu is clicked on thus nothing else is loaded on the page.

While gnuhealth installations went all well, Sao installation threw the following error during installation. “FileError: ‘variables.less’ wasn’t found. Tried - src/variables.less,src/variables.less,bower\_components/bootstrap/less/variables.less,variables.less in src/sao.less on” …Warning: Error compiling src/sao.less. Use --force to continue. Aborted due to warnings. "

So I used --force to run grunt. This completed the grunt run but with warning.  
Since then I have found out that the error is related to a bug filed here :  
[sao: variables.less is missing (#5204) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue5204).

I have then post installed bower@1.8.8 with npm and reinstalled Sao but this did not solved the issues or make any difference to the installation.

Installation is on Opensuse 15.1 Leap  
Nodejs10  
ghuhealth 3.4.1 installed with zypper  
Python 3

Please advise on what to do as the related bug filed a while ago ([sao: variables.less is missing (#5204) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue5204)) seemed to have been closed without a resolution.

Many thanks in advance for your help.

---

<div class="post-metadata">

### Author: ![German](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/german/32/143_2.png) [@German](https://discuss.tryton.org/u/German)
#### Post date: [June 13, 2020, 5:24pm UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/2 "2020-06-13T17:24:30Z")

</div>

I suggest to install gnuhealth 3.6 which use tryton lts 5.0 as backend . Then you just follow the procedure to install sao using a non root user. It will work without problems .

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [June 13, 2020, 10:16pm UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/3 "2020-06-13T22:16:10Z")

</div>

If grunt task still do not find the `variable.less` file, it is because `bower install` has still not be run.

---

<div class="post-metadata">

### Author: ![smoothsg](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@smoothsg](https://discuss.tryton.org/u/smoothsg)
#### Post date: [June 14, 2020, 3:11pm UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/4 "2020-06-14T15:11:21Z")

</div>

Thanks Cedric. Like I mentioned above, I installed bower1.8.8 with npm just like you advised in bug issue 5204. If this is not the same ‘bower install’ you’re talking about, please advise on from where (directory) exactly to run this command from. Thanks again.

---

<div class="post-metadata">

### Author: ![smoothsg](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@smoothsg](https://discuss.tryton.org/u/smoothsg)
#### Post date: [June 14, 2020, 3:26pm UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/5 "2020-06-14T15:26:32Z")

</div>

Thanks for your advice Dario.  
Like advised, I installed gnuhealth 3.6.4(latest) with zypper, downloaded from Opensuse repo-gnuhealth.

But I ran into problems during DB initiation with this command “/usr/bin/trytond-admin -c /etc/tryton/trytond.conf --all -d mydb”  
Error:  
From “/usr/lib/python3.6/site-packages/trytond/modules/health/health.py”, line41, in from trytond.model import ModelView, ModelSingleton, ModelSQL, \   
ImportError: cannot import name ‘tree’

Could you please advise on how to deal with the error? Thanks again

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [June 14, 2020, 6:42pm UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/6 "2020-06-14T18:42:07Z")

</div>

> [@smoothsg](#):
>
> If this is not the same ‘bower install’ you’re talking about,

No `npm` and `bower` are not the same. So if you have an old version of `npm`, it may not run automatically `bower` so you have to run it.

> [@smoothsg](#):
>
> Could you please advise on how to deal with the error? Thanks again

It is typical of having the wrong version of trytond for the module health.

---

<div class="post-metadata">

### Author: ![German](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/german/32/143_2.png) [@German](https://discuss.tryton.org/u/German)
#### Post date: [June 15, 2020, 12:27am UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/7 "2020-06-15T00:27:20Z")

</div>

Please like ced suggested , check your trytond --version it should be 5.0.15 at least.

---

<div class="post-metadata">

### Author: ![coogor](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/coogor/32/47_2.png) [@coogor](https://discuss.tryton.org/u/coogor)
#### Post date: [June 15, 2020, 6:32am UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/8 "2020-06-15T06:32:23Z")

</div>

> [@smoothsg](#):
>
> Like advised, I installed gnuhealth 3.6.4(latest) with zypper, downloaded from Opensuse repo-gnuhealth.

what is the output of  
`rpm -qa | grep tryton`  
?

---

<div class="post-metadata">

### Author: ![coogor](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/coogor/32/47_2.png) [@coogor](https://discuss.tryton.org/u/coogor)
#### Post date: [June 15, 2020, 6:44am UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/9 "2020-06-15T06:44:09Z")

</div>

> [@ced](#):
>
> It is typical of having the wrong version of trytond for the module health.

Where do you have that wisdom from?

---

<div class="post-metadata">

### Author: ![smoothsg](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@smoothsg](https://discuss.tryton.org/u/smoothsg)
#### Post date: [June 15, 2020, 10:17am UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/10 "2020-06-15T10:17:39Z")

</div>

Thanks Dario. The Trytond version I installed is 4.6. This is because this is the version packaged/available with gnuhealth 3.6.4 on Opensuse 15.1.  
I’ve searched but couldn’t find what you suggested.  
Please show me where to download a good combination of both gnuhealth 3.6 & Trytond 5.0.15 OR any version combination of both good for Opensuse.

Regards,

---

<div class="post-metadata">

### Author: ![smoothsg](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@smoothsg](https://discuss.tryton.org/u/smoothsg)
#### Post date: [June 15, 2020, 10:22am UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/11 "2020-06-15T10:22:45Z")

</div>

I didn’t install tryton on the server as it is a client unless I understood it all wrong. If you’d meant trytond, then all modules installed are 4.6ish. Thanks for your help.

---

<div class="post-metadata">

### Author: ![smoothsg](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@smoothsg](https://discuss.tryton.org/u/smoothsg)
#### Post date: [June 15, 2020, 10:29am UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/12 "2020-06-15T10:29:40Z")

</div>

Ok. Thanks Ced.  
So I’m on Opensuse\_15\_1. Where do I pick up a good trytond/health module combination from?

Many thanks for your help.

---

<div class="post-metadata">

### Author: ![prak](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/prak/32/321_2.png) [@prak](https://discuss.tryton.org/u/prak)
#### Post date: [June 15, 2020, 11:01am UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/13 "2020-06-15T11:01:02Z")

</div>

I usually get Trytond using the mercurial repository ([hg.tryton.org/trytond](http://hg.tryton.org/trytond)) and checkout on the latest version of 5.0. Then I download the health modules from ftp server of gnu ([https://ftp.gnu.org/gnu/health/gnuhealth-latest.tar.gz](https://ftp.gnu.org/gnu/health/gnuhealth-latest.tar.gz)) and install them indvidually.

This process gives more control of what I am downloading and installing.

---

<div class="post-metadata">

### Author: ![coogor](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/coogor/32/47_2.png) [@coogor](https://discuss.tryton.org/u/coogor)
#### Post date: [June 15, 2020, 11:43am UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/14 "2020-06-15T11:43:56Z")

</div>

> [@smoothsg](#):
>
> I didn’t install tryton on the server as it is a client unless I understood it all wrong. If you’d meant trytond, then all modules installed are 4.6ish. Thanks for your help.

So you have only installed the client? I dont understand…

openSUSE provides packages for GNU Health, see [GNUHealth on openSUSE - openSUSE Wiki](https://en.opensuse.org/GNUHealth_on_openSUSE)  
Using the packages provides consistency across all modules  
If you mix this up with pip-based python installation, it is a perfect way to mess up your system (unless you are a developer and know exactly what you do)

---

<div class="post-metadata">

### Author: ![smoothsg](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@smoothsg](https://discuss.tryton.org/u/smoothsg)
#### Post date: [June 15, 2020, 12:23pm UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/15 "2020-06-15T12:23:56Z")

</div>

I meant that I did not install tryton since I intend to access trytond via the web (I understand tryton is an access client to trytond server, please correct me if I’m wrong).

[GNUHealth on openSUSE - openSUSE Wiki](https://en.opensuse.org/GNUHealth_on_openSUSE) is what I started off with i.e. gnuhealth 3.6.4 and Trytond and modules are 3.4.ish. With this I got the [sao: variables.less is missing (#5204) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue5204) problem.

I then upgraded Trytond and modules to 4.6.ish. With this I got the ImportError: cannot import name ‘tree’ problem.

---

<div class="post-metadata">

### Author: ![smoothsg](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@smoothsg](https://discuss.tryton.org/u/smoothsg)
#### Post date: [June 15, 2020, 12:41pm UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/16 "2020-06-15T12:41:42Z")

</div>

I finally got to install trytond 5.0.23 with pip. Thus I have gnuhealth 3.6.4 & trytond 5.0.23. But trytond choked with the following error below when I ran the command “/usr/bin/trytond-admin -c /etc/tryton/trytond.conf --all -d mydb”

ERROR:  
psycopg2.programmingError: column a.parent does not exist  
line1 : SELECT “a”.“code”,“a”.“parent” FROM "ir\_lang"AS “a”

What do I do?

Thank you.

---

<div class="post-metadata">

### Author: ![coogor](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/coogor/32/47_2.png) [@coogor](https://discuss.tryton.org/u/coogor)
#### Post date: [June 15, 2020, 2:42pm UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/17 "2020-06-15T14:42:10Z")

</div>

> [@smoothsg](#):
>
> I meant that I did not install tryton since I intend to access trytond via the web (I understand tryton is an access client to trytond server, please correct me if I’m wrong).

and where is the tryton/gnuhealth server installed?

> [@](#):
>
> [GNUHealth on openSUSE - openSUSE Wiki](https://en.opensuse.org/GNUHealth_on_openSUSE) is what I started off with i.e. gnuhealth 3.6.4 and Trytond and modules are 3.4.ish. With this I got the [sao: variables.less is missing (#5204) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue5204) problem.

GNU Health 3.6.4 does not come with trytond modules 3.4…see [GNUHealth on openSUSE - openSUSE Wiki](https://en.opensuse.org/GNUHealth_on_openSUSE#Versioning)

> [@](#):
>
> I then upgraded Trytond and modules to 4.6.ish. With this I got the ImportError: cannot import name ‘tree’ problem.

If the tryton-base version is 4.6, then you have a 3.4 GNU Health version.

If you want a Tryton 5 / GNU Health 3.6.x, you need to add the repository (as described in the wiki) and - in case you have already Tryton 4.6/GH 3.4 installed - run  
`zypper dup --from gh36`

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [June 15, 2020, 2:55pm UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/18 "2020-06-15T14:55:51Z")

</div>

> [@coogor](#):
>
> GNU Health 3.6.4 does not come with trytond modules 3.4…see [GNUHealth on openSUSE - openSUSE Wiki](https://en.opensuse.org/GNUHealth_on_openSUSE#Versioning)

> [@coogor](#):
>
> If the tryton-base version is 4.6, then you have a 3.4 GNU Health version.

I think it will be better to talk about tryton series instead of version as version includes also the minor verison.

You should also update the opensuse wiki page to use this term which is more correct 😉

---

<div class="post-metadata">

### Author: ![German](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/german/32/143_2.png) [@German](https://discuss.tryton.org/u/German)
#### Post date: [June 15, 2020, 3:08pm UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/19 "2020-06-15T15:08:52Z")

</div>

Just download the latest tarball from gnuhealth and then run sh install-gnuhealth.sh it will start downloading the correct tryton version using pip and install gnuhealth modules. All steps are on gnuhealth installation wiki.

---

<div class="post-metadata">

### Author: ![smoothsg](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@smoothsg](https://discuss.tryton.org/u/smoothsg)
#### Post date: [June 15, 2020, 3:48pm UTC](https://discuss.tryton.org/t/error-variables-less-with-installation/2871/20 "2020-06-15T15:48:02Z")

</div>

Ok, my installation journey looks a bit muddled up now. A quick revisit to make things a bit clearer.

1. I installed original Opensuse package (gnuhealth 3.4 and trytond 4.6) I got error issue 5204.
2. Per Dario’s advice, I added repo and installed with zypper (zypper ar -f [https://download.opensuse.org/repositories/Application:/ERP:/GNUHealth:/3.6/openSUSE\_Leap\_15.1/](https://download.opensuse.org/repositories/Application:/ERP:/GNUHealth:/3.6/openSUSE_Leap_15.1/) gh36) with trytond 4.6. I got error ImportError: cannot import name ‘tree’.
3. I realised I was asked to use trytond =\>5.0.1, then installed trytond 5.0.23 with pip. I got error “psycopg2.programmingError: column a.parent does not exist…”

So that means that at the moment I have gnuhealth 3.6.4 and trytond 5.0.23.  
And I started with Opesuse package gnuhealth 3.4 and tryton 4.6 which are of course replaced with the above on my server repo now.

Hope I make it a bit clearer now.  
So the question is can I make this gnuhealth 3.6.4 & trytond 5.0.23 combination work?  
Or do I have to revert to gnuhealth 3.4 and tryton 4.6? with the error issue 5204?

Thank you.

[Next page](https://discuss.tryton.org/t/error-variables-less-with-installation/2871.md?page=2)
