Js2Py icon indicating copy to clipboard operation
Js2Py copied to clipboard

You must have node installed! run: brew install node

Open bwoodworth opened this issue 4 years ago • 0 comments

I am trying to import a module and I am getting the following error:

2020-04-24 23:25:30 ERROR (MainThread) [homeassistant.setup] Error during setup of component pentair
Traceback (most recent call last):
  File "/workspaces/home-assistant-dev/homeassistant/setup.py", line 175, in _async_setup_component
    component.setup, hass, processed_config  # type: ignore
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/workspaces/home-assistant-dev/homeassistant/components/pentair/__init__.py", line 14, in setup
    ScreenLogic = js2py.require("node-screenlogic")
  File "/usr/local/lib/python3.7/site-packages/js2py/node_import.py", line 151, in require
    maybe_version_str=maybe_version)
  File "/usr/local/lib/python3.7/site-packages/js2py/node_import.py", line 74, in _get_and_translate_npm_module
    _init()
  File "/usr/local/lib/python3.7/site-packages/js2py/node_import.py", line 19, in _init
    ) == 0, 'You must have node installed! run: brew install node'
AssertionError: You must have node installed! run: brew install node

I am running this inside a container, but I can install pip packages before my code runs. I tried 'pip node', but that didn't solve the issue. Are there other requirements to be able to import modules using js2py?

bwoodworth avatar Apr 27 '20 23:04 bwoodworth