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.
3,166
questions
2
votes
2
answers
71
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 ...
1
vote
2
answers
222
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:
...
6
votes
2
answers
750
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 ...
0
votes
1
answer
76
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 ...
1
vote
1
answer
188
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 ...
0
votes
0
answers
49
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 ...
0
votes
0
answers
23
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 ...
0
votes
2
answers
1k
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 ...
0
votes
0
answers
64
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 ...
-4
votes
1
answer
53
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 ...
0
votes
0
answers
58
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, ...
0
votes
0
answers
564
views
Using python-gnupg library in AWS lambda function [closed]
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 ...
0
votes
0
answers
84
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 ...
0
votes
0
answers
656
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 ...
1
vote
0
answers
214
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)
...