-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signal only works in main thread #48
Comments
hey @rosendyakov can you provide the following info, and the minimum amount of code needed to re-create the issue? This will help me as I look into this further: python version: |
I have the same issue in deploying a web application using pmaw File "/app/adam-radar/Python-Scripts/User Specified Scripts/Discussion Platforms/Reddit/reddit_submissions_by_keywords.py", line 111, in reddit_submissions |
I am hitting the same symptom, though my setup is a little bit more involved (Azure Durable Functions), so in order to make up for the added complexity I published my repro to https://github.com/mike-mo/azure-durable-pmaw Python version: 3.10.10 Same Python version and pmaw version work fine to run a basic script that fetches the information. It must be something to do with how threading is handled by these frameworks. |
having the same issue here, i'm using
i have tried this with async function but it also didn't help. |
Did you manage to solve this? Running into a similar issue using an Azure Durable Function with Scrapy and signal |
Hello, I'm currently developing a very simple Flask app, running only locally and I wanted to scrape some Reddit posts, using your API. I followed the example, as it's specified in the documentation, however whenever I run my script, I get the following error:
ValueError: signal only works in main thread
I read that Flask-SocketIO package causes this, but I saw that this project uses Websocket-client, which is a different package.
Would really appreciate your input.
The text was updated successfully, but these errors were encountered: