People who code: we want your input. Take the Survey

Questions tagged [python3]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

How to create a new bash profile in mac osx high sierra?

I am running High Sierra 10.13.6 off a fresh install. Running ls -a, I can see .bash_history and .bash_sessions, but do not see .bash_profile. Having just installed homebrew, I am following this guide ...
0
votes
1answer
26 views

Issue opening and running Python in PowerShell

I am new to python programming (already know C) and am following Zed Shaw's book Learn Python the Hard Way. For that, I need to use Python on PowerShell. When I type python in CMD, Python opens up ...
0
votes
0answers
19 views

How to create files in Windows with root privileges for Linux in Python without Windows admin rights?

I'm trying to create a number of files in Windows (as a non-admin user) using a Python script that will have the Linux UID of 0. This is so that when the file is moved into the Linux distro it will ...
0
votes
0answers
37 views

leptonica/allheaders.h is missing for tesseocr installation on M1 macs with homebrew

i was trying to install normcap for OCR reading of images but i got into an error and don't understand how to solve it. PC - Macbook M1 chipset homebrew 3.1.7 installed and working fine. ...
0
votes
0answers
15 views

Multiple cursors at once functionality, just as in the Visual Studio Code but in every Windows application?

Was wondering if this: https://code.visualstudio.com/docs/editor/codebasics can be implemented with WinApi or by DLL calls using something such as https://www.autohotkey.com/docs/commands/DllCall.htm ...
0
votes
1answer
37 views

How to install python2 packages using pip while having python3?

I am on Parrot OS. I have both python 2 and Python 3 installed. ┌─[✗]─[jaysmito@parrot]─[~/] └──╼ $python --version Python 3.9.2 ┌─[jaysmito@parrot]─[~/] └──╼ $python2 --version Python 2.7.18 And pip:...
1
vote
1answer
90 views

Pip3 not working at all

So a couple days ago, I had a problem where pip3 just stopped working. I was planning on upgrading my WSL2 anyway, so I just migrated to Ubuntu 20. But the same problem has occurred here too! I can't ...
0
votes
1answer
390 views

Upgrade python from 3.8.5 to 3.8.8 on Ubuntu 20.04 LTS

