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: object() takes no parameters with docker-compose up [--build]

See original GitHub issue

Big trouble and I can’t seem to find the solution. I installed Cookiecutter with Docker option. Now that I want to push it to production and get it running, I get the following error on production server with Ubuntu on Digital Ocean:

Traceback (most recent call last):
  File "/usr/local/bin/gunicorn", line 11, in <module>
    sys.exit(run())
  File "/usr/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 74, in run
    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
  File "/usr/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 192, in run
    super(Application, self).run()
  File "/usr/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 72, in run
    Arbiter(self).run()
  File "/usr/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 61, in __init__
    self.setup(app)
  File "/usr/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 120, in setup
    self.app.wsgi()
  File "/usr/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
    self.callable = self.load()
  File "/usr/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
    return self.load_wsgiapp()
  File "/usr/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/usr/local/lib/python2.7/site-packages/gunicorn/util.py", line 357, in import_app
    __import__(module)
  File "/app/config/wsgi.py", line 31, in <module>
    application = get_wsgi_application()
  File "/usr/local/lib/python2.7/site-packages/django/core/wsgi.py", line 14, in get_wsgi_application
    return WSGIHandler()
  File "/usr/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 153, in __init__
    self.load_middleware()
  File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 82, in load_middleware
    mw_instance = middleware(handler)
TypeError: object() takes no parameters

I spent several hours on it now, but I cannot find the problem. Any suggestions? Do you need more Info?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
brentpaynecommented, Oct 27, 2016

I had the same issue with heroku. It is an issue with Sentry’s middleware in the included raven implimentation and used in the wsgi.py. Change raven==5.30.0 to raven==5.31.0. I just put in a pull request for this #868.

0reactions
dmarcelinocommented, Nov 8, 2016

Thanks @brentpayne, that fixed the issue for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: object() takes no parameters when creating an object
When trying to create an object i basically just get this error. If any answers, thanks in advice. Here's my code: class Human:...
Read more >
Undefined default build arg is sent as empty string to docker ...
In issue #3281 compose < 1.8.0-rc1 incorrectly sent undefined default build args as 'None' string to docker build , it was fixed by...
Read more >
[Example code]-Getting error on running docker-compose up
I am currently getting this error when running my code: TypeError: SparseDataFrame() takes no arguments. How do I fix this? ... I am...
Read more >
Environment variables in Compose | Docker Documentation
When you run docker-compose up with this configuration, Compose looks for the POSTGRES_VERSION environment variable in the shell and substitutes its value ...
Read more >
Docker Compose release notes
Fixed compose up 'service not found' errors when using --no-deps option. Fixes #9427. Fixed compose down to respect COMPOSE_REMOVE_ORPHANS environment ...
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