You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
"pkg_resources.DistributionNotFound: The 'python-rsa' distribution was not found and is required by adb"
op.expanduser('~/.android/adbkey'))
File "/home/vxerlee/python-adb/adb/sign_m2crypto.py", line 24, in init
with open(rsa_key_path + '.pub') as rsa_pub_file:
IOError: [Errno 2] No such file or directory: '/home/vxerlee/.android/adbkey.pub'
Hmm, python-rsa isn't depended on anywhere (just in the docs, will fix in master). You need rsa installed or M2Crypto or pycryptodome. It looks like you have M2Crypto installed, but no adbkey available. Typically, the adbkey is created by android's adb because it's not documented how else to create it.
Theoretically, it's a standard RSA private/public key pair, so if you find how to create it using the three libraries we support, then we can create the file when it doesn't exist rather than error out like we're doing now.
changed the title [-]"pkg_resources.DistributionNotFound: The 'python-rsa' distribution was not found and is required by adb"[/-][+].android/adbkey missing[/+]on May 31, 2018
I have similar problem - application is distributed in Docker container and runs almost completely isolated from host filesystem, we don't have even adb installed in host system so we're not able to run adb keygen <filename> to generate key pair. Now we either have to distribute pregenerated keys along with application data (I consider this viable only for dev/debug/test), or generate keys with android's adb in subprocess. It would be great if we had a command for this.
Activity
fahhem commentedon May 31, 2018
Hmm, python-rsa isn't depended on anywhere (just in the docs, will fix in master). You need
rsainstalled orM2Cryptoorpycryptodome. It looks like you haveM2Cryptoinstalled, but no adbkey available. Typically, the adbkey is created by android's adb because it's not documented how else to create it.Theoretically, it's a standard RSA private/public key pair, so if you find how to create it using the three libraries we support, then we can create the file when it doesn't exist rather than error out like we're doing now.
[-]"pkg_resources.DistributionNotFound: The 'python-rsa' distribution was not found and is required by adb"[/-][+].android/adbkey missing[/+]zgoda-mobica commentedon Jun 6, 2018
I have similar problem - application is distributed in Docker container and runs almost completely isolated from host filesystem, we don't have even
adbinstalled in host system so we're not able to runadb keygen <filename>to generate key pair. Now we either have to distribute pregenerated keys along with application data (I consider this viable only for dev/debug/test), or generate keys with android's adb in subprocess. It would be great if we had a command for this.bibz commentedon Dec 20, 2018
Isn't this a duplicate of #131 now?
Add pyadb keygen command to generate keypairs
Add pyadb keygen command to generate keypairs