Skip to content

Instantly share code, notes, and snippets.

@diaverso
Created August 14, 2020 00:47
Show Gist options
  • Save diaverso/fa41d913c3c8b254867c654721ca9e87 to your computer and use it in GitHub Desktop.
Save diaverso/fa41d913c3c8b254867c654721ca9e87 to your computer and use it in GitHub Desktop.
sudo -H pip3 install -r requirements.txt
root@vps601307:~/byob/byob# sudo -H pip3 install -r requirements.txt
Ignoring mss: markers 'python_version < "3"' don't match your environment
Ignoring WMI: markers 'python_version < "3"' don't match your environment
Ignoring numpy: markers 'python_version < "3"' don't match your environment
Ignoring pyxhook: markers 'python_version < "3"' don't match your environment
Ignoring twilio: markers 'python_version < "3"' don't match your environment
Ignoring colorama: markers 'python_version < "3"' don't match your environment
Ignoring requests: markers 'python_version < "3"' don't match your environment
Ignoring PyInstaller: markers 'python_version < "3"' don't match your environment
Ignoring pycryptodomex: markers 'python_version < "3"' don't match your environment
Ignoring opencv-python: markers 'python_version < "3"' don't match your environment
Ignoring pyHook: markers 'sys_platform == "win32"' don't match your environment
Ignoring pypiwin32: markers 'sys_platform == "win32"' don't match your environment
Requirement already satisfied: py-cryptonight>=0.2.4 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 1)) (0.3.3)
Collecting pyrx
Cloning https://github.com/jtgrassie/pyrx.git to /tmp/pip-install-tfh0oqxr/pyrx
Running command git clone -q https://github.com/jtgrassie/pyrx.git /tmp/pip-install-tfh0oqxr/pyrx
Running command git submodule update --init --recursive -q
Collecting mss==5.0.0
Using cached mss-5.0.0-py2.py3-none-any.whl (32 kB)
Processing /root/.cache/pip/wheels/02/bc/50/8a2e3fe0f3cc01b0936ffc895a4674cf2a913fb592e15587c2/WMI-1.4.9-py3-none-any.whl
Collecting numpy==1.18.1
Using cached numpy-1.18.1-cp38-cp38-manylinux1_x86_64.whl (20.6 MB)
Processing /root/.cache/pip/wheels/9b/2d/b5/f207c6240de6a02937a430250e641975293d1e14b858d11280/pyxhook-1.0.0-py3-none-any.whl
Processing /root/.cache/pip/wheels/04/1b/50/e709d2fbdb85bdad76403ea9460b40894c3ca123164a68337c/twilio-6.35.4-py2.py3-none-any.whl
Requirement already satisfied: colorama==0.4.3 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 9)) (0.4.3)
Requirement already satisfied: requests==2.22.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 10)) (2.22.0)
Processing /root/.cache/pip/wheels/57/9a/e0/213da356866201eac897534a77c7af30b48b48c2734e30a25f/PyInstaller-3.6-py3-none-any.whl
Collecting pycryptodome==3.9.6
Using cached pycryptodome-3.9.6-cp38-cp38-manylinux1_x86_64.whl (13.7 MB)
Processing /root/.cache/pip/wheels/d0/99/d0/0298ea019d63f1d63a0965b9944b719e875f9bd6ffc6dcf293/pycrypto-2.6.1-cp38-cp38-linux_x86_64.whl
Collecting python-xlib
Using cached python_xlib-0.27-py2.py3-none-any.whl (174 kB)
Collecting pytz
Using cached pytz-2020.1-py2.py3-none-any.whl (510 kB)
Requirement already satisfied: PyJWT>=1.4.2 in /usr/lib/python3/dist-packages (from twilio==6.35.4->-r requirements.txt (line 8)) (1.7.1)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from twilio==6.35.4->-r requirements.txt (line 8)) (1.14.0)
Collecting altgraph
Using cached altgraph-0.17-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from PyInstaller==3.6->-r requirements.txt (line 11)) (45.2.0)
Building wheels for collected packages: pyrx
Building wheel for pyrx (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tfh0oqxr/pyrx/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tfh0oqxr/pyrx/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 /tmp/pip-wheel-mnwtd_kj
cwd: /tmp/pip-install-tfh0oqxr/pyrx/
Complete output (45 lines):
running bdist_wheel
running build
running build_ext
Traceback (most recent call last):
File "/tmp/pip-install-tfh0oqxr/pyrx/setup.py", line 21, in run
out = subprocess.check_output(['cmake', '--version'])
File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cmake'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-tfh0oqxr/pyrx/setup.py", line 59, in <module>
setup(
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 223, in run
self.run_command('build')
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-tfh0oqxr/pyrx/setup.py", line 23, in run
raise RuntimeError("CMake must be installed to build the following extensions: " +
RuntimeError: CMake must be installed to build the following extensions: pyrx
----------------------------------------
ERROR: Failed building wheel for pyrx
Running setup.py clean for pyrx
Failed to build pyrx
Installing collected packages: pyrx, mss, WMI, numpy, python-xlib, pyxhook, pytz, twilio, altgraph, PyInstaller, pycryptodome, pycrypto
Running setup.py install for pyrx ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tfh0oqxr/pyrx/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tfh0oqxr/pyrx/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ngy2m3p3/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/pyrx
cwd: /tmp/pip-install-tfh0oqxr/pyrx/
Complete output (47 lines):
running install
running build
running build_ext
Traceback (most recent call last):
File "/tmp/pip-install-tfh0oqxr/pyrx/setup.py", line 21, in run
out = subprocess.check_output(['cmake', '--version'])
File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cmake'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-tfh0oqxr/pyrx/setup.py", line 59, in <module>
setup(
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib/python3.8/distutils/command/install.py", line 589, in run
self.run_command('build')
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-tfh0oqxr/pyrx/setup.py", line 23, in run
raise RuntimeError("CMake must be installed to build the following extensions: " +
RuntimeError: CMake must be installed to build the following extensions: pyrx
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tfh0oqxr/pyrx/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tfh0oqxr/pyrx/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ngy2m3p3/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/pyrx Check the logs for full command output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment