# Install eWelink

**URL:** <https://discourse.nodered.org/t/install-ewelink/67854>\
**Category:** General\
**Created:** [17 September 2022 15:00 UTC](https://discourse.nodered.org/t/install-ewelink/67854 "2022-09-17T15:00:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![milandzuris](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/milandzuris/32/67905_2.png) [@milandzuris](https://discourse.nodered.org/u/milandzuris)\
**Post date:** [17 September 2022 15:00 UTC](https://discourse.nodered.org/t/install-ewelink/67854/1 "2022-09-17T15:00:32Z")

</div>

I want install ewelink and i have this error how to fix it?

1. 2022-09-17T14:51:34.478Z Install : node-red-contrib-ewelink 2.0.0

- 2022-09-17T14:51:33.761Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-ewelink@2.0.0

1. 2022-09-17T14:51:38.949Z [err] npm WARN config production Use `--omit=dev` instead.

2. 2022-09-17T14:52:12.533Z [err] npm WARN deprecated core-js@2.6.12: core-js@\<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.

3. 2022-09-17T14:52:30.792Z [err] npm ERR! code 1

4. 2022-09-17T14:52:30.792Z [err] npm ERR! path /config/node-red/node\_modules/utf-8-validate

5. 2022-09-17T14:52:30.792Z [err] npm ERR! command failed

6. 2022-09-17T14:52:30.792Z [err] npm ERR! command sh -c node-gyp-build

7. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp info it worked if it ends with ok

8. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp info using node-gyp@9.0.0

9. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp info using node@16.16.0 | linux | arm64

10. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python

11. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python checking Python explicitly set from command line or npm configuration

12. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python - "--python=" or "npm config get python" is "/usr/bin/python3"

13. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python - "/usr/bin/python3" is not in PATH or produced an error

14. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON

15. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python checking if "python3" can be used

16. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error

17. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python checking if "python" can be used

18. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error

19. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python

20. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

21. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python You need to install the latest version of Python.

22. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,

23. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python you can try one of the following options:

24. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"

25. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)

26. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python - Set the environment variable PYTHON

27. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python - Set the npm configuration variable python:

28. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable"

29. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python For more information consult the documentation at:

30. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python [GitHub - nodejs/node-gyp: Node.js native addon build tool](https://github.com/nodejs/node-gyp#installation)

31. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

32. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! find Python

33. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! configure error

34. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! stack Error: Could not find any Python installation to use

35. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! stack at PythonFinder.fail (/usr/lib/node\_modules/npm/node\_modules/node-gyp/lib/find-python.js:330:47)

36. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! stack at PythonFinder.runChecks (/usr/lib/node\_modules/npm/node\_modules/node-gyp/lib/find-python.js:159:21)

37. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! stack at PythonFinder. (/usr/lib/node\_modules/npm/node\_modules/node-gyp/lib/find-python.js:202:16)

38. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (/usr/lib/node\_modules/npm/node\_modules/node-gyp/lib/find-python.js:294:16)

39. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! stack at exithandler (node:child\_process:406:5)

40. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! stack at ChildProcess.errorhandler (node:child\_process:418:5)

41. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28)

42. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! stack at Process.ChildProcess.\_handle.onexit (node:internal/child\_process:289:12)

43. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! stack at onErrorNT (node:internal/child\_process:478:16)

44. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! stack at processTicksAndRejections (node:internal/process/task\_queues:83:21)

45. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! System Linux 5.15.32-v8

46. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node\_modules/npm/node\_modules/node-gyp/bin/node-gyp.js" "rebuild"

47. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! cwd /config/node-red/node\_modules/utf-8-validate

48. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! node -v v16.16.0

49. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! node-gyp -v v9.0.0

50. 2022-09-17T14:52:30.792Z [err] npm ERR! gyp ERR! not ok

51. 2022-09-17T14:52:30.792Z [err]

52. 2022-09-17T14:52:30.792Z [err] npm ERR! A complete log of this run can be found in:

53. 2022-09-17T14:52:30.792Z [err] npm ERR! /root/.npm/\_logs/2022-09-17T14\_51\_38\_715Z-debug-0.log

54. 2022-09-17T14:52:30.796Z rc=1

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [17 September 2022 16:09 UTC](https://discourse.nodered.org/t/install-ewelink/67854/2 "2022-09-17T16:09:19Z")

</div>

Are you 100% sure that you have python installed on the machine you are running Node-RED on?

---

<div class="post-metadata">

**Author:** ![milandzuris](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/milandzuris/32/67905_2.png) [@milandzuris](https://discourse.nodered.org/u/milandzuris)\
**Post date:** [17 September 2022 21:15 UTC](https://discourse.nodered.org/t/install-ewelink/67854/3 "2022-09-17T21:15:54Z")

</div>

I use Home Assistant

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [18 September 2022 06:42 UTC](https://discourse.nodered.org/t/install-ewelink/67854/4 "2022-09-18T06:42:13Z")

</div>

That doesn't answer the question.

The problem is that node requires python to build, what ever environment you are run it in doesn't have python installed.

You will probably need to ask the home assistant folks why there is no python in that environment (probably a container), but with the information available we can not help

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [18 September 2022 08:02 UTC](https://discourse.nodered.org/t/install-ewelink/67854/5 "2022-09-18T08:02:03Z")

</div>

Yep he will be running the Docker Container that they supply and i would guess this is directly related to your much earlier post about Python 2 no longer being provided in the docker image.

@milandzuris if you head over to the Node Red sub forum on the Home Assistant forum there is information on there how to resolve this issue in their docker image

Craig

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [18 September 2022 08:16 UTC](https://discourse.nodered.org/t/install-ewelink/67854/6 "2022-09-18T08:16:28Z")

</div>

This looks different, because the trace says it's found `/usr/bin/python3` already, but isn't using it

---

<div class="post-metadata">

**Author:** ![ben-g](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ben-g/32/68595_2.png) [@ben-g](https://discourse.nodered.org/u/ben-g)\
**Post date:** [3 October 2022 14:36 UTC](https://discourse.nodered.org/t/install-ewelink/67854/7 "2022-10-03T14:36:09Z")

</div>

Hey @craigcurtin , I have a similar problem as the original poster. I can't find the page you are referring to. Sorry to be a huge pain, would you mind sharing the link?

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/c/ace731f45f5cf67ae9dd3696d0994de183ecf212.jpeg)

It says I have v3 installed but the ewelink plugin can't seem to find it.

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [3 October 2022 20:57 UTC](https://discourse.nodered.org/t/install-ewelink/67854/8 "2022-10-03T20:57:41Z")

</div>

Try this

> **[How I fixed "Error: spawn python ENOENT" when upgrading](https://community.home-assistant.io/t/how-i-fixed-error-spawn-python-enoent-when-upgrading/446949)**
>
> I run node-red in Docker and use the node-red-contrib-python-function node. My instance got stuck in a reboot loop when I upgraded to node-red 3 saying “Error: spawn python ENOENT.” Turns out this is because python is a unknown command and only...

Craig

---

<div class="post-metadata">

**Author:** ![ben-g](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ben-g/32/68595_2.png) [@ben-g](https://discourse.nodered.org/u/ben-g)\
**Post date:** [21 November 2022 19:44 UTC](https://discourse.nodered.org/t/install-ewelink/67854/9 "2022-11-21T19:44:04Z")

</div>

Just a quick follow up post in case anyone else lands up here: you may have found your way here after watching a youtube on how to connect your sonoff devices to node red on home assistant. The Node Red plugin you tried to install has not been kept up to date, and has fallen behind, and hence the error message. You don't need that plugin as there is a 'eWeLink Smart Home' app you can install on Home Assistant that will manage the access to the eWelink API instead. Install that, then point your Node Red nodes to that.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 January 2023 19:44 UTC](https://discourse.nodered.org/t/install-ewelink/67854/10 "2023-01-20T19:44:06Z")

</div>

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