Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [python]

Python is an interpreted, general, high-level programming language. Programming questions are off topic. Questions about the use of Python should be asked at Stack Overflow (https://www.stackoverflow.com) instead.

Filter by
Sorted by
Tagged with
0 votes
1 answer
8 views

Neovim Python semantic syntax highlighting not working

I got Neovim recently. I am using init.vim and Vim plug. I am trying to get semantic highlighting working in Python3 files. For example, in Typescript when I call this.get_card("df", dfinfo),...
kalilamodow's user avatar
0 votes
0 answers
21 views

The bot doesn't play music (discord.py) [closed]

The code works fine, but when using the command in guild the bot enters the voice channel but doesn't play music, immediately console gives: ffmpeg process 56560 successfully terminated with return ...
Naydar's user avatar
  • 1
-1 votes
0 answers
12 views

Using Python Interpreter Installed through WSL in Windows App

The title might sound a bit confusing but I couldn't think of a better way to phrase it. What I'm dealing with is the following: I've installed miniconda through WSL and I'd like to use the base conda ...
zaccandels's user avatar
0 votes
0 answers
41 views

How to fix python installation on windows 10?

On windows 10 my python installation does not seem to work anymore. When I run python I get an error Program 'python' failed to run: No application is associated with the specified file for this ...
Alex's user avatar
  • 686
1 vote
1 answer
46 views

Give python program location services access via command line on MacOS

I am trying to run a python program requiring location services on MacOS Sonoma 14.4.1. I was using iTerm2 and expected a pop-up asking if the app could have access to my location. However, nothing ...
Gabriel's user avatar
  • 11
0 votes
0 answers
25 views

AutoComplete in Python Terminal

How to enable AutoComplete/ suggestions in Python Terminal, when launched? Like PSReadline in PowerShell, or Command Prompt with Clink installed. I tried to install autocomplete, but there has been no ...
Mr.Key7's user avatar
  • 608
0 votes
0 answers
22 views

Program associated with custom file extension isn't receiving command line arguments

When Python is first installed, the extension .py is associated with C:\windows\py.exe, which runs the Python script. Now I do a lot of Python development, so I set it to open with my IDE instead, but ...
xenon134's user avatar
0 votes
0 answers
28 views

Customizing Apps List in Anaconda Navigator

I am going through a beginner's course for Python and for the course I only need Jupyter Notebook in the list of apps. It's a bit annoying that, every time I want to open a Notebook to do my course, I ...
marky's user avatar
  • 161
0 votes
2 answers
99 views

How to Make Python CommandLine Loads Script Automatically When Opened?

Is possible a script to automatically loaded when python (Interactive Mode) is executed? I mean like the script in $Profile PowerShell, which when PowerShell executed, the script is automatically ...
Mr.Key7's user avatar
  • 608
2 votes
2 answers
57 views

Avoiding accidental execution of python scripts as bash scripts

I like to run my python scripts directly in bash like so $ ./script.py But sometimes I forget the shebang line #!/usr/bin/env python3, and it has the potential to overwrite a file named np if the ...
user1537366's user avatar
0 votes
0 answers
8 views

Python script in "Task Scheduler" runs forever [migrated]

I can't figure out why my Python script works perfectly in the console when I execute it like this (runs for 1-2 seconds): But if I run it in the task scheduler (either manually or at the scheduled ...
NaturalBornCamper's user avatar
1 vote
2 answers
120 views

How to install Azure Cognitive Services Speech from source

I want to install Azure Cognitive Services Speech SDK in Python. On a Macbook, I can run: python3 -m pip install azure-cognitiveservices-speech and it works. On an iMac, the same command throws: ...
emonigma's user avatar
  • 2,027
6 votes
1 answer
647 views

Are there commands in PowerShell 7 to split the current window into four and request to run Python files in each of them?

Currently, I click + 3x while holding Alt to create four divided terminals within the same tab: In each of these, I need to run a different Python commnd: cd "C:\Users\Computador\Desktop\Test ...
Digital Farmer's user avatar
0 votes
1 answer
53 views

Windows 11 Taskbar Icon Not Match File Icon

The EXE file '360 DFV STITCHER xxx.exe' was created using Pyinstaller. The Taskbar shows the GUI LOGO icon 'logo.png' and the EXE file shows the icon '360_stitcher.ico'. What was attempted to solve ...
CANJMP's user avatar
  • 23
1 vote
1 answer
66 views

Homebrew and Python 2.7, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11 and 3.12: How to clean them all?

After the latest Homebrew update broke all Python related stuff (ver >= 3.12), I decided to clean up Homebrew completely, by removing all brew related stuff, and also cleaning up the Python mess ...
Papi Antoniadis's user avatar
0 votes
0 answers
43 views

How can I make notepad++ display the tab stops as specified in the language settings?

The vertical lines shown in notepad++ every 4 spaces, when I select python as the language they change to every 8 spaces, the tab ley actually inserts 4 spaces but the vertical lines do not show every ...
arana's user avatar
  • 642
0 votes
0 answers
21 views

Is it possible to install Python in a different directory from the node.js default for extra tools and keep using it in node?

I installed node but my ssd only has 6 GB free so I didn't install nose.js extra tools (or something similar) that include python. Yet, once working in node, I realized that at least Python would be ...
Paulo Pinheiro's user avatar
0 votes
1 answer
642 views

How to fix python error "OSError: [WinError 10049] The requested address is not valid in its context" on windows 10?

On a windows 10 system I am trying to listen to a multicast sender given an IP address and a port. It works without any problems on Ubuntu, but on windows I get the error OSError: [WinError 10049] The ...
Alex's user avatar
  • 686
0 votes
0 answers
43 views

I cannot uninstall python after deleting program cache

I am really really new to python so please do not assume I understand any lingo or what I am doing in any way. I am using a windows machine with windows-10 professional. I recently tried to free up ...
robbi's user avatar
  • 1
-4 votes
1 answer
50 views

Predict a disk's near failure or burnout [closed]

I have a project to submit on computer resource's monitoring, and for that I wish to create a CLI program -for Linux and Windows- that analyses the data provided by SMART each time the computer ...
GuteShel's user avatar
0 votes
0 answers
44 views

network errors in windows

i am desperately trying to fix this for weeks, when doing anything that requires internet with anaconda on windows it gives this error: Retrieving notices: ...working... Retrying (Retry(total=2, ...
walter becker's user avatar
0 votes
0 answers
359 views

Using python-gnupg library in AWS lambda function

I'm using Python 3.12 in an AWS Lambda function to decrypt PGP encrypted files. I'm using the python-gnupg version 0.6.0 library to do this. It decrypts files fine on my development Mac but fails when ...
writes_on's user avatar
  • 101
0 votes
0 answers
73 views

How to draw a moving line as slider for the image comparison video generator script in Python with FFmpeg

I have the below script to generate a video slider with FFmpeg You can see example here (first 10 seconds) : https://youtu.be/F_wf1uHqZRA I am trying to replicate effect of imgsli like a person is ...
Furkan Gözükara's user avatar
0 votes
0 answers
329 views

Unable to Uninstall Anaconda3 on Windows 11

I can't uninstall Anaconda3 from my system. I have spent a lot of hours searching for a solution to this and have tried everything I can find and was able to understand. I have Anaconda3 2023.09-0 ...
NoobCoder's user avatar
1 vote
0 answers
185 views

concatenating multiple files is giving Non-monotonic DTS in output stream error

I am trying to concatenate multiple video files with ffmpeg and python with the following code :- def story(path): videos = [f for f in os.listdir(path) if f.endswith(".mp4")] print(videos) ...
nish's user avatar
  • 41
1 vote
1 answer
118 views

How do I create a pty without a shell?

Backstory: I have a CLI Python application. I want to be able to debug it without interfering with the CLI of the main application. The Python debugger allows you to specify an alternative stdin/...
FrederikVds's user avatar
0 votes
2 answers
35 views

How would you include a specific module to load at boot in Debian?

I am working with Klipper for 3D printing, and I came across a pull request that allowed for TTY support in Klipper, to allow a Mosaic Palete 3 Pro to control the printer for its Connected Mode. I ...
Ian's user avatar
  • 1
-1 votes
1 answer
43 views

How to match arbitrary adjacent identical strings? [closed]

There are some repeating strings in my data that I need to find. They have a pattern that they repeat twice, and the repetitions are adjacent, with no space in between. They can have arbitrary lengths ...
Vegetable New Man's user avatar
0 votes
0 answers
49 views

starting chrome via WebDriver session wont use default profile - windows

I came from this GitHub but there are mainly linux prof. When I run the program via cmd chrome is opened but without any default profiles: chrome via program When I run chrome direct via cmd with &...
Tylonhh's user avatar
0 votes
0 answers
120 views

Cannot activate Python virtual environment from within shell script (zsh)

I cannot activate a Python virtual environment from within a shell script (zsh). I have tried the following: #!/bin/zsh conda create -n myenv python=3.10 conda activate myenv It sends me the error ...
NilsK's user avatar
  • 145
1 vote
1 answer
189 views

Why is rsync so much slower than my Python script for syncing?

I have the following Python script that I sometimes use to mirror large directories (main logic for syncing is implemented within sync_directory()). It also tries to mirror other metadata such as file ...
j-gopal's user avatar
  • 11
0 votes
0 answers
65 views

Chromedriver not found in Cygwin although it exists

After a couple hours of trying everything I could, I'm posting the question here. I'm trying to run this python script which uses chromium in order to execute. https://github.com/FallingLights/...
superuser's user avatar
  • 3,504
0 votes
1 answer
51 views

Loop of screens with a loop inside does not pick variable values

How can we execute a loop of screens, each of them executing a loop so that it picks both inner and outer variables? Consider this: # does not print i for i in 1 2; do screen -dmS screen-${i} ...
superAnnoyingUser's user avatar
0 votes
0 answers
72 views

Why is faster pc i5:ram 4, ssd 256, core 4, then laptop i7: ram 16, ssd 500, core 10?

I have such a case and maybe you can help me, what is the reason? I did a test, reading an excel file (310 MB) in python (pandas). Laptop(IdeaPad Slim 5 16IRL8): i7, ram 16, ssd 500, core 10, 2.4 ghz, ...
Lucas Tornike's user avatar
0 votes
0 answers
66 views

Unsure what happening with my terminal but I'm getting a weird response

Whenever I run a python file, (vs code) or even open my terminal on mac I get a warning saying. /Users/ABC/.zshrc:1: command not found: “alias /Users/ABC/.zshrc:2: command not found: “alias /Users/ABC/...
Angus_U22's user avatar
0 votes
0 answers
65 views

How to run main.py in Pico (via Thonny) if I plug in a keyboard (on Ubuntu)?

Context After having written the following keyboard "driver" on a Raspberry Pico: print("Starting") import board from kmk.kmk_keyboard import KMKKeyboard from kmk.keys import KC ...
a.t.'s user avatar
  • 413
0 votes
0 answers
45 views

Show the current occurrence for a searched term as a number out of the total of all occurrences of that term through a file for Notepad++

For example I have this document that in Notepad++ it takes only one line, where the word "calculator" has 112 occurences (see the 2 red rectangles): , but when I go ahead to use "Find ...
rd51's user avatar
  • 457
0 votes
1 answer
412 views

Is it normal for Ubuntu (WSL) to take up 40GB of space?

I've tried running this to cleaning out docker images, etc… with this command: compact vdisk The filesystem allocation is 1007GB and only 4% is used. How do I fix this? All the forums and questions ...
Asia's user avatar
  • 11
2 votes
1 answer
32 views

How to determine what program is writing error log every 10 seconds?

A long time ago on my Macbook I worked through an online tutorial on automating tasks: Automate the Boring Stuff. I've since gotten a new laptop. On the new laptop, I've tried to get rid of the folder ...
mrwnt10's user avatar
  • 119
0 votes
1 answer
145 views

How to correct the indentation of Python code with BBedit? Or some other tool?

I have a Python code of about a thousand lines, contained in a .py file, and I would like to fix, possibly automatically, the indentation (i.e. at the first level four characters, then eight, and so ...
Claudio Pedrazzi's user avatar
0 votes
0 answers
97 views

How can I install python3-dev for armhf using debian multiarch?

I also posted this question here https://stackoverflow.com/q/77693879/7926069 but was told this site may be a better fit so I crossposted. Hope that's okay! I have been going in circles trying to ...
Cobalt's user avatar
  • 101
0 votes
1 answer
426 views

How to run an application installed via pip?

I've used pip before to install libraries to use them in my python scripts. Now I've installed ranger-fm from pip. Silly question: how do I run it? I did not expect to run it by simply entering '...
user1785730's user avatar
1 vote
1 answer
82 views

How to call ifcconvert from the terminal

I want to convert icf files to objs, to that effect I want to use this tool: https://ifcopenshell.org/downloads.html I installed it through python like this: pip install ifcopenshell However, I am ...
Makogan's user avatar
  • 157
0 votes
0 answers
68 views

How to run Apache airflow that is installed by PyPy as systemd?

I installed Apache airflow using PyPy and the executable is in /home/my_user/anaconda3/envs/my_env/bin/airflow The installation is working fine and I wanted to make it a systemd. [Unit] Description=...
motam79's user avatar
  • 490
1 vote
0 answers
51 views

How to differentiate between directories created manually and directories created by installed programs?

On my Ubuntu laptop, I want to differentiate between directories I created manually and directories created by programs that I install for coding purposes (in Python). I have searched a lot, but it ...
selmanioui's user avatar
2 votes
1 answer
3k views

How to install sox for PyTorch audio?

I want to run PyTorch code on Linux. I start a virtual machine on AWS with AMI Deep Learning PyTorch, but, surprisingly, PyTorch is not installed. So I run: python3 -m pip install torch torchaudio ...
emonigma's user avatar
  • 2,027
0 votes
1 answer
48 views

Macro to keep 3 rows visible under the selected row in LibreOffice Calc

In Calc or MS Excel when one is finished editing a cell in a row, pressing Enter leads to the next row below. Keep doing that and eventually you arrive at the last row visible on the screen. Here when ...
Shakir's user avatar
  • 103
0 votes
0 answers
137 views

Positioning an ffmpeg text while wrapping text in newlines

I would like to automatically wrap text in multiple lines if it is too long to fit on the screen. I know about the subtitle option but it is not what I am seeking for. When generating a long video ...
lazarea's user avatar
  • 101
0 votes
1 answer
120 views

How do browsers based on Chromium import passwords from Chrome?

How do browsers based on chromium import passwords from Chrome? Browsers like Vivaldi Brave, Edge, Opera, etc… all have feature to import passwords from Chrome, and some even have ability to import ...
Neptotech -vishnu's user avatar
0 votes
1 answer
179 views

Can't use pipenv after adding to $PATH

I'm using a Linux box on which I don't have sudo privileges. I have python and pip installed. I've run pip3 install --user pipenv, and confirmed that ~/.local/bin/pipenv exists. I then added PATH=~/...
Frank Harris's user avatar

1
2 3 4 5
64