I’m having an issue with my GUI freezing, and I don’t know why. The run method is not releasing the lock. Demo program Problem Spam-clicking the progress bar freezes the program. Attempts at debugging I used mttkinter by adding import mttkinter to the import statements and the problem persists. The issue is the lock not being released. I inserted print
Tag: multithreading
How to multiprocess multiple plots in a single PyQt GUI instance
I have a plot object called CrosshairPlotWidget. Each plot object spawns a thread which updates its data but these threads are still within the same main GUI process. Here’s what I currently have and an illustration: 1 main GUI process with 2 threads I want to run the two plots each in a separate process, but both within the same
Selenium Threads: how to run multi-threaded browser with proxy ( python)
I’m writing a script to access a website using proxies with multiple threads but now I’m stuck in multiple threads, when I run the script below, it opens 5 browsers but all 5 use 1 proxy, I want 5 browsers to use different proxies, can someone help me complete it? thank you Here is my script : (Wish everyone has
Celery –pool=threads — what does this do and how do I use it properly?
I’m hitting a segfault error while running a task using Celery. After looking up the issue, it seems others are solving similar issues by starting celery with –pool=threads. When I try passing –pool=threads I get ModuleNotFoundError: No module named ‘threads’ I don’t believe this is the same as the thread module which would throw the error of No module named
Multithreaded pyodbc connection
I am trying to use a pyodbc connection in multiple threads. I am receieving the following error: Connection is busy with results for another command (0) (SQLExecDirectW)’). I also tried setting MultipleActiveResultSets=yes; and got the same results. I really don’t want to have to create a connection for every thread or query. I also don’t want to use a lock
Multiprocessing causes Python to crash and gives an error may have been in progress in another thread when fork() was called
I am relatively new to Python and trying to implement a Multiprocessing module for my for loop. I have an array of Image url’s stored in img_urls which I need to download and apply some Google vision. This is my runAll() method I am getting this as the warning when I run it and python crashes Answer This error occurs
Why does PyQt crashes without information? (exit code 0xC0000409)
I’m trying to develop a software with PyQt, but I often get stuck on software crashes without debug information (only the exit code 0xC0000409). I’m using QThread, and I wrote a system like this: I have crashes when I read/write serialEnabled in run() or in ConnDisconn(). I know that PyQt is not thread-safe and that a wrong handling of variables
Python HTTPConnectionPool Failed to establish a new connection: [Errno 11004] getaddrinfo failed
I was wondering if my requests is stopped by the website and I need to set a proxy.I first try to close the http’s connection ,bu I failed.I also try to test my code but now it seems no outputs.Mybe I use a proxy everything will be OK? Here is the code. and the error is the here! By the
How to trigger a function once a condition is met
What is an efficient way that I can trigger some function once the length of a list changes by a certain amount? I have a nested list to which I add data 100 times per second, and I want to trigger a function once the length of the list increased by some value. I tried doing this with an if
Signal emitting in Python causes exit code 139
Im trying to make function, which passes 8 values to the progress bars in window app made with QtDesigner. That is there is a function which actually generates this values. I want to execute it every second in order to get theese values and update progress bars which displays values. I combined tutorials about making a graphic app with Python