Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14126

RuntimeError: can't create new thread at interpreter shutdown

$
0
0

This is a Forked repository from github and when I try to deploy it to heroku it shows the error:

2023-12-31T03:10:27.965787+00:00 app[web.1]:

2023-12-31T03:10:27.965828+00:00 app[web.1]: RuntimeError: can't create new thread at interpreter shutdown

2023-12-31T03:10:27.965992+00:00 app[web.1]: self._executor.open()

2023-12-31T03:10:27.966013+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.12/site-packages/pymongo/periodic_executor.py", line 87, in open

2023-12-31T03:10:27.966072+00:00 app[web.1]: thread.start()

2023-12-31T03:10:27.966088+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.12/threading.py", line 992, in start

2023-12-31T03:10:27.966229+00:00 app[web.1]: _start_new_thread(self._bootstrap, ())

2023-12-31T03:10:27.966249+00:00 app[web.1]: RuntimeError: can't create new thread at interpreter shutdown

2023-12-31T03:10:28.174616+00:00 heroku[web.1]: Process exited with status 1

2023-12-31T03:10:28.197914+00:00 heroku[web.1]: State changed from starting to crashed

It says "RuntimeError: can't create new thread at interpreter shutdown" Help me to solve this

I'm trying to create a Telegram bot using the github repo


Viewing all articles
Browse latest Browse all 14126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>