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

Why BaseDevice class is derived from (pexpect.spawn): #104

Open
mirafratech opened this issue Jan 19, 2019 · 0 comments
Open

Why BaseDevice class is derived from (pexpect.spawn): #104

mirafratech opened this issue Jan 19, 2019 · 0 comments

Comments

@mirafratech
Copy link

Hi Matthew/All,
Could someone please help me to understand the below issue in boardfarm framework

I have been going through board farm framework code for a while and found that the BaseDevice class from base.py is inheretied from pexpect.spawn

class BaseDevice(pexpect.spawn):

And when I am trying to remove the inherited base class from my DebainBox class I am facing the below Error

from class DebianBox(base.BaseDevice):
to
class DebianBox():

Error Snippet:
unbound method init() must be called with spawn instance as first argument (got DebianBox instance instead)
Failed to connect to any device

These changes is needed for me to use Paramariko as my connection interactive_tool instead of pexpect to achieve dynamism in using connection modules(like pepxect or paramiko or telenetlib)

Could you please guide me to solve over the problem and Is it possible to make the connection to device independent of the pexpect module.

Thanks a lot ,
Error_log.txt

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

1 participant