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
0
votes
0
answers
7
views
Linux: How to find the location of a specific "include" library in Python? [migrated]
Note:
I have already searched extensively and found nothing that even vaguely resembles an answer, including here. If this is a stupid question or a duplicate, please accept my apologies.
Also Note:
...
0
votes
1
answer
17
views
How to solve Ansible venv runtime exception in specific versions?
I want to set up a venv with the following packages as these are specified in a project I'm working on:
ionoscloud==6.1.4
pytest==6.2.5
pytest-cov==3.0.0
ansible==5.0.1
PyYAML==6.0
kubernetes==24.2.0
...
0
votes
0
answers
31
views
socket.gaierror: [Errno 11001] getaddrinfo failed [closed]
I am trying to do sub-domain enumeration in my organization. Part of the python code is to get the IPs of the already enumerated sub-domains which are included in a text file . Used the below code
...
-1
votes
1
answer
36
views
When updating Wsl I Get an Error
enter image description hereenter image description hereI have Windows 11 machines
I installed docker and after installing I got an error "wsl --update"
And when I run the code wsl --update ...
0
votes
0
answers
10
views
How do I dynamically update terminal text in a for loop with an iterated value? [migrated]
I've tried a few solutions on Google, but none have worked so far. Representation of my current code below:
import sys
filelist = [file1, file2, file3]
totalfiles = str(len(filelist))
count = 0
for ...
-2
votes
0
answers
17
views
Newbie using it for the first time sadtalker error code questions (Unable to output [duplicate]
I'm a complete novice and I got an error the first time I used it.
I plan to use sadtalker to make audio videos. After uploading the video and picture materials, an error occurs after the progress bar ...
0
votes
0
answers
18
views
Can't install volumentations on google collab
I am relatively new here. I have a very limited dataset of 3d-images that i want to use as a dataset to train a neural network. This is why i am trying to augment those images .
I see that ...
0
votes
0
answers
22
views
Upgraded Ansible with Python 3.8 but playbooks are now way slower that with python2.7, how to address slowdown?
When we were running RHEL7 our playbooks used to complete in about 1 hour with ansible-2.9.27-1.el7.noarch.rpm w/ python 2.7 + mitogen.
Last year we upgraded to RHEL8 w/ python 3.8 and ansible-5.4 + ...
0
votes
0
answers
12
views
Possible to run python scripts from ConEmu without having to type python before the script?
Is it possible to run python scripts from ConEmu without having to type python before the script? If it is possible through Windows console that would be okay too.
0
votes
0
answers
11
views
Can't quit python with ctrl+D on mac
As the title says, ctrl+D does nothing, but instead, it is strange that ctrl+Z does quit Python ("zsh: suspended"), but I'm using Mac, not Windows. How to fix this?
0
votes
1
answer
29
views
Installing mod_wsgi requires C++ build tools 14 on Windows
I am trying to install Django following this tutorial: https://ahmadalsajid.medium.com/serve-django-applications-with-mode-wsgi-and-apache-on-windows-server-4d35ab2ac6b6
I am stuck at pip install ...
-2
votes
1
answer
22
views
Why does "pip" install packages in the wrong site-packages directory?
Running MacOS. I was running python 3.9, and upgraded to the latest Python distro (3.12.3).
When I went to install the spellchecker package, pip installed it in /Applications/anaconda3/lib/python3.9/...
0
votes
0
answers
33
views
Selenium+Python: XPath for attribute with special characters in the name
I have this line rendered on a web page:
<app-active-challenge-action-button-component [type]="$ctrl.ActiveChallengeActionButtonType.VOTE" [challenge]="$ctrl.challenge" _nghost-...
0
votes
0
answers
11
views
How to change file path in BAT file based on the current user? [duplicate]
I am new to batch scripting so please offer constructive advice on how to approach the task.
I have a bat file to run some Python code similar to this:
@echo off
set /P State= ...
0
votes
1
answer
65
views
How to change file path in BAT file based on the current user?
I have a bat file to run some Python code similar to this:
@echo off
set /P State= Select State:
set /P Year= Select Year:
"C:\Users\MYNUMBER\...