You ate running code written for python 2 using python 3.
That will not work.
Unless you have python 2 on your mac you will need to port the code to python 3 if there is not a version of code you can get that has python 3 compatible.
I also have a 2.7 version. If you run the following errors on it:
</>
sh-3.2# python acp --host 172.19.22.75 --password 12345678 setprop dbug 0x3000
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/Users/aleksandr/acp/__main__.py", line 1, in <module>
import cli
File "acp/cli.py", line 9, in <module>
from .basebinary import *
ValueError: Attempted relative import in non-package
</>
in general, initially airpyrt is installed with errors that I cannot defeat:
</>
sh-3.2# python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to acp.egg-info/requires.txt
writing acp.egg-info/PKG-INFO
writing top-level names to acp.egg-info/top_level.txt
writing dependency_links to acp.egg-info/dependency_links.txt
writing entry points to acp.egg-info/entry_points.txt
reading manifest file 'acp.egg-info/SOURCES.txt'
writing manifest file 'acp.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.6-intel/egg
running install_lib
running build_py
creating build/bdist.macosx-10.6-intel
creating build/bdist.macosx-10.6-intel/egg
creating build/bdist.macosx-10.6-intel/egg/acp
copying build/lib/acp/misc.py -> build/bdist.macosx-10.6-intel/egg/acp
copying build/lib/acp/exception.py -> build/bdist.macosx-10.6-intel/egg/acp
copying build/lib/acp/encryption.py -> build/bdist.macosx-10.6-intel/egg/acp
copying build/lib/acp/property.py -> build/bdist.macosx-10.6-intel/egg/acp
copying build/lib/acp/client.py -> build/bdist.macosx-10.6-intel/egg/acp
copying build/lib/acp/cflbinary.py -> build/bdist.macosx-10.6-intel/egg/acp
copying build/lib/acp/session.py -> build/bdist.macosx-10.6-intel/egg/acp
copying build/lib/acp/__init__.py -> build/bdist.macosx-10.6-intel/egg/acp
copying build/lib/acp/message.py -> build/bdist.macosx-10.6-intel/egg/acp
copying build/lib/acp/basebinary.py -> build/bdist.macosx-10.6-intel/egg/acp
copying build/lib/acp/cli.py -> build/bdist.macosx-10.6-intel/egg/acp
copying build/lib/acp/__main__.py -> build/bdist.macosx-10.6-intel/egg/acp
copying build/lib/acp/keystream.py -> build/bdist.macosx-10.6-intel/egg/acp
byte-compiling build/bdist.macosx-10.6-intel/egg/acp/misc.py to misc.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/acp/exception.py to exception.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/acp/encryption.py to encryption.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/acp/property.py to property.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/acp/client.py to client.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/acp/cflbinary.py to cflbinary.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/acp/session.py to session.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/acp/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/acp/message.py to message.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/acp/basebinary.py to basebinary.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/acp/cli.py to cli.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/acp/__main__.py to __main__.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/acp/keystream.py to keystream.pyc
creating build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying acp.egg-info/PKG-INFO -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying acp.egg-info/SOURCES.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying acp.egg-info/dependency_links.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying acp.egg-info/entry_points.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying acp.egg-info/requires.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying acp.egg-info/top_level.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/acp-1.0-py2.7.egg' and adding 'build/bdist.macosx-10.6-intel/egg' to it
removing 'build/bdist.macosx-10.6-intel/egg' (and everything under it)
Processing acp-1.0-py2.7.egg
Removing /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/acp-1.0-py2.7.egg
Copying acp-1.0-py2.7.egg to /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
acp 1.0 is already the active version in easy-install.pth
Installing acp script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Installed /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/acp-1.0-py2.7.egg
Processing dependencies for acp==1.0
Searching for pycrypto
Reading https://pypi.python.org/simple/pycrypto/
Download error on https://pypi.python.org/simple/pycrypto/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) -- Some packages may not be found!
Couldn't find index page for 'pycrypto' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) -- Some packages may not be found!
No local packages or working download links found for pycrypto
error: Could not find suitable distribution for Requirement.parse('pycrypto')
sh-3.2#