Category : ubuntu

(base) [email protected]:~/Downloads/BlackPhish$ sudo python3 blackphish.py [sudo] password for divine: Traceback (most recent call last): File "blackphish.py", line 18, in from distutils import dir_util ImportError: cannot import name ‘dir_util’ from ‘distutils’ (/usr/lib/python3.8/distutils/init.py) (base) [email protected]:~/Downloads/BlackPhish$ enter image description here Source: Python..

Read more

When I run this code normally it works and when I run on Sudo(i need to run on sudo) it shows this.Please help me. I need to use keyboard import so i need to run this on sudo. OSError: [Errno -9997] Invalid sample rate) import pyaudio import math import struct Threshold = 100 SHORT_NORMALIZE = ..

Read more

I ran this command in a virtual environment with Python 3.6.7 (OS: Ubuntu 21.04): pip3 install -r requirements.txt –use-deprecated=legacy-resolver Then I got this error: ERROR: Command errored out with exit status -11: command: /home/username/venv/bin/python /home/username/venv/lib/python3.6/site-packages/pip install –ignore-installed –no-user –prefix /tmp/pip-build-env-dm6prya6/overlay –no-warn-script-location –no-binary :none: –only-binary :none: -i https://pypi.org/simple — ‘poetry-core>=1.0.0’ cwd: None Complete output (0 lines): ..

Read more

Using pipenv I have the following pipfile: [[source]] url = "https://pypi.org/simple" verify_ssl = true name = "pypi" [packages] flask = "*" uuid = "*" gunicorn = "*" psycopg2-binary = "*" [dev-packages] [requires] python_version = "3.8" And then my Dockerfile is set up as follows: FROM python:3.8.3-slim-buster RUN useradd deploy_trial WORKDIR /home/deploy_trial RUN pip install pipenv ..

Read more

/var/log/uwsgi/myapp.log: Tue Jan 11 15:27:45 2022 – *** Starting uWSGI 2.0.18-debian (64bit) on [Tue Jan 11 15:27:45 2022] *** Tue Jan 11 15:27:45 2022 – compiled with version: 10.0.1 20200405 (experimental) [master revision 0be9efad938:fcb98e4978a:705510a708d3642c9c962beb663c476167e4e8a4] on 11 April 2020 11:15:55 Tue Jan 11 15:27:45 2022 – os: Linux-5.4.0-92-generic #103-Ubuntu SMP Fri Nov 26 16:13:00 UTC 2021 ..

Read more