(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..
While running some parallelized code in python, my dual boot (Windows 11 / Ubuntu 20.04.3 LTS) laptop suddenly shut down on multiple occasions. Afterwards, when running in Windows, my laptop has also randomly shut down and once booting Ubuntu, the screen started glitching a lot. I’ve been running the code on Ubuntu. My laptop has ..
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 = ..
I was install the pycuda.the system is ubuntu 20.04,the CUDA vision is 11.1,the python vision is 3.9. when i import pycuda ,i got: enter image description here the error i then pip install pycuda again, and got: enter image description here the result how can i do it? Source: Python-3x..
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): ..
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 ..
/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 ..
I ran glob.glob search on two different system and got different sequence. Is there any order in which it returns file name. This is my file details $ ls -lh total 936K -rw-rw-r– 1 uname uname 44K Jan 10 15:18 dev.yaml -rw-rw-r– 1 uname uname 92K Jan 10 15:18 test.yaml -rw-rw-r– 1 uname uname 797K ..
I upgraded my Ubuntu version 18.04 to 20.04 yesterday. I could not install any python package using pip. For example, running – pip install numpy Returns DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support ..
I am making a programm which runs on a VM (Ubuntu) and I shared a folder between the VM and Windows. What I try, is running a python file in the folder shared from the Ubuntu: python3 /media/vm_share/script.py Inside Script.py : import os print(os.getcwd()) "vm_share" is the folder shared between the VM and Windows. Here ..