# How to resolve tryton.cfg not found?

**URL:** https://discuss.tryton.org/t/how-to-resolve-tryton-cfg-not-found/9085
**Category:** Developer
**Created:** [February 5, 2026, 3:34pm UTC](https://discuss.tryton.org/t/how-to-resolve-tryton-cfg-not-found/9085 "2026-02-05T15:34:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bromoapp](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/71c47a/32.png) [@bromoapp](https://discuss.tryton.org/u/bromoapp)
#### Post date: [February 5, 2026, 3:34pm UTC](https://discuss.tryton.org/t/how-to-resolve-tryton-cfg-not-found/9085/1 "2026-02-05T15:34:40Z")

</div>

Recently, my friend who works on other module commit his module to git, so I pulled it.  
But when I try to compile the tryton with:

```auto
trytond-admin -c trytond.conf -d tryton --all

```

Error like below turned up:

```auto
Traceback (most recent call last):
  File "/home/tryton/afx_project/.env/bin/trytond-admin", line 33, in <module>
    admin.run(options)
  File "/home/tryton/afx_project/.env/lib/python3.10/site-packages/trytond/admin.py", line 59, in run
    pool.init(update=options.update, lang=list(lang),
  File "/home/tryton/afx_project/.env/lib/python3.10/site-packages/trytond/pool.py", line 138, in init
    self.start()
  File "/home/tryton/afx_project/.env/lib/python3.10/site-packages/trytond/pool.py", line 110, in start
    register_classes(with_test=cls.test)
  File "/home/tryton/afx_project/.env/lib/python3.10/site-packages/trytond/modules/ __init__.py", line 345, in register_classes
    for node in create_graph(get_modules(with_test=with_test)):
  File "/home/tryton/afx_project/.env/lib/python3.10/site-packages/trytond/modules/ __init__.py", line 97, in create_graph
    info = get_module_info(module)
  File "/home/tryton/afx_project/.env/lib/python3.10/site-packages/trytond/modules/ __init__.py", line 36, in get_module_info
    with tools.file_open(os.path.join(name, 'tryton.cfg')) as fp:
  File "/home/tryton/afx_project/.env/lib/python3.10/site-packages/trytond/tools/misc.py", line 50, in file_open
    return io.open(path, mode, encoding=encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/home/tryton/afx_project/.env/lib/python3.10/site-packages/trytond/modules/afx_leave/tryton.cfg'

```

Everything was fine before. How to resolve this.. I really cannot continue my work’  
I already tried to Uninstall and reinstall his module but it doesn’t work

Really need help, thanks

Bromo

---

<div class="post-metadata">

### Author: ![nicoe](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/nicoe/32/2880_2.png) [@nicoe](https://discuss.tryton.org/u/nicoe)
#### Post date: [February 5, 2026, 3:58pm UTC](https://discuss.tryton.org/t/how-to-resolve-tryton-cfg-not-found/9085/2 "2026-02-05T15:58:28Z")

</div>

Either the module was not correctly installed or it does not contain the `tryton.cfg` file.

Check in `/home/tryton/afx_project/.env/lib/python3.10/site-packages/trytond/modules/afx_leave` if the file is there and if it’s not there ask your friend to include it in the git repository of the module.

---

<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: [February 5, 2026, 4:00pm UTC](https://discuss.tryton.org/t/how-to-resolve-tryton-cfg-not-found/9085/3 "2026-02-05T16:00:57Z")

</div>

This commonly happens when you use editable installation and that your module can no more be imported (because you added a new dependency or make typo). So trytond tries to find the module in its own directory.

---

<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: [February 6, 2026, 4:01pm UTC](https://discuss.tryton.org/t/how-to-resolve-tryton-cfg-not-found/9085/4 "2026-02-06T16:01:46Z")

</div>

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