Skip to content

AdbCommands instance as first argument #57

@badgerhome

Description

@badgerhome

(firetv) firetv@debian:/srv$ firetv-server -d 192.168.1.108:5555
Traceback (most recent call last):
File "/srv/firetv/firetv/bin/firetv-server", line 11, in
sys.exit(main())
File "/srv/firetv/firetv/local/lib/python2.7/site-packages/firetv/main.py", line 244, in main
if args.default and not add('default', args.default):
File "/srv/firetv/firetv/local/lib/python2.7/site-packages/firetv/main.py", line 88, in add
devices[device_id] = FireTV(str(host))
File "/srv/firetv/firetv/local/lib/python2.7/site-packages/firetv/init.py", line 99, in init
self.connect()
File "/srv/firetv/firetv/local/lib/python2.7/site-packages/firetv/init.py", line 109, in connect
serial=self.host)
TypeError: unbound method ConnectDevice() must be called with AdbCommands instance as first argument (got nothing instead)

Python 2.7 VirtualEnv

Could be due to this version of python-adb? v1.3.0
https://github.com/google/python-adb/releases

Backwards Incompatible changes
adb_commands.AdbCommands() is now a normal class rather than a collection of staticmethods. Using the following example code to get started:

device = adb_commands.AdbCommands()
device.ConnectDevice(rsa_keys=[signer])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions