Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8819603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:24:06+00:00 2026-06-14T05:24:06+00:00

I wanted to log what happened with my Django app on my test server

  • 0

I wanted to log what happened with my Django app on my test server so I’ve installed Django Sentry.

I’ve done everything as it is in the Quickstart guide from the official documentation but when I try to initialize the web service this error appears:

sentry.conf.py start
Performing upgrade before service startup...
Syncing...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
Migrating...
Running migrations for djcelery:
- Nothing to migrate.
 - Loading initial data for djcelery.
Installed 0 object(s) from 0 fixture(s)
Running migrations for django:
- Nothing to migrate.
 - Loading initial data for django.
Installed 0 object(s) from 0 fixture(s)
Running migrations for django:
- Nothing to migrate.
 - Loading initial data for django.
Installed 0 object(s) from 0 fixture(s)
Running migrations for sentry:
- Nothing to migrate.
 - Loading initial data for sentry.
Installed 0 object(s) from 0 fixture(s)

Synced:
 > django.contrib.auth
 > django.contrib.admin
 > django.contrib.contenttypes
 > django.contrib.sessions
 > django.contrib.sites
 > django.contrib.messages
 > crispy_forms
 > sentry.plugins.sentry_mail
 > sentry.plugins.sentry_servers
 > sentry.plugins.sentry_urls
 > sentry.plugins.sentry_user_emails
 > sentry.plugins.sentry_useragents
 > social_auth
 > south

Migrated:
 - djcelery
 - kombu.transport.django
 - raven.contrib.django
 - sentry
Running service: 'http'
Traceback (most recent call last):
  File "/usr/bin/sentry", line 8, in <module>
    load_entry_point('sentry==5.0.21', 'console_scripts', 'sentry')()
  File "/usr/lib/python2.5/site-packages/sentry/utils/runner.py", line 150, in main
    initializer=initialize_app,
  File "/usr/lib/python2.5/site-packages/logan/runner.py", line 136, in run_app
    management.execute_from_command_line([runner_name, command] + command_args)
  File "/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.5/site-packages/sentry/management/commands/start.py", line 78, in handle
    service.run()
  File "/usr/lib/python2.5/site-packages/sentry/services/http.py", line 46, in run
    call_command('run_gunicorn', **self.options)
  File "/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line 134, in call_command
    klass = load_command_class(app_name, name)
  File "/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line 69, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/usr/lib/python2.5/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/usr/lib/python2.5/site-packages/gunicorn/management/commands/run_gunicorn.py", line 10, in <module>
    from gunicorn.app.djangoapp import DjangoApplicationCommand
  File "/usr/lib/python2.5/site-packages/gunicorn/app/djangoapp.py", line 9, in <module>
    from gunicorn.app.base import Application
  File "/usr/lib/python2.5/site-packages/gunicorn/app/base.py", line 15, in <module>
    from gunicorn.config import Config
  File "/usr/lib/python2.5/site-packages/gunicorn/config.py", line 241
    except ImportError as e:
                        ^
SyntaxError: invalid syntax

Thanks for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:24:08+00:00Added an answer on June 14, 2026 at 5:24 am

    gunicorn requires Python 2.6 – which added the except T as e syntax (see http://www.python.org/dev/peps/pep-3110/). You’ll need to switch to at least Python 2.6.

    Note that in some places the documentation for gunicorn says it supports Python 2.5, but that is no longer true.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I wanted to test my app on an actual android device. I've debugged
I wanted to reduce the size of my log file in SQL SERVER 2005,
I wanted to know how to convert the http response from the server in
I wanted to use a switch function in my app from a string. When
I wanted to know if there is way to log the mysql queries in
Wanted to know if there was a way one could query shelveset details from
just wanted to ask where I define initial class properties? From other languages I
I wanted to have a detailed look into my production.log, but heroku doesn't seem
I am implementing a simple audit log functionality using hibernate event listeners. I wanted
i wanted to try the new android build system gradle, so i installed gradle

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.