DrozmotiX/ioBroker.esphome

crash install with error 25

Closed this issue · 1 comments

I will install this adpater on an raspi pi but It don't work.
Could somebody help me..

$ iobroker url https://github.com/DrozmotiX/ioBroker.esphome --host mospi

install DrozmotiX/ioBroker.esphome#86201d5e87abede6071e84b38299bb72f699fef0

NPM version: 6.14.15

npm install DrozmotiX/ioBroker.esphome#86201d5e87abede6071e84b38299bb72f699fef0 --loglevel error --prefix "/opt/iobroker" (System call)

/usr/local/lib/python3.8/site-packages/_distutils_hack/__init__.py:24: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils. warnings.warn(/usr/local/lib/python3.8/site-packages/_distutils_hack/__init__.py:36: UserWarning: Setuptools is replacing distutils. warnings.warn("Setuptools is replacing distutils.")

Traceback (most recent call last): File "/opt/iobroker/node_modules/nopy/src/get-pip.py", line 20061, in <module>

main() File "/opt/iobroker/node_modules/nopy/src/get-pip.py", line 194, in main bootstrap(tmpdir=tmpdir) File "/opt/iobroker/node_modules/nopy/src/get-pip.py", line 119, in bootstrap import setuptools # noqa File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", line 8, in <module> import _distutils_hack.override # noqa: F401 File "/usr/local/lib/python3.8/site-packages/_distutils_hack/override.py", line 1, in <module> __import__('_distutils_hack').do_override() File "/usr/local/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 73, in do_override ensure_local_distutils() File "/usr/local/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 61, in ensure_local_distutils assert '_distutils' in core.__file__, core.__file__AssertionError: /usr/local/lib/python3.8/distutils/core.py

Error: Exited with code 1.

at ChildProcess.<anonymous> (/opt/iobroker/node_modules/nopy/src/api.js:277:20) at ChildProcess.emit (events.js:314:20) at maybeClose (internal/child_process.js:1022:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! iobroker.esphome@0.2.4 install: `npip install`

npm ERR! Exit status 1

npm ERR! npm ERR! Failed at the iobroker.esphome@0.2.4 install script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR! /home/iobroker/.npm/_logs/2022-01-02T09_31_37_844Z-debug.log

host.mospi Cannot install DrozmotiX/ioBroker.esphome#86201d5e87abede6071e84b38299bb72f699fef0: 1

ERROR: Process exited with code 25

2022-01-02T18_40_22_424Z-debug.log

this is related to incorrect python version or missing pip on the host, see als #120