How to install Colorama in Python?

I downloaded the colorama module for python and I double clicked the setup.py. The screen flashed, but when I try to import the module, it always says 'No Module named colorama' I copied and...

Best way to structure a tkinter application?

The following is the overall structure of my typical python tkinter program. def funA(): def funA1(): def funA12(): # stuff def funA2(): # stuff def funB(): ...

AutoKey repeating loop

I have been searching forums and the web for hours looking into a way of making a repeating python loop for Autokey. The goal is to allow timed intervals of key presses, such as pressing "1" every...

Detect simultaneous left and right clicks in tkinter gui

Tried doing some searches but was not able to get the answer however if this has been asked before kindly direct me to that post. I have a button in python and would want to bind that button to a...

Format and send seamless audio from JS to local PyAudio

I'm using Unix sockets to stream audio from my microphone (via an Electron NodeJS app) to a python program listening on the socket and sending the audio to PyAudio for playback. Electron app...

Get mouse click coordinates in Python turtle

I am trying to get the coordinates of a mouse click in the turtle screen, but my code isn't working. I guess this is related to time but I tried to add a 5 seconds delay but it didn't help. Here...

creating a complex login and registering system in Tkinter

I am creating a program in python 3.3, whiles using tkinter, which should register the user's personal information such as their email first and second name. so far the user can register...

Downloading zip folder/file from google drive from shared with me folder

I have been provided with access to a zip file/folder which is stored in my google drive and inside "Shared with me". How can I download it to my laptop through terminal using "wget" or python or...

How to control the mouse in Minecraft using Python?

All in all, I'm trying to programmatically -and externally- control the Minecraft player's orientation. No APIs, no Java mods to the game environment Typically this requires the movement of the...

How to update table of contents in docx-file with python on linux?

I've got a problem with updating table of contents in docx-file, generated by python-docx on Linux. Generally, it is not difficult to create TOC (Thanks for this answer...

Issue Deploying Install/Updates On GitHub with ClickOnce

I've been trying to figure out the best way to deploy a WPF application with ClickOnce. I'd download the setup file from the GitHub URL, and cross my fingers, and run into this every...

How to not exit a click CLI?

I'm writing a python script, that should behave like a typical shell and providing some self written functions. It is working quite well already, but it always exits after a successful command, so...

How to change the .load method into direct usage of a variable from the html file in jQuery, for the schedule-template of CodyHouse

I have been a long time lurker on the site, but have finally stumbled upon a problem that made me create an account in the hope I could use your insights. The problem I have is the following. I...

Modify this program so that before it creates the window, it prompts the user to enter the desired background color

When I write a script and run it. Python Terminal starts doing it, but when it comes to prompting a color my program skips this step. The goal is: Modify this program so that before it creates...

Can I use a context value as a click.option() default?

I want to use a value in my configuration (which I load into my context) as the default value for a click command option. I've read this section of the documentation, and I don't think I'm...

Install from pipfile using pipenv install gives error

I have a project where I'm trying to install from the pipfile using pipenv install. I get som error when installing. Before i describe the error, this is what I did: Reinstall pipenv Reinstall...

Python Google Cloud Function won't install Pandas

I'm deploying a Python function as a Google Cloud Function. It tests fine locally and deploys to GCP without complaint. However, when I actually execute it, it crashes with... Error: function...

AttributeError: 'str' object has no attribute 'find_element'

I am a novice in learning selenium with python. Problem Statement:- Getting the following error while trying to identify an object in the chrome browser. AttributeError: 'str' object has no...

Poetry - [AttributeError] 'bool' object has no attribute 'strip'

I am using poetry as a dependency manager for python, and when I'm trying to install the dependencies using poetry: poetry install I get this error: $ poetry install Installing dependencies from...

How to Expand a List with Selenium Webdriver for Python

I am trying to expand a list with Selenium WebDriver for Python, which is controlled by a button that looks like this: List When Closed To give you an idea of how it looks when open: List When...

Selecting Python interpreter from WSL

I am using Windows 10 and want to set the the default VSCode interpreter for Python to be the same one used in my WSL 2 (Ubuntu), so that I'm always using "one Python". When I click "Select Python...

python - fastest way to click mouse

I'm trying to make an auto click bot in python using pyautogui but this takes too much time (it runs in a loop, and xPos/yPos changes every time). What faster ways are there? Thanks for...

Django: Resolving "Reverse for 'password_reset_complete' not found."

I am attempting to do a password reset using Django using custom html templates. I am able to request an password reset by email (using the EMAIL_BACKEND =...

Submitting hcaptcha captcha token to Discord to create an account using selenium

I am using python selenium to create a Discord account (https://discord.com/register), but it is protected with a hcaptcha. I have a captcha API (2captcha/capmonster) to return a captcha token and...

Why am I Unable to install flask (PIP error)?

I am Unable to install Flask or nearly any other modules. My OS: Ubuntu 14.04 LTS (32bit). Ubuntu Comes with pre installed Python2 and Python3. As I had work with flask, I tried to install it with...

Minimal working press and hold example in Selenium

https://stackoverflow.com/questions/68636955/how-to-long-press-press-and-hold-mouse-left-key-using-only-selenium-in-python I am trying the answer by zirene-nguyễn in the above page. But it does...

VSCode Python Interactive Window, variable explorer

I want a Spyder-like Console in VSCode for python, so I run code in Interactive Window and click vairables as other answers said. However, instead of editor area, the jupyter variables shows in...

Running cells with Python 3.10 requires ipykernel installed

I just installed Python 3.10 on my laptop (Ubuntu 20.04). Running a Jupyter Notebook inside of VS Code works with Python 3.9 but not with Python 3.10. I get the error message: Running cells with...

AttributeError: 'dict' object has no attribute 'click' error with find_element_by_css_selector() and click() using Selenium and ChromeDriver

I want to use the click command on my test page. But I'm getting the below error. I've written it in python from selenium import webdriver from selenium.webdriver.common.action_chains import...

Selenium save file to current working directory

I have a website which I'm querying after solving a CAPTCHA. After solving the CAPTCHA my query downloads a PDF file. My issue is that I cannot get FireFox to download the file automatically to...