Skip to main content

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.

0 votes
0 answers
8 views

Are Python class member functions argument type checked at parse time? [migrated]

I'm not intending to change this in my implementation, it's to improve my understanding of porting this code: In the extract from the track_holder.py module below, why does the TrackObject class have ...
Alexir Hannah's user avatar
0 votes
0 answers
10 views

Python fedora Visual Studio Code ( can't open file [Errno 2] No such file or directory )

I installed via rpm (not flatpak) visual studio code on fedora and cant run anything as simple as print("hello") because it says: /bin/python: can't open file '/home/andre/code/print(hello)....
Andre's user avatar
  • 1
0 votes
1 answer
73 views

What's the equivalent of python3 -m pip install on modern debian-alikes?

I'm currently trying to do an install of changedetection.io with playwright. I don't want to do the docker install since the rest of my environment is using incus. The instructions given are for ...
Journeyman Geek's user avatar
  • 130k
0 votes
0 answers
7 views

ValueError: Type names and field names must be valid identifiers: 'Content-Type' [migrated]

when I use from allpairspy import AllPairs parameters = OrderedDict([('Content-Type', ['"application/json"', ' "application/xml"'])] test_cases = list(AllPairs(parameters)) it ...
Jay Xiong's user avatar
1 vote
1 answer
47 views

Windows Media Player automatic playlist creates multiple duplicates of the same music file

For some reason Windows Media Player does a very bad job of keeping unique files unique in their automatic playlists, as the image in the link shows. WMP snapshot showing 8 dupes of Bronski Beat - ...
ThomasJr's user avatar
1 vote
1 answer
75 views

Python/FFMPEG - Converting a CbBI (Apple) PNG to a regular PNG

I've got a PNG file from an IPA, and trying to open it in Windows Photos inverses all the colors, so I thought that it's an Apple specific format and I found out I am not wrong: $ file AppIcon29x29....
HGStyle's user avatar
  • 63
0 votes
0 answers
19 views

Sending an image to a local websocket port in byte format with ShareX

I use an OCR program called owocr that reads images received through a websocket. The python code that reads the image is this: if read_from == 'websocket': while True: try: ...
Pomacanthidae's user avatar
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: ...
Jim JR Harris's user avatar
0 votes
1 answer
43 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 ...
Turtle10000's user avatar
-1 votes
1 answer
57 views

When updating Wsl I Get an Error

I have Windows 11 machines I installed docker and after installing I got an error "wsl --update" And when I run the code wsl --update in Windows PowerShell as Administrator I got an error: ...
mobin's user avatar
  • 1
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 ...
Thomas's user avatar
  • 1
-2 votes
0 answers
26 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 ...
gg319 accgg's user avatar
0 votes
0 answers
22 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 ...
Diana Tsvetkova's user avatar
0 votes
0 answers
24 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 + ...
Jordan E's user avatar
0 votes
0 answers
14 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.
jamana's user avatar
  • 57

15 30 50 per page
1
2 3 4 5
212