Closed thlengane closed 3 years ago
I am getting per "error: [Errno 13] Permission denied: 'git'" when I run pip install adbutils
Distributor ID: Ubuntu Description: Ubuntu 20.04.1 LTS Release: 20.04 Codename: focal
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/var/tmp/pip-install-d1c4tyzw/adbutils_cd3060821fbb4327b2a3bc27d37c0b4f/setup.py'"'"'; file='"'"'/var/tmp/pip-install-d1c4tyzw/adbutils_cd3060821fbb4327b2a3bc27d37c0b4f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /var/tmp/pip-record-8xp3owcn/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/i_am_user/.local/include/python3.8/adbutils Check the logs for full command output.
Never mind, it needed sudo access.
Issue:
I am getting per "error: [Errno 13] Permission denied: 'git'" when I run pip install adbutils
OS:
Distributor ID: Ubuntu Description: Ubuntu 20.04.1 LTS Release: 20.04 Codename: focal
Error log:
Building wheels for collected packages: adbutils Building wheel for adbutils (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/var/tmp/pip-install-d1c4tyzw/adbutils_cd3060821fbb4327b2a3bc27d37c0b4f/setup.py'"'"'; file='"'"'/var/tmp/pip-install-d1c4tyzw/adbutils_cd3060821fbb4327b2a3bc27d37c0b4f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /var/tmp/pip-wheel-j5cai2yg cwd: /var/tmp/pip-install-d1c4tyzw/adbutils_cd3060821fbb4327b2a3bc27d37c0b4f/ Complete output (24 lines): setup.py arguments: ['/var/tmp/pip-install-d1c4tyzw/adbutils_cd3060821fbb4327b2a3bc27d37c0b4f/setup.py', 'bdist_wheel', '-d', '/var/tmp/pip-wheel-j5cai2yg'] running bdist_wheel running build running build_py creating build creating build/lib creating build/lib/adbutils copying adbutils/_utils.py -> build/lib/adbutils copying adbutils/errors.py -> build/lib/adbutils copying adbutils/pidcat.py -> build/lib/adbutils copying adbutils/main.py -> build/lib/adbutils copying adbutils/init.py -> build/lib/adbutils copying adbutils/mixin.py -> build/lib/adbutils running egg_info writing adbutils.egg-info/PKG-INFO writing dependency_links to adbutils.egg-info/dependency_links.txt writing requirements to adbutils.egg-info/requires.txt writing top-level names to adbutils.egg-info/top_level.txt [pbr] Reusing existing SOURCES.txt creating build/lib/adbutils/binaries copying adbutils/binaries/README.md -> build/lib/adbutils/binaries installing to build/bdist.linux-x86_64/wheel running install error: [Errno 13] Permission denied: 'git'
ERROR: Failed building wheel for adbutils Running setup.py clean for adbutils Failed to build adbutils Installing collected packages: adbutils Running setup.py install for adbutils ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/var/tmp/pip-install-d1c4tyzw/adbutils_cd3060821fbb4327b2a3bc27d37c0b4f/setup.py'"'"'; file='"'"'/var/tmp/pip-install-d1c4tyzw/adbutils_cd3060821fbb4327b2a3bc27d37c0b4f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /var/tmp/pip-record-8xp3owcn/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/i_am_user/.local/include/python3.8/adbutils cwd: /var/tmp/pip-install-d1c4tyzw/adbutils_cd3060821fbb4327b2a3bc27d37c0b4f/ Complete output (3 lines): setup.py arguments: ['/var/tmp/pip-install-d1c4tyzw/adbutils_cd3060821fbb4327b2a3bc27d37c0b4f/setup.py', 'install', '--record', '/var/tmp/pip-record-8xp3owcn/install-record.txt', '--single-version-externally-managed', '--user', '--prefix=', '--compile', '--install-headers', '/home/i_am_user/.local/include/python3.8/adbutils'] running install error: [Errno 13] Permission denied: 'git'
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/var/tmp/pip-install-d1c4tyzw/adbutils_cd3060821fbb4327b2a3bc27d37c0b4f/setup.py'"'"'; file='"'"'/var/tmp/pip-install-d1c4tyzw/adbutils_cd3060821fbb4327b2a3bc27d37c0b4f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /var/tmp/pip-record-8xp3owcn/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/i_am_user/.local/include/python3.8/adbutils Check the logs for full command output.