Giter Site home page Giter Site logo

Comments (4)

yzygitzh avatar yzygitzh commented on July 24, 2024

Hi breezedong,

Seems that DroidBot thought there was no online device, that is, the
adb devices
command returns no usable device. I suggest trying to insert some print or check statements around line 54 of adb.py first (e.g., print r) to confirm that the device list is not empty.

from droidbot.

yuanchun-li avatar yuanchun-li commented on July 24, 2024

I guess it is due to Windows encoding issues.
DroidBot uses split('\n') to split the command line output. However, Windows separates lines with "\r\n".
Please try the latest commit.
By the way, maybe we need some tests on Windows. @yzygitzh

from droidbot.

breezedong avatar breezedong commented on July 24, 2024

Hello,ylimit and yzygitzh, I came to another problem as follow:

`E:\PaperWorkplace\droidbot>droidbot -d 07059e20d0085630 -a dae5b93d99fe9d6d80d647a8a6dbbaf1.apk -env none -event utg_dynamic

INFO:Device:waiting for device
INFO:ADB:adb successfully initiated, the device is 07059e20d0085630
WARNING:Device:Cannot connect to telnet.

Traceback (most recent call last):
File "D:\Program Files\Python2.7\Scripts\droidbot-script.py", line 9, in
load_entry_point('droidbot', 'console_scripts', 'droidbot')()
File "e:\paperworkplace\droidbot\droidbot\droidbot\start.py", line 76, in main
quiet=opts.quiet)
File "e:\paperworkplace\droidbot\droidbot\droidbot\droidbot.py", line 49, in init
self.device = Device(device_serial, output_dir=self.output_dir)
File "e:\paperworkplace\droidbot\droidbot\droidbot\device.py", line 60, in init
self.connect()
File "e:\paperworkplace\droidbot\droidbot\droidbot\device.py", line 157, in connect
self.get_view_client()
File "e:\paperworkplace\droidbot\droidbot\droidbot\device.py", line 217, in get_view_client
from adapter.viewclient import ViewClient
File "e:\paperworkplace\droidbot\droidbot\droidbot\adapter\viewclient.py", line 980, in
from com.dtmilano.android import viewclient
ImportError: No module named com.dtmilano.android`

from droidbot.

yuanchun-li avatar yuanchun-li commented on July 24, 2024

I removed the import line, please try the lastest commit.
Please start a new issue as it is not related to the current one.

from droidbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.