openatx / adbutils

pure python adb library for google adb service.
MIT License
736 stars 173 forks source link

Screenrecord Error #46

Closed Nucito closed 2 years ago

Nucito commented 2 years ago
import time
from adbutils import adb

d = adb.device()

rec = d.screenrecord(remote_path="/data/local/tmp/cu.mp4")
time.sleep(5)
rec.stop_and_pull("fc.mp4")

The result:

AttributeError: '_AdbStreamConnection' object has no attribute 'send'

Lay3r8 commented 2 years ago

@Nucito I have the same problem. Where you able to fix that issue?

Regards

JustinDBruce commented 2 years ago

Any updates here?

codeskyblue commented 2 years ago

fixed

MilkFlavor commented 2 years ago

Wait it still exists?

MilkFlavor commented 2 years ago

from adbutils import AdbDevice, AdbError, Network, _AdbStreamConnection, adb ImportError: cannot import name '_AdbStreamConnection' from 'adbutils' (/home/poka/.local/lib/python3.8/site-packages/adbutils/__init__.py)

codeskyblue commented 2 years ago

_AdbStreamConnection class is removed, use AdbConnection instead.