The 'wrapt' distribution was not found

trytond -c /etc/tryton/trytond.conf -v

trytond does not start anymore with

File “/usr/lib/python3/dist-packages/pkg_resources/”, line 778, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘wrapt’ distribution was not found and is required by trytond

I did something with modules when tryton crashed yesterday. What could be done?


I did python3 install again in trytond-5.4.3 folder, saw somthing like

Processing dependencies for trytond==5.4.3
Searching for wrapt
Best match: wrapt 1.11.2
Processing wrapt-1.11.2.tar.gz
Writing /tmp/easy_install-vco0f4sh/wrapt-1.11.2/setup.cfg
Running wrapt-1.11.2/ -q bdist_egg --dist-dir /tmp/easy_install-vco0f4sh/wrapt-1.11.2/egg-dist-tmp-jsd1kdre
src/wrapt/_wrappers.c:3:10: fatal error: Python.h: Datei oder Verzeichnis nicht gefunden
#include “Python.h”
compilation terminated.

WARNING: The C extension component for wrapt could not be compiled.

INFO: Trying to build without extensions.

but then the server started. Calling tryton and trying to log in I get

tryton.jsonrpc.Fault: No module named ‘stdnum’
Fault: No module named ‘stdnum’

hm, don’t know how to proceed. Another python3 install did not fix it.

You’ve to install package python-stdnum
pip3 install python-stdnum

You can take a look the Docker file definition from Tryton to meet another python packages that Tryton may need to be executed.

These are the typical requirements packages you find out in requirements.txt file in other python apps.

These requirements file can be automatically created for you, just read the readme file at in tryton-env repo and follow the instructions.

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