I'm currently trying to upgrade the python version from 3.8.5 to 3.8.8 on Ubuntu 20.04 LTS. I've been able to find information to upgrade python version from version X.Y1 to X.Y2 (minor release in ...
1
vote
0answers
267 views

Ansible installed via pip3, but Ansible commands not found

I have installed Ansible via pip3, but I can't find the Ansible commands (ansible --version, ansible-playbook, etc.) Here's the listing that shows that Ansible is installed via pip3: :~# pip3 list | ...
0
votes
0answers
31 views

How do I properly stream media from a local http server running on my laptop to other devices on my WiFi network?

So I am running a simple http server on a certain directory on my laptop (say Music/), with python -m http.server - the command starts up a server on my machine with port 8000. I proceed to look up my ...
0
votes
0answers
28 views

How to redirect all network requests by all files in a server folder to the appropiate local files?

I'm trying to download a static website www.example.com (all the files are loaded in at first request) to a local folder Website1. The folder structure would be www.example.com and any other domain ...
1
vote
0answers
14 views

How to change the target directory of target-csv when running tap-target script inside python? [closed]

I am trying to a script run.sh using python subprocess The script creates a csv file and a state.json file in the cwd This is the script(works fine when i run it from terminal) : #!/bin/bash export ...
3
votes
0answers
1k views

Can't install with pip: SSL error

I'm new to coding and have recently started learning Python. Whenever I enter pip install django (for example), I get these error messages: WARNING: Retrying (Retry(total=0, connect=None, read=None, ...
1
vote
1answer
65 views

Autokey error, not apparently related to my script

I have written a small Autokey script to start Firefox full-screen with a certain URL. The script has worked well for a couple of years. Since a system upgrade, it has started producing a Python error ...
0
votes
1answer
58 views

Broken raspberry pi 4 case python3 script causes disk errors

I am using kali linux on raspberry pi 4 and argon one case I installed argon one fan and power button script with that command: sudo curl https://raw.githubusercontent.com/meuter/argon-one-case-ubuntu-...
0
votes
0answers
33 views

Ffprobe: Pull out the duration in seconds and the bitrate

ffprobe -i "+file+" -show_entries format=duration -v quiet -of csv='p=0' So I get the duration of the video in seconds. But what if you need to get both the duration and the bitrate as an ...
0
votes
0answers
19 views

Anaconda 1.10 installation how to create new environments with Python 3.7 rather than 3.8?

I installed Anaconda 1.10 (Win 10 Home, 64-bit, 20H2; with installer Anaconda3-2020.11-Windows-x86_64) When I tried to create a new environment, only Python 3.8 was offered. How do I create a new ...
0
votes
0answers
13 views

Put number of each point in a contour image

I calculated the number of red circle in the image. I need to put number in each circle of my image. Attached here my output image. Your assistance would be appreciated. My code is- if count2: ...
1
vote
0answers
222 views

On Mac Big Sur, what's the correct way to build Python 3.9 with SSL support?

I'm using Mac Big Sur. I want to build Python with SSL support from the binary, whcih I downloaded from here -- https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tgz. Following the instructions ...
0
votes
0answers
24 views

Python Bokeh server behind reverse proxy and no wss

I have a Python bokeh application that has to be accessed via a reverse proxy (for user authentification). The reverse proxy in use, appearently, only allowes http and https, but no wss. The ...
2
votes
1answer
148 views

couldn't upgrade to fedora due to error “nothing provides python3.8dist(python-magic)”

I'm using fedora 32. I did sudo dnf update -y I got below error - $ sudo dnf update -y Last metadata expiration check: 1:24:24 ago on Mon 30 Nov 2020 04:42:35 PM EST. Dependencies resolved....
0
votes
0answers
20 views

NameError: name 'Seq2SeqModel' is not defined

kindly help my where`s the error is this code: (TensorFlow 2, Google Colab) Seq2SeqModel.predict_for_batch = classmethod(predict_for_batch) Seq2SeqModel.predict_for_batch_with_loss = classmethod(...
0
votes
0answers
362 views

python3 is not recognized as an internal or external command.operable program or batch file

i have python 3.8.6 installed in my Windows 7 x64 .Whenever i try to run python3 as a command.it gives me an message stating that python3 is not recognized as an internal or external command.operable ...
0
votes
1answer
2k views

sslstrip ImportError: No module named twisted.web

I can't get sslstrip to work... When I run sslstrip I get this: Traceback (most recent call last): File "/usr/local/bin/sslstrip", line 27, in <module> from twisted.web import ...
0
votes
1answer
35 views

Pycharm puts red lines on valid annotations in python3.7

When adding type hints to my python3.7 code. I often don't import the actual classes to avoid circular dependencies. Instead I use from __future__ import annotations to let them be converted to ...
0
votes
1answer
2k views

pipenv fails on Ubuntu 20.04

I was trying to use pipenv on Ubuntu 20.04 and got a perplexing error message. First, you must install pipenv. Install pipenv locally, not system wide, or you get into a whole different can of worms! ...
0
votes
0answers
52 views

TEXT EDITING for data processing

I have a question about text editing I have a big text file that contain input list in it as you see the example of that file on the picture. the list look like this: Input form jalan ba-jalan pem-...
0
votes
0answers
32 views

Extract data from excel, based on one column condition SQL query should get the values and table name from excel sheet in python

Read the excel if column K9= pass through then read n,o,p and a,b,c /* TARGET */ 4.select count(*) from A9.B9 where column='C9'; /SOURCE/ select count(*) from N9.O9 where column='P9'; connect to ...
0
votes
1answer
505 views

Error using pip with requirements.txt

I have never used requirements.txt before, and just came across it following a tutorial. My file looks like this: pip install kivy pip install kivy-deps.angle pip install kivy-deps.glew pip install ...
1
vote
0answers
582 views

When trying to install Python3 on an Intel Chromebook - getting error “Sudo: user does not exist in passwd database”

I'm trying to run Python 3 on Linux. My Device is Chromebook with Intel processor. I've tried downloading python by 2 different methods. I'm new to coding and trying to learn. I would appreciate any ...
0
votes
0answers
30 views

Dependency issue with Thingsboard-gateway package installer

i've recently been trying to install Thingsboard Gateway on a gateway running linux Debian 9 32bits, but the packages installer says "missing dependency: python3-paho-mqtt", i have python2.7 ...
2
votes
3answers
7k views

How do I alias python3 on Windows?

I want to alias python3 to python on windows. I have already removed the alias for the microsoft store as described in this answer. However python3 is still not a known alias. How to I fix this?
-2
votes
1answer
88 views

Cannot retrieve a value from a web page using Selenium in Python3 [closed]

iam just trying to login to a webpage using selenium to post credentials to it and the use XPath to get the the profit value. My code is: #!/usr/bin/python3 # coding=utf-8 from selenium import ...
1
vote
0answers
49 views

Can't add any apt repository due to issues with python3

i am trying to add an apt repository, but i get an error saying: Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 11, in <module> from ...
2
votes
0answers
76 views

ImportErrorr triggered by pandocfilters installed by pip3

Goal To get pandocfilters running with pip3. My Error Here's my steps to reproduce the error. Install pandocfilters through pip3: pip3 install pandocfilters. Download the scripts examples/caps.py and ...
0
votes
0answers
54 views

creating mp4 with single png and audio file

I have been trying to use ffmpeg with python 3 to create a mp4 video from 1 single .png image file and 1 single .mp3 file (an audio file about 8 seconds long). I have been trying with all sorts of ...
0
votes
1answer
136 views

Why does launching IDLE from a second terminal window eventually lead to it freezing both? What's a good work-around or fix?

I have a new macOS laptop with recent Anaconda Python 3.7 installation. I use iTerm2 to open two bash command windows; from the first one I run Python and in the second one I just type "idle"...
0
votes
0answers
59 views

Linux: Use Python Selenium to check if Firefox tab crashed

I am using a simple python script to open a URL on firefox, but after a short time, Firefox crashes. I want to find a way to know that the tab has crashed to refresh the driver. I hope someone can ...
0
votes
1answer
220 views

Running Scripts without Interruption from Amazon Workspace Windows 10

I am running a Windows 10 Desktop Amazon Workspace. This is set to "always on". There are python scripts that I wish to run there indefinitely. However, the workspace will restart itself ...
1
vote
0answers
746 views

Python 3.8 in Cygwin

I've been using Cygwin on a Windows 7 machine for a long time. Recently trying to install a project from git and virtualenv defaults to python 2.7 I have python3.6m installed, but when I execute the ...
0
votes
1answer
52 views

How to retrieve currently open documents in LibreOffice (calc, writer, etc.)

I need to read / retrieve / get / enumerate currently open documents in any LibreOffice app (Writer, Calc, Present, Draw), on linux. What I tried: Searching the command line history is not helpful: ...
0
votes
1answer
116 views

Why does not http call /usr/bin/http instead of /usr/local/bin/http? [duplicate]

Show my path: echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/lib/go/bin Issue http command: http --version bash: /usr/local/bin/http: No such file or directory Where does ...
1
vote
0answers
16 views

unable to execute VBoxManage command in python executable (created with pyinstaller)

OS: Ubuntu 16.04 LTS make an install.py file executable: pyinstaller -w install.py --onefile install.py script: import os VM = os.system('VBoxManage startvm win10 --type headless') if VM == 0: ...
0
votes
1answer
806 views

macOS Console Vim Python3 Install

I know this question has been asked in many various forms, but I have not yet been able to get any of the answers to work. If anybody can point me in the right direction, it would be greatly ...
0
votes
2answers
364 views

Is it possible for a windows service to print a PDF file?

I have this function within a Python script that has been installed as a windows service with NSSM. When the Python script is run normally (i.e. not as a service), the file is printed. However, when ...
0
votes
1answer
86 views

Cron jobs do not execute

I have 3 python scripts which are scheduled in the same crontab as : # Script 1 0 0,6,12,18 * * * cd path/to/script && /usr/bin/python3.8 -W ignore script1.py >> file1.out # Script 2 0 ...
1
vote
0answers
92 views

Adding pip, pip3, pip3.7 to PATH [duplicate]

Hi after the installation, I got this warning: The scripts pip, pip3 and pip3.7 are installed in '/Users/stevetsang/Library/Python/3.7/bin' which is not on PATH. Consider adding this directory to ...
0
votes
1answer
133 views

unresolved import 'chromedriver_install' Python(unresolved-import)

py -m pip install chromedriver_install Requirement already satisfied: chromedriver_install in c:\users\bckelley\appdata\local\programs\python\python38-32\lib\site-packages (1.0.3) Does anyone know ...
0
votes
0answers
64 views

Is it possible to have a ctypes meassege box for a python script that is installed as a NSSM service?

OS: Windows 10 I have this python script that asks the user if he/she would like to print a file. While running this python script manually it works fine. However, when installing the Python script ...
0
votes
1answer
123 views

Setting python shell version with .sh file

I am executing my ./shell.sh which contains eval "$(pyenv init -)" pyenv shell 3.8.2 But nothing happens. If i run this code in bash manually it works fine and shell version of python switches from ...

1
2 3 4 5 6