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.

Error when starting the server.

See original GitHub issue

I have my channels placed in the top of INSTALLED_APPS.

When I ty to start the server I get following error:

File "manage.py", line 21, in <module>
    main()
  File "manage.py", line 17, in main
    execute_from_command_line(sys.argv)
  File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\__init__.py", line 224, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\__init__.py", line 36, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\channels\management\commands\runserver.py", line 10, in <module>
    from channels import __version__
ImportError: cannot import name '__version__' from 'channels' (C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\channels\__init__.py)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:9

github_iconTop GitHub Comments

3reactions
alhanoufalabdalicommented, Sep 14, 2020

I had this error and I solve it by uninstalling channels then install channels again

2reactions
Eirennecommented, Jul 21, 2020

Had the same error. Problem was I had both channels and django-channels in requirements. Removing django-channels fixed the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to Start the Server Service - Microsoft Support
When you attempt to start the Server service from a command prompt, you may receive the following error message: System error 1058 has...
Read more >
Error starting server at operating system startup - IBM
In IBM Security Directory Server, the server (the ibmslapd process) is started manually through the Services window or by the ibmslapd command.
Read more >
2.10.2.1 Troubleshooting Problems Starting the MySQL Server
If you have problems starting the server, here are some things to try: Check the error log to see why the server does...
Read more >
Error when starting a dedicated server - Steam Community
I'm getting this error when I'm starting a server: # A fatal error has been detected by the Java Runtime Environment: # #...
Read more >
Getting a "Dedicated Server Failed To Start" Error Message
Generally, this error message shows up because something on the computer is blocking the game application from being able to fully start ......
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