r/pythonhelp • • Sep 29 '26

is SikuliX still maintained enough to build on or has everyone moved to something else?

5 Upvotes

I inherited a SikuliX suite that's been running since 2021 against a windows desktop app, and i have to decide whether to invest in it or replace it. It’s 180 scripts, about 120 still pass reliably, the rest fail on screenshot matches that no longer match. when i dug into the causes it was a windows 11 theme change, a DPI difference between our CI box and the dev machines, and a font rendering change that shifted text by 2 pixels. not one of those is a defect in our product, and all of them cost me a week.

The project isn't dead exactly, there are commits but the documentation is old, most of what you find searching is from 5 or 6 years back, and i can't tell whether the people maintaining it are building or keeping the lights on. We’re wighting it against going back to the accessibility tree with FlaUI. It works properly on maybe 60 percent of our screens and fails completely on the custom drawn ones, which is exactly where SikuliX earns its keep.

Ther are the newer vision based ones like Askui and a few others, which do roughly the job SikuliX does but with a model doing the matching instead of pixel comparison. In principle that's immune to the DPI and font problems that broke us. In practice i would want to know whether it's a different mechanism or the same idea with wider tolerance. Or just keep SikuliX and pin everything.

Has anyone here migrated off SikuliX recently? did what you moved to held up against theme and DPI changes? Thanks for sharing!


r/pythonhelp • • Sep 25 '26

What's going on?

5 Upvotes

I have some code I need to do a lot of calculations and I tried speeding it up by parralelizing with multiprocessing, but I'm running into a few issues. Using 5 processes (my computer has 6 cores) is giving me a speed boost of 50-100x, but for some reason the results are slightly wrong. I'm trying to fix that problem, but I'm also wondering where the massive speed boost came from, because that implies there's something else making it go faster besides parralelizing. If I could go back to a single thread but keep most of that speed, that would be great. For context, I'm doing some high-precision calculations with the decimal libraray but mostly just a lot of math in a cythonized function. The time it takes went from ~10 hours to 10 minutes.


r/pythonhelp • • Sep 04 '26

python can´t locate and open a file in the same folder as main

5 Upvotes

So i made a txt file with a few lines of text. I use the x = open('file.txt', 'r') function

i write for i in x: print i

and then x.close()

so what am I doing wrong?


r/pythonhelp • • Aug 25 '26

why does it say i didn't close my parenthesis

5 Upvotes

the IDE i am using is saying my parenthesis was not closed when it was plz help

print("Once upon a time, in the ancient kingdom of " + q1 + " there lived a legendary " + q2 + " named " + q3 + ". Everyone in the village knew " + q3 + " for their remarkably " + q4 + " personality and an obsession with " + q5 + ". Every morning at " + q6 ", they would wake up, " + q7 + " three times, ")

[{

"owner": "Pylance",
"severity": 8,
"message": "(" was not closed",
"source": "Pylance",
"startLineNumber": 47,
"startColumn": 6,
"endLineNumber": 47,
"endColumn": 7,

}]

r/pythonhelp • • Aug 19 '26

Learning intermediate level python

5 Upvotes

I am looking to learn following topics. Any suggestions in terms of any course or online site I can learn from. I am not looking for a certificate (if I get it that’s okay but not a deal breaker) but something that has more exercises involved. Topics I’m interested in:

*args / **kwargs
decorators
generators
iterators
context managers
type hints
dataclasses
object-oriented programming
Python project structure
testing
APIs


r/pythonhelp • • Jul 20 '26

changed file name and getting Exec failed, err: 2 message when trying to run program on my .py files. (Pycharm)

5 Upvotes

Hi, I am an absolute beginner to coding/computer science and was learning Python on my own when I changed my folders name to something more practical and my program was not running anymore. I looked online to see how I can fix this issue myself, but everything I found was super complicated. Can someone please help me and explain things like aI'm a toddler thanks!


r/pythonhelp • • May 03 '26

Reading First Few Bytes of Every File on a Drive

5 Upvotes

Hi! Hoping someone can help. My Python programing is a bit rusty.

I am having an issue where my computer is replacing file data with empty data after a cut/paste or a save. I’m not sure of the cause — my primary objective at the moment is quantifying the damage and protecting my files.

The files look normal in Windows Explorer, except they will not open like they should. Upon opening in NotePad, it is revealed that all data in the file has been completely replaced with what appears to be whitespace, resulting in an empty file that appears to be the same size as the original. I cannot possibly test and check every file manually.

What I would like help with is writing a Python script that cycles through every file on a drive to pull the first several bytes from each file and compare those bytes to a string of the aforementioned whitespace. If there is a match, add the file path to a running list in a *.txt file.

I don’t think this is an especially complex script, but, as I said earlier, I’m pretty rusty. With a solid start, I can get it the rest of the way to doing what I want.

Any help would be appreciated. 🙂


r/pythonhelp • • Mar 05 '26

Methods of Python programming

5 Upvotes

Is it alright to use frameworks or libraries when programming in Python, and also use ChatGPT when dealing with more complex problems, even if you already understand the basics of Python?

For example, I understand Python syntax and concepts, but sometimes for more complex things I look at documentation, libraries, or ask ChatGPT for help.

Is this considered normal practice, or should a programmer try to solve everything completely on their own?


r/pythonhelp • • Jan 26 '26

Facing "[Errno 122] Disk quota exceeded" on arch linux system

5 Upvotes

I've been trying to install python packages on my arch linux system but i am getting ERROR: Could not install packages due to an OSError: [Errno 122] Disk quota exceeded. I've been facing this error a lot and i have to use a windows system when i have to run my python projects

Please help me with this
Thanks in advance


r/pythonhelp • • Nov 07 '25

Shorthand/syntactic sugar for arithmetic on Pandas columns?

5 Upvotes

Hi, could be a stupid question, but basically I'm sick of doing math on pandas columns like df["C"] = df["A"] + df["B"]. Is there some kind of method where it's like, df.eval("C = A + B") ? It's something that I have a strong feeling should exist, if it doesn't already. Hell, I would probably make a little library for that anyway, but I don't want to reinvent the wheel. Would appreciate any advice

Edit: Couldn't find the answer anywhere before, but writing this post gave me an idea for what to look for and coincidentally I found the dataframe.eval method that works exactly like I thought it would. I should get a rubber ducky.


r/pythonhelp • • Oct 03 '25

psCARA - Python based Power Systems Automation

5 Upvotes

What's kind of features do you want in a Windows Desktop Program that does Python based Power Systems Automation?

This is the features we are currently working on:

  • A Study Manager product for managing power systems modeling studies and Python simulations

  • Integrated error checking so mistakes are caught before multi hour runs

  • Makes every engineer able to use Python

  • Integrated Natural Language Processing

  • Run complicated code with natural language for all engineers

  • Distributed computing solution

  • Can run any Windows software with a Python API remotely

  • History of all projects changes tracked for finding bugs and staff turnover

  • 5 minute project handover, loss of staff is no longer an issue

  • Works with industry standard software including: PSSe, PSCAD, digsilent PowerFactory and ETAP.

Any other features that people want? We have two aims:

  1. Make it really easy for people to run python scripts even if they are scared of code,

  2. Make superusers super engineers working with the best AI tools.

I really want to make something that people want to use and are looking for any input from people here on Reddit.

What do you want to do easily?

Chris


r/pythonhelp • • Sep 28 '25

GUIDE Is it necessary to learn programming if you want to manage an app or website?

5 Upvotes

Hi everyone it's been two months I'm learning python programming bit by bit but I'm still struggling to learn because 1) I don't have any interest in it and 2) my background is in natural and life sciences.

I have an idea to build an educational app that's why I thought i should learn programming, so i just wanted to know is it necessary to learn programming if you want to manage an app or website?? Otherwise someone else code my app and i would manage or run it ! Thanks


r/pythonhelp • • Jun 13 '24

Seeking Python Tool to Convert Graph Images to Code

5 Upvotes

Hi everyone,

I'm looking for a tool or formula in Python that can recognize a graph from an image and convert it into corresponding Python code with the exact values. For example, if I have an image of a graph, I would like to get the Python code that reproduces the graph, including all the data points and details.

Has anyone come across a library or a method that can achieve this? Any guidance or suggestions would be greatly appreciated!

Thanks in advance!


r/pythonhelp • • Jul 24 '23

New to Python. Have Google API key. What is a Bearer Token and how to get one?

5 Upvotes

I have poked around the Bard and Google documentation for a couple of days. Still have not found out how to generate/make/find a Bearer token.
Any help would be appreciated.
Joe


r/pythonhelp • • Jul 02 '22

Python assistance needed PLEASE!

5 Upvotes

So, I have been getting into python recently as my first real dive into coding(/programming idrk feel free to correct), and I have this bit of code..

----------

print('How many bois you got in your pocket?')
dolla = input()
A = 0.01
w = 0
T = 0.05
x = 0
F = 0.10
y = 0
G = 0.25
z = 0
if[dolla > G]:
z + 1
else:
if[dolla > F]:
y + 1
else:
if[dolla > T]:
x + 1
else:
w + 1
print('Your dolla = ' + w + " Andrew, " + x + ' Thomas, ' +
y + ' Franklin, and ' + z + ' Georgies.')
if{dolla >= 1}:
print(' Congrats on having a masive cock!')
else:
    (" I'm so sorry for your accident involving your weener!")
----------

It shows no errors just sitting in Visual Studio Code, but shows this error when I enter "20"(no quotes) into the input box:

TypeError: '>' not supported between instances of 'str' and 'float'

I have tried a few things so far, but have not had any luck in fixing this error..

PLZ HLP,

-RR


r/pythonhelp • • May 15 '22

SOLVED Trouble with combining large audio files using pydub

5 Upvotes

Hello,

I wrote a quick script to combine larger audio files (10 files around 68mb a piece), so the resulting file should be in the neighborhood 700mb.

What I am trying to do is rip Audiobooks from CDs so I loop through the directory, order the subdirectories, combine each subdirectory into an mp3 file, and then combine those files into one large mp3 file.

The script works up until I combine the subdirectory files, it fails on the last one and I get this error

Traceback (most recent call last): File "../audio.py", line 92, in <module> main() File "../audio.py", line 71, in main combine_audio_tracks(files, curr_path, working_dir, dir) File "../audio.py", line 22, in combine_audio_tracks output.export(save_dir + output_name + ".mp3", format="mp3") File "/home/jason/.local/lib/python3.8/site-packages/pydub/audio_segment.py", line 895, in export wave_data.writeframesraw(pcm_for_wav) File "/usr/lib/python3.8/wave.py", line 427, in writeframesraw self._ensure_header_written(len(data)) File "/usr/lib/python3.8/wave.py", line 468, in _ensure_header_written self._write_header(datasize) File "/usr/lib/python3.8/wave.py", line 480, in _write_header self._file.write(struct.pack('<L4s4sLHHLLHH4s', struct.error: 'L' format requires 0 <= number <= 4294967295 Exception ignored in: <function Wave_write.del at 0x7f7c062f2310> Traceback (most recent call last): File "/usr/lib/python3.8/wave.py", line 327, in del self.close() File "/usr/lib/python3.8/wave.py", line 445, in close self._ensure_header_written(0) File "/usr/lib/python3.8/wave.py", line 468, in _ensure_header_written self._write_header(datasize) File "/usr/lib/python3.8/wave.py", line 480, in _write_header self._file.write(struct.pack('<L4s4sLHHLLHH4s', struct.error: 'L' format requires 0 <= number <= 4294967295

Which makes me think that I have hit some sort of file limit, because 4294967295 bytes is around the limit of a .wav file, but I am outputting in .mp3 and my output filesize is far below that.

Anyways, here is the function where the script bombs

def combine_audio_tracks(tracks, path, save_dir, output_name): 
logging.debug("Concatenating tracks from " + path)
output = AudioSegment.from_file(path+tracks[0], format="mp3")
for i in range(1, len(tracks)): 
    logging.debug("Appending " + tracks[i] + " to the end of current file")
    new_end = AudioSegment.from_file(path+tracks[i], format="mp3")
    output = output + new_end
logging.debug("Saving output to " + save_dir + output_name)
output.export(save_dir + output_name + ".mp3", format="mp3")

I believe I am using the library correctly because the other file appendations is working fine, so I am probably missing a flag or something.

Anything help would be appreciated!

Edit: Alright, it looks like pydub opens it in .wav and combines it.. and uses up all available memory and eventually crashes. Annoying. https://github.com/jiaaro/pydub/issues/294

Final Edit: I realized that pydub wasn't designed for audio handling in the same way I wanted it to be. It's more for creating audio effects, etc. Because of that, pydub expands any inputs into lossless format so something I was doing ate the 16gb of RAM I allocated. Anyways, I figured pydub would work because it uses ffmpeg as a backend. So I just called ffmpeg directly using a subprocess like so:

ffmpeg -f concat -safe 0 -i audio_list.txt -c copy test.mp3

r/pythonhelp • • Dec 02 '21

How to display the full output for a large matrix in Python when using Vscode

5 Upvotes

[[ 0. 494.17 342.13 ... 674.88 373.23 657.19]

[494.17 0. 182.88 ... 198.98 364.45 215.06]

[342.13 182.88 0. ... 336.44 205.3 391.34]

...

[674.88 198.98 336.44 ... 0. 450.34 259.41]

[373.23 364.45 205.3 ... 450.34 0. 579.5 ]

[657.19 215.06 391.34 ... 259.41 579.5 0. ]]

How can I see the entire matrix?


r/pythonhelp • • Sep 09 '21

HOMEWORK Python homework help: I just started learning python so this is prob very very easy for you guys. But i’m very stuck on this problem. I cannot figure how to make it subtract. It works fine for addition but it always get stuck when it gets to the subtraction part. Thank you so much

Thumbnail
gallery
5 Upvotes

r/pythonhelp • • Jul 05 '21

How do I loop when Y or N isn't inputted? I want to make a program that outputs a Python logo in ASCII when "Y" is inputted and make the user feel bad if "N" is inputted. However, I want it to ask again for the user's answer if they input something other than "Y" or "N". What am I doing wrong?

Thumbnail
gallery
5 Upvotes

r/pythonhelp • • Apr 06 '21

SOLVED Simple question: what does ":" mean when passing an argument to a function?

5 Upvotes

Hello, so I've been trying to work with some GUI, specifically PySimpleGUI. I was trying to understand this demo when working with threads, and in one of these programs they pass a function like so:

def the_thread(window:sg.Window, seconds):

What I don't understand is what it means to pass an argument with a ":" included. Does it force window to be an instance of Sg.Window ? What would happen if I just pass window ? Thanks in advance!


r/pythonhelp • • Feb 18 '21

SOLVED "or" operator not working???

5 Upvotes

I want to use the "or" operator to see if this variable equals another variable, or another variable, but it's not working, it seems like it would work perfectly but it's not?

a = 1
b = 2
c = 3


if a == b or c:
    print('Yes')
else:
    print('No')

It always returns returns yes no matter what I do. Help?


r/pythonhelp • • Feb 11 '21

HOMEWORK homework problem, i don’t understand what it’s saying. would this be equal to 0?

Post image
5 Upvotes

r/pythonhelp • • Jan 16 '21

Not sure what I’ve done wrong. Does anyone know?

Post image
5 Upvotes

r/pythonhelp • • Jan 05 '21

Help with exercise

5 Upvotes

While studying for a finals exam for a beginners class on python, I stumbled upon the following exercise, which I cannot even begin to try to solve. It doesn't look like anything I have done before and it most definitely is not something my professor showed in class yet I would really appreciate any help as to how a solution might look for something like this.

So:If x = [1, 3.5, 4, 6.352, 10.143, 192, 212.25, 23.4] and y = [3.5, 2.65, 5.458, 8.644, 321.3, 34, 2.45], write code using "for" or "while" in python which will print pairs of x and y values, one pair in each line. The code must align the numbers on a 6-spot field , each number must show 2 decimal digits and the numbers must have a gap between them, so the end result should look like this :

(I'm sorry if something is not clear, I tried to translate everything as best I could)