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
RuntimeError: Event loop is closed #6399
Comments
Please provide a full stacktrace, not just one line of logs. Based on the provided information, there is nothing we can do as it's unclear where the problem originates. |
@xmatthias I have updated my issue and include the full logs. thanks |
I notice you're running 3.10 ... I'd advise to not use it for the moment. I'd be curious if it happens on 3.9 as well - as i've not encountered this yet (might be another 3.10 oddity) - or even a windows oddity ... (i've never used windows natively (without WSL) to run freqtrade - and asyncio handling on windows IS slightly crippled by how windows works) |
Ok, I will try to reproduce the issue using 3.9 and will give you feedback asap. thanks again for your time. |
@thetradinggoose Did this work better on 3.9? or did you encounter the same issue again? |
I'll assume this is fixed now by using 3.9. Let me know if that's not the case |
RuntimeError: Event loop is closed i have this problem with python 3.9 (fabletrade) PS C:\python\freqtrade> freqtrade download-data --config config.json --days 21 -t 5m |
Make sure to use the latest available python version (not 3.9.2, but 3.9.xx ...). if you still have this problem, please open a NEW issue - filling out the issue template> |
I was still having this error on Python 3.9.13 when processing long time ranges. Got the solution from here: Using Windows 10 and newest dev release of Freqtrade. |
@theluxaz the linked issue ALSO mentions that this is supposed to be solved in the most recent python version (3.9.16 atm) ... so i suspect that a simple python upgrade would/will suffice. |
Did some more testing and found out that neither time.sleep() or upgrading to 3.9.16 fixes the problem. Please ignore my previous post. Thankfully the program still works fine, it's only visual from what I can tell.
|
Quite honestly, the best solution for this is to use WSL2 (since you're on windows). |
You can put
at the beginning of the exchange/common.py file. |
Describe your environment
Windows 10 Home
Python 3.10.2
1.72.36
2022.1
Describe the problem:
The bot is running fine, but occasionally and specially when reloading the config , it logs
...\Python310\lib\asyncio\base_events.py", line 510, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed
Its not just the
base_events.py
but all files in theasyncio
folder is getting thisRuntimeError: Event loop is closed
Observed Results:
What happened?
Powershell
btw since I'm on a Windows machine.What did you expect to happen?
Relevant code exceptions or logs
The text was updated successfully, but these errors were encountered: