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/init.py”, 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?

Andreas

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

Processing dependencies for trytond==5.4.3
Searching for wrapt
Reading https://pypi.python.org/simple/wrapt/
Downloading https://files.pythonhosted.org/packages/23/84/323c2415280bc4fc880ac5050dddfb3c8062c2552b34c2e512eb4aa68f79/wrapt-1.11.2.tar.gz#sha256=565a021fd19419476b9362b05eeaa094178de64f8361e44468f9e9d7843901e1
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/setup.py -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 setup.py 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 hg.tryton.org 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.