Skip to main content
0 votes
0 answers
56 views

I'm trying to run calculations using multiple cores in Python on multiple platforms (Linux, macOS, Windows). I need to pass a large CustomClass Object and a dict (both readonly) to all workers. So far ...
polyte's user avatar
  • 449
2 votes
2 answers
87 views

Overview: I am trying to use a Pool internally in a module that is not __main__ and make it invisible to main that this pool exists. Because of this, if __name__ == "__main__": protection is ...
blizzdex's user avatar
3 votes
1 answer
84 views

I am running into a FAILED_PRECONDITION: DNN library initialization failed error when trying to parallelize a JAX function using either Python's multiprocessing library or joblib. The strange part is ...
PowerPoint Trenton's user avatar
0 votes
2 answers
178 views

I have a file enwiktionary_namespace_0.tar.gz that contains 86 .ndjson files enwiktionary_namespace_0_0.ndjson enwiktionary_namespace_0_1.ndjson enwiktionary_namespace_0_2.ndjson ... ...
Akira's user avatar
  • 2,820
1 vote
0 answers
80 views

I'm experiencing an issue where the parent Python process terminates unexpectedly when debugging, but only when a child process is sent SIGTERM. The same code works perfectly when run normally (...
Skyman2413's user avatar
1 vote
1 answer
100 views

I tried to run bw2io.import_ecoinvent_release() to import ecoinvent as I used to, but the function is now stuck in a loop and return error messages indefinitely (see below). What I run: import bw2data ...
Victor Maneval's user avatar
0 votes
1 answer
94 views

I am trying to setup a multiprocessing Python task on Windows 10, Python 3.13. I have "main.py" module, containing the main entry, "orchestration.py" module with worker ...
PChemGuy's user avatar
  • 1,869
0 votes
1 answer
29 views

In my scenario I use multiple DataLoaders with multiple Datasets to evaluate models against each other (I want to test models with multiple resolutions, which means each dataset has a distinct ...
Yuval's user avatar
  • 3,598
1 vote
1 answer
145 views

I have a simple app with a main controller process, and a child process that handles API calls. They communicate using Python queues. The app looks (something) like this: import multiprocessing as mp ...
BHK's user avatar
  • 39
1 vote
2 answers
113 views

I scan for a trigger and when I get it, load a .npy file and process it. It started to take almost 2 seconds to load the NumPy file from within the process but when I tried to load the same file from ...
user2037777's user avatar
3 votes
1 answer
132 views

I try to use a custom multiprocessing manager, mostly following the example from the docs. The main difference is that my class updates internal state. It looks like this: class IdIndex: def ...
Achim's user avatar
  • 15.7k
2 votes
1 answer
84 views

I have a class with methods to simulate sources across 16 detectors using the Gelsa package. In my main script, I call the method generate.sources. I am trying to use multiprocessing to speed up the ...
Nicolò Fiaba's user avatar
4 votes
2 answers
213 views

I've been trying to parallelize some code that I wrote in python. The actual work is embarrassingly parallel, but I don't have much experience with multiprocessing in Python. The actual code I'm ...
user2506833's user avatar
0 votes
0 answers
88 views

I ran into a problem when I'm trying to plot figures with matplotlib in separate processes using multiprocessing. I tried it on OpenBSD 7.7 with Python 3.12.11 and on Debian 12 with Python 3.11.2 and ...
Tandoori's user avatar
0 votes
1 answer
68 views

I have a python script that pings another device every so often. PING_SIZE = "1" PING_RETRYS = "1" while True: try: result = subprocess.run( ["ping&...
Thewafflication's user avatar

15 30 50 per page
1
2 3 4 5
988