Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module wont load - pexpect #7

Open
grantclem opened this issue Jul 3, 2019 · 2 comments
Open

Module wont load - pexpect #7

grantclem opened this issue Jul 3, 2019 · 2 comments

Comments

@grantclem
Copy link

Hi, for some reason the module cannot be found

2019-07-03 13:10:25 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform ssh
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT)
  File "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
    return fut.result()
  File "/usr/lib/python3.7/asyncio/coroutines.py", line 120, in coro
    res = func(*args, **kw)
  File "/home/homeassistant/.homeassistant/custom_components/ssh/sensor.py", line 48, in async_setup_platform
    dev.append(SSHSensor(hass, config))
  File "/home/homeassistant/.homeassistant/custom_components/ssh/sensor.py", line 66, in __init__
    self._connect()
  File "/home/homeassistant/.homeassistant/custom_components/ssh/sensor.py", line 127, in _connect
    from pexpect import pxssh, exceptions
ModuleNotFoundError: No module named 'pexpect'
@evilgb
Copy link

evilgb commented Jul 19, 2019

Same problem here. I also tried "pip3 install pexpect" but it gave the same error.

@ejonesnospam
Copy link

I had issues with the pexpect library as well, so I created an ssh sensor and switch using the paramiko ssh library. Feel free to try it out.

https://github.com/ejonesnospam/ssh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants