# Where are the modules?

**URL:** <https://discuss.tryton.org/t/where-are-the-modules/2882>\
**Category:** System Administrator\
**Created:** [June 16, 2020, 3:41pm UTC](https://discuss.tryton.org/t/where-are-the-modules/2882 "2020-06-16T15:41:39Z")\
**Posts on this page:** 12\
**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 16, 2020, 3:41pm UTC](https://discuss.tryton.org/t/where-are-the-modules/2882/1 "2020-06-16T15:41:39Z")

</div>

Hello Guys,

I have just installed tryton. Got great support from this forum.

But I need your help still to know where to download modules like banking, payment, sales, production, project, timesheet, etc

I am on Opensuse 15.1, gnuhealth 3.6.2, tryton 5.0.23, python3, sao

Hope you could help point a finger to where I could download the right ones from.

Thank you.

---

<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 16, 2020, 5:34pm UTC](https://discuss.tryton.org/t/where-are-the-modules/2882/2 "2020-06-16T17:34:27Z")

</div>

You should install the modules follow the same way as you installed `trytond` and respecting the same series. Most of the available ways are listed on [Tryton - Get Tryton](https://www.tryton.org/download)

---

<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 17, 2020, 1:01pm UTC](https://discuss.tryton.org/t/where-are-the-modules/2882/3 "2020-06-17T13:01:06Z")

</div>

Ok, thanks. So I downloaded trytond\_company\_work\_time-5.0.2.tar and trytond\_company\_work\_time-5.0.2.tar.gz.asc.  
I then installed it according to the install file in it.  
Unpacked the trytond\_company\_work\_time, enter the directory where the archive was unpacked, and run:  
python setup.py install (I had to use “python3 setup.py install” because installed python2.7 on the server was getting in the way)

After python installation which seemed to have went well the new module is listed in /usr/lib/python3.6/site-packages but not in /usr/lib/python3.6/site-packages/trytond/modules and it is nowhere to be found in tryton frontend Admin modules (installed modules remain 61 in total).

What am I doing wrong please?

Will appreciate your help,  
Thanks.

---

<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 17, 2020, 1:14pm UTC](https://discuss.tryton.org/t/where-are-the-modules/2882/4 "2020-06-17T13:14:05Z")

</div>

Did you run the `trytond-admin` with the `--update-modules-list` option?

---

<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 17, 2020, 1:30pm UTC](https://discuss.tryton.org/t/where-are-the-modules/2882/5 "2020-06-17T13:30:38Z")

</div>

> [@ced](#):
>
> Did you run the `trytond-admin` with the `--update-modules-list` option?

Nope. Not sure I’ve seen that before. I reckon that command should have been included in the install file. Will run it now. Is this the full command “/usr/bin/trytond-admin --update-modules-list” ?  
Thanks Ced

---

<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 17, 2020, 2:36pm UTC](https://discuss.tryton.org/t/where-are-the-modules/2882/6 "2020-06-17T14:36:48Z")

</div>

Ok Ced, I’ve figured out how and where to run the command from.  
As root, I did “su tryton -s /bin/bash” then “/usr/bin/trytond-admin --update-modules-list” So tryton complained: ImportError: No module named parse.  
But tryton was using python2.7 instead of python3.6 (which is also installed)

So the question is how can I make tryton-admin use python3.6 to execute this command instead of python2.7 ?  
I’ve found how to make tryton-admin use python3.6.  
By adding “#!/usr/bin/python3” to the top of usr/bin/tryton-admin

Now usr/bin/tryton-admin is using python3 to execute “/usr/bin/trytond-admin --update-modules-list” but with the following error:  
pkg\_resources.ResolutionError: Script ‘script/tryton-admin’ not found in metadata at ‘/usr/lib/python3.6/site-packages/trytond-5.0.23-py3.6.egg-info’

How should I deal with this?

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 18, 2020, 6:39am UTC](https://discuss.tryton.org/t/where-are-the-modules/2882/7 "2020-06-18T06:39:06Z")

</div>

> [@smoothsg](#):
>
> Hello Guys,
> 
> I have just installed tryton. Got great support from this forum.
> 
> But I need your help still to know where to download modules like banking, payment, sales, production, project, timesheet, etc
> 
> I am on Opensuse 15.1, gnuhealth 3.6.2, tryton 5.0.23, python3, sao

In case you have installation from packages, just add the tryton repository and add additional modules(Packages) from YaST or zypper:

```
zypper ar -f https://download.opensuse.org/repositories/Application:/ERP:/Tryton:/5.0/openSUSE_Leap_15.1 tryton5

zypper in trytond_company_work_time 

```

(as example)

The installation of Tryton/GNU Health on openSUSE is pretty straight forward, which allows us for automated testing, see for example [https://openqa.opensuse.org/tests/1304232](https://openqa.opensuse.org/tests/1304232)

---

<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 18, 2020, 8:57am UTC](https://discuss.tryton.org/t/where-are-the-modules/2882/8 "2020-06-18T08:57:19Z")

</div>

> [@coogor](#):
>
> In case you have installation from packages, just add the tryton repository and add additional modules(Packages) from YaST or zypper:
> 
> ```
> zypper ar -f https://download.opensuse.org/repositories/Application:/ERP:/Tryton:/5.0/openSUSE_Leap_15.1 tryton5
> 
> zypper in trytond_company_work_time 
> 
> ```
> 
> (as example)

Thanks a lot.  
Was able to add the repo and install company\_work\_time in yast. But the new module did not appear in Tryton Administration modules.  
So I logged out of tryton admin and restarted service on server with “systemctl restart gnuhealth” and boom! tryton web page was gone! No indication of what happened in the log. Then I checked with “systemctl status gnuhealth” and got this error:  
systemctl[1]: gnuhealth.service: Main process exited, code=exited, status=1/FAILURE  
systemctl[1]: gnuhealth.service: Unit entered failed state.  
systemctl[1]: gnuhealth.service: Failed with result ‘exit-code’

Googled to find a lead but couldn’t get anywhere.

Any idea what to do?

Appreciate your help, thanks.

---

<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 18, 2020, 9:38am UTC](https://discuss.tryton.org/t/where-are-the-modules/2882/9 "2020-06-18T09:38:05Z")

</div>

> [@smoothsg](#):
>
> > [@coogor](#):
> >
> > In case you have installation from packages, just add the tryton repository and add additional modules(Packages) from YaST or zypper:
> > 
> > ```
> > zypper ar -f https://download.opensuse.org/repositories/Application:/ERP:/Tryton:/5.0/openSUSE_Leap_15.1 tryton5
> > 
> > zypper in trytond_company_work_time 
> > 
> > ```
> > 
> > (as example)
> 
> Thanks a lot.  
> Was able to add the repo and install company\_work\_time in yast. But the new module did not appear in Tryton Administration modules.  
> So I logged out of tryton admin and restarted service on server with “systemctl restart gnuhealth” and boom! tryton web page was gone! No indication of what happened in the log. Then I checked with “systemctl status gnuhealth” and got this error:  
> systemctl[1]: gnuhealth.service: Main process exited, code=exited, status=1/FAILURE  
> systemctl[1]: gnuhealth.service: Unit entered failed state.  
> systemctl[1]: gnuhealth.service: Failed with result ‘exit-code’

Difficult to state from the distance.  
First of all, installation of a module does not kill the server process _on a clean installation_ (which I doubt you have - see other thread)  
Did you run trytond-admin afterwards?  
You may want to run the systemd-command manually to see what happens:  
`/usr/bin/trytond --config /etc/tryton/trytond.conf --pidfile=/var/lib/tryton/trytond.pid --logconf=/etc/tryton/trytond_log.conf`

---

<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 18, 2020, 10:38am UTC](https://discuss.tryton.org/t/where-are-the-modules/2882/10 "2020-06-18T10:38:42Z")

</div>

> [@coogor](#):
>
> Difficult to state from the distance.  
> First of all, installation of a module does not kill the server process _on a clean installation_ (which I doubt you have - see other thread)  
> Did you run trytond-admin afterwards?  
> You may want to run the systemd-command manually to see what happens:  
> `/usr/bin/trytond --config /etc/tryton/trytond.conf --pidfile=/var/lib/tryton/trytond.pid --logconf=/etc/tryton/trytond_log.conf`

Tried both commands like you suggested and they both came up with the same error posted above earlier:  
pkg\_resources.ResolutionError: Script ‘script/tryton-admin’ not found in metadata at ‘/usr/lib/python3.6/site-packages/trytond-5.0.23-py3.6.egg-info’

I was shocked to see it crashed just like that too. May be there are remnants of old installs from earlier on but I’ve been trying to cleanup as I go to avoid situation like old buggers messing up the show. You guys know/understand the system way more than I do and I appreciate your support effort.

Looks like I have no choice but to start it all over again unless I wanna keep banging my head against the wall. Thank you coogor.

---

<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:** [July 7, 2020, 8:25am UTC](https://discuss.tryton.org/t/where-are-the-modules/2882/11 "2020-07-07T08:25:22Z")

</div>

> [@smoothsg](#):
>
> Tried both commands like you suggested and they both came up with the same error posted above earlier:  
> pkg\_resources.ResolutionError: Script ‘script/tryton-admin’ not found in metadata at ‘/usr/lib/python3.6/site-packages/trytond-5.0.23-py3.6.egg-info’

It is trytond-admin. It is installed b packages into /usr/bin

---

<div class="post-metadata">

**Author:** ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)\
**Post date:** [August 6, 2020, 8:25am UTC](https://discuss.tryton.org/t/where-are-the-modules/2882/12 "2020-08-06T08:25:24Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
