question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3.4.1 RuntimeError

See original GitHub issue

1.pip install django Successfully installed asgiref-3.4.1 django-3.2.6 pytz-2021.1 sqlparse-0.4.1 2.django-admin startproject Sample

Traceback (most recent call last):
  File "/django_venv/bin/django-admin", line 6, in <module>
    from django.core.management import execute_from_command_line
  File "/django_venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 13, in <module>
    from django.apps import apps
  File "/django_venv/lib/python3.8/site-packages/django/apps/__init__.py", line 1, in <module>
    from .config import AppConfig
  File "/django_venv/lib/python3.8/site-packages/django/apps/config.py", line 7, in <module>
    from django.utils.deprecation import RemovedInDjango41Warning
 File "/django_venv/lib/python3.8/site-packages/django/utils/deprecation.py", line 5, in <module>
    from asgiref.sync import sync_to_async
  File "/django_venv/lib/python3.8/site-packages/asgiref/sync.py", line 304, in <module>
    class SyncToAsync:
  File "/django_venv/lib/python3.8/site-packages/asgiref/sync.py", line 328, in SyncToAsync
    loop = get_running_loop()
RuntimeError: no running event loop

But use version 3.3.4 will be OK.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
andrewgodwincommented, Aug 18, 2021

Thanks Carlton - that was indeed the problem. I’ve just pushed up a fix, will try and get it into a release soon.

0reactions
andrewgodwincommented, Jan 18, 2022

I just have to get around to it - not sure when. Pandemic has put everything out of kilter.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to Import Python modules in CSense Python 3.4.1
I cannot use pip with Python 3.4.1, which is what CSense uses. Error in cmd (admin) = "RuntimeError: Python 3.5 or later is...
Read more >
django RuntimeError at /admin/users/user/1/change/, Single ...
4 to 3.4.1. This appears to be due to a currently unresolved issue in channels 3.0.4 where concurrent requests on the Django development...
Read more >
RuntimeError when saving a new course through admin panel
I was running Python 3.7 and Django 1.8 and was getting this error. I changed my settings to Python 3.4.1 (like Kenneth has...
Read more >
Multiprocessing freeze_support raises RuntimeError
On Windows, I froze a script that uses multiprocessing with cx-freeze and Python 3.4.1 that had freeze_support() in the "if __name__ ...
Read more >
3.4. Runtime Errors — COMP 1000 - Runestone Academy
A program with a runtime error is one that passed the interpreter's syntax checks, and started to execute. ... Activity: 3.4.1 ActiveCode (debug_rterr)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found