RMCob / homebridge-wyze-robovac

This plug-in provides rudimentary control for a Wyze Robot Vacuum.
Apache License 2.0
8 stars 4 forks source link

Missing file after installation of the plugin #11

Closed bvelasquez closed 1 year ago

bvelasquez commented 1 year ago

Describe The Bug: Receiving the following error after installation:

/opt/homebrew/bin/python3: can't open file '/usr/lib/node_modules/homebridge-wyze-robovac/py_helpers/getVacuumDeviceList.py': [Errno 2] No such file or directory

To Reproduce: Installed the plugin. Re-started. Error shows up. No devices listed.

Expected behavior:

Logs:

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

bvelasquez commented 1 year ago

Found it's because I use NVM to install Node and the installation folder is different than the default. Changed the path in the JSON config to point to the correct location, but now I get this:

File "/Users/barryvelasquez/.nvm/versions/node/v16.16.0/lib/node_modules/homebridge-wyze-robovac/py_helpers/getVacuumDeviceList.py", line 4, in <module>
    import wyze_sdk
ModuleNotFoundError: No module named 'wyze_sdk'

Wondering now how to install the wyze_sdk to handle the nvm installation. pip install of wyze_sdk didn't do it.

RMCob commented 1 year ago

@bvelasquez As I said in the README, I only have experience with Homebridge on RPi so I can't really help you. If you do find a solution to installing wyze_sdk in your environment please report the solution here for others to see. Thanks!