Problem running appdaemon

I am running appdaemon4 and I have a problem using python package pytesseract. One of my python modules is using pytesseract. Therefore, I placed pytesseract as python package in my appdaemon configuration. See here:

 system_packages:
  - jpeg
  - tiff
python_packages:
  - bs4
  - pytesseract
init_commands: []

Unfortunately, it could not be loaded. I am getting the following error:

Building wheels for collected packages: pytesseract
Building wheel for pytesseract (setup.py): started
Building wheel for pytesseract (setup.py): finished with status β€˜error’
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c β€˜import sys, setuptools, tokenize; sys.argv[0] = β€˜"’"’/tmp/pip-install-ks4kw9ys/pytesseract_3c7506fb3f9e41cc994933f85feeb3f2/setup.py’"’"’; file=’"’"’/tmp/pip-install-ks4kw9ys/pytesseract_3c7506fb3f9e41cc994933f85feeb3f2/setup.py’"’"’;f=getattr(tokenize, β€˜"’"β€˜open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, β€˜"’"’\n’"’"’);f.close();exec(compile(code, file, β€˜"’"β€˜exec’"’"’))’ bdist_wheel -d /tmp/pip-wheel-d1nbn4h_
cwd: /tmp/pip-install-ks4kw9ys/pytesseract_3c7506fb3f9e41cc994933f85feeb3f2/
Complete output (21 lines):
Traceback (most recent call last):
File β€œβ€, line 1, in
File β€œ/tmp/pip-install-ks4kw9ys/pytesseract_3c7506fb3f9e41cc994933f85feeb3f2/setup.py”, line 4, in
setup()
File β€œ/usr/lib/python3.9/site-packages/setuptools/init.py”, line 153, in setup
return distutils.core.setup(**attrs)
File β€œ/usr/lib/python3.9/distutils/core.py”, line 134, in setup
ok = dist.parse_command_line()
File β€œ/usr/lib/python3.9/distutils/dist.py”, line 483, in parse_command_line
args = self._parse_command_opts(parser, args)
File β€œ/usr/lib/python3.9/site-packages/setuptools/dist.py”, line 916, in _parse_command_opts
nargs = _Distribution._parse_command_opts(self, parser, args)
File β€œ/usr/lib/python3.9/distutils/dist.py”, line 539, in _parse_command_opts
cmd_class = self.get_command_class(command)
File β€œ/usr/lib/python3.9/site-packages/setuptools/dist.py”, line 755, in get_command_class
self.cmdclass[command] = cmdclass = ep.load()
File β€œ/usr/lib/python3.9/site-packages/pkg_resources/init.py”, line 2450, in load
return self.resolve()
File β€œ/usr/lib/python3.9/site-packages/pkg_resources/init.py”, line 2456, in resolve
module = import(self.module_name, fromlist=[β€˜name’], level=0)
ModuleNotFoundError: No module named β€˜wheel.bdist_wheel’

Does someone have an idea how to solve the problem? Many thanks in advance!

Common problem with appdaemon and packages that compile. You need additional packages. Search the forum for more common packages like numpy and pandas and see how people got those working.

1 Like