Skip to content

Instantly share code, notes, and snippets.

@vortec
Created February 27, 2013 10:05
Show Gist options
  • Select an option

  • Save vortec/5046817 to your computer and use it in GitHub Desktop.

Select an option

Save vortec/5046817 to your computer and use it in GitHub Desktop.
fkochem at WK-6 in ~/workspace/code/sentry/bin exited 1 workon sentry
$ ./sentry --config=/home/fkochem/.sentry/sentry.conf.py createsuperuser
Traceback (most recent call last):
File "./sentry", line 9, in <module>
load_entry_point('sentry==5.4.1', 'console_scripts', 'sentry')()
File "/home/fkochem/workspace/code/sentry/local/lib/python2.7/site-packages/sentry/utils/runner.py", line 191, in main
initializer=initialize_app,
File "/home/fkochem/workspace/code/sentry/local/lib/python2.7/site-packages/logan/runner.py", line 155, in run_app
management.execute_from_command_line([runner_name, command] + command_args)
File "/home/fkochem/workspace/code/sentry/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 453, in execute_from_command_line
utility.execute()
File "/home/fkochem/workspace/code/sentry/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/fkochem/workspace/code/sentry/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 272, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/home/fkochem/workspace/code/sentry/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 78, in load_command_class
return module.Command()
File "/home/fkochem/workspace/code/sentry/local/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 25, in __init__
self.UserModel = get_user_model()
File "/home/fkochem/workspace/code/sentry/local/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 125, in get_user_model
user_model = get_model(app_label, model_name)
File "/home/fkochem/workspace/code/sentry/local/lib/python2.7/site-packages/django/db/models/loading.py", line 230, in get_model
self._populate()
File "/home/fkochem/workspace/code/sentry/local/lib/python2.7/site-packages/django/db/models/loading.py", line 72, in _populate
self.load_app(app_name, True)
File "/home/fkochem/workspace/code/sentry/local/lib/python2.7/site-packages/django/db/models/loading.py", line 96, in load_app
models = import_module('.models', app_name)
File "/home/fkochem/workspace/code/sentry/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/fkochem/workspace/code/sentry/local/lib/python2.7/site-packages/sentry/models.py", line 40, in <module>
from sentry.manager import (GroupManager, ProjectManager,
File "/home/fkochem/workspace/code/sentry/local/lib/python2.7/site-packages/sentry/manager.py", line 40, in <module>
from sentry.utils.dates import get_sql_date_trunc
File "/home/fkochem/workspace/code/sentry/local/lib/python2.7/site-packages/sentry/utils/dates.py", line 12, in <module>
from sentry.utils.db import get_db_engine
File "/home/fkochem/workspace/code/sentry/local/lib/python2.7/site-packages/sentry/utils/db.py", line 45, in <module>
ExpressionNode.AND: operator.and_,
AttributeError: type object 'ExpressionNode' has no attribute 'AND'
@anentropic
Copy link
Copy Markdown

I have similar problem (same error but doing bin/sentry --config=/etc/sentry.conf.py upgrade --noinput)

do you find the cause?

@kivikakk
Copy link
Copy Markdown

I'm getting the same issue.

@kivikakk
Copy link
Copy Markdown

getsentry/sentry#802 addressed this, which should be in 5.4.5. Currently testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment