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

Runs, but can't connect #71

Open
mediamanrit opened this issue Jan 6, 2019 · 1 comment
Open

Runs, but can't connect #71

mediamanrit opened this issue Jan 6, 2019 · 1 comment

Comments

@mediamanrit
Copy link

mediamanrit commented Jan 6, 2019

I got the damon running, by using Python 2.7. However there appears to be a change in how the adb library works, and I can't figure out the fix. I even had to add some of my own debugging in the FireTV class to get the error. When the code in connect(self) runs, it throws an error I was able to catch by putting "print serr" after the log line. Here's the result:

pi@lirc-officerack:~ $ sudo firetv-server -d 192.168.0.80:5555
WARNING:root:Couldn't connect to host: 192.168.0.80:5555, error: None
getaddrinfo() argument 2 must be integer or string
 * Serving Flask app "firetv.__main__" (lazy loading)
 * Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: off

Something is clearly happening inside the adb library for argument 2, but I can't find any good documentation on it to figure out what's wrong.

@mediamanrit
Copy link
Author

mediamanrit commented Jan 6, 2019

FYI, I also tried specifying the key details in the config file. My file:

  office:
    host: 192.168.0.80:5555
    adbkey: /home/pi/.android/adbkey

I then ran it with the config file option, and got similar results (with some added debugging lines I added:

pi@lirc-officerack:~ $ firetv-server -c /home/pi/firetv.conf
WARNING:root:Couldn't connect to host: 192.168.0.80:5555, error: None
getaddrinfo() argument 2 must be integer or string
{'serial': '192.168.0.80:5555', 'rsa_keys': [<adb.sign_pythonrsa.PythonRSASigner object at 0x76143390>]}
 * Serving Flask app "firetv.__main__" (lazy loading)
 * Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: off

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