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.

Getting exception on demo

See original GitHub issue

Hi there,

I tried to run the demo by following the instructions, but get the following error:

Exception inside application: __init__() takes 1 positional argument but 2 were given
Traceback (most recent call last):
  File "/Users/oege/projects/django-plotly-dash/env/lib/python3.8/site-packages/channels/routing.py", line 71, in __call__
    return await application(scope, receive, send)
  File "/Users/oege/projects/django-plotly-dash/env/lib/python3.8/site-packages/channels/sessions.py", line 47, in __call__
    return await self.inner(dict(scope, cookies=cookies), receive, send)
  File "/Users/oege/projects/django-plotly-dash/env/lib/python3.8/site-packages/channels/sessions.py", line 254, in __call__
    return await self.inner(wrapper.scope, receive, wrapper.send)
  File "/Users/oege/projects/django-plotly-dash/env/lib/python3.8/site-packages/channels/auth.py", line 181, in __call__
    return await super().__call__(scope, receive, send)
  File "/Users/oege/projects/django-plotly-dash/env/lib/python3.8/site-packages/channels/middleware.py", line 26, in __call__
    return await self.inner(scope, receive, send)
  File "/Users/oege/projects/django-plotly-dash/env/lib/python3.8/site-packages/channels/routing.py", line 150, in __call__
    return await application(
  File "/Users/oege/projects/django-plotly-dash/env/lib/python3.8/site-packages/asgiref/compatibility.py", line 33, in new_application
    instance = application(scope)
TypeError: __init__() takes 1 positional argument but 2 were given

I did make the venv with python -m venv env instead of using virtualenv and am using python3.8 instead of python3.6. But don’t think that should have caused the error?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
GibbsConsultingcommented, Jan 18, 2021

@dalmouiee as per above, did you follow the installation instructions?

0reactions
dalmouieecommented, Jan 20, 2021

@GibbsConsulting, I was attempting to make a virtual environment using venv rather than virtualenv. That was the issue, thanks for your help, and great repo by the way!

Read more comments on GitHub >

github_iconTop Results From Across the Web

demo.exceptions java code examples | Tabnine
Best Java code snippets using demo.exceptions (Showing top 20 results out of 315) · ControllerWithoutExceptionHandlers. · ControllerWithoutExceptionHandlers.
Read more >
Python Exception Handling | How to define and ... - YouTube
Exception Handling In Python | Exceptions In Python | DURGASOFT ... Handling | How to define and raise Customized Exceptions & Demo Program....
Read more >
Getting exception while trying to create a database connection
I am working on a MySQL workbench and in an maven based java application I am trying to connect local database to my...
Read more >
Java - Exceptions - Tutorialspoint
An exception (or exceptional event) is a problem that arises during the execution of a program. When an Exception occurs the normal flow...
Read more >
How to handle exception? | OutSystems
Can anyone provide me demo application in outsystems? ... In every action you can have a Exception flow which will get executed in...
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