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!