Skip to content

Instantly share code, notes, and snippets.

@mmahesh
Created October 21, 2013 15:50
Show Gist options
  • Save mmahesh/7086151 to your computer and use it in GitHub Desktop.
Save mmahesh/7086151 to your computer and use it in GitHub Desktop.
traceback for Programming error
Traceback (most recent call last):
File "/home/hari/venv/lib/python3.3/site-packages/pyramid_debugtoolbar-1.0.8-py3.3.egg/pyramid_debugtoolbar/panels/performance.py", line 55, in resource_timer_handler
result = handler(request)
File "/home/hari/venv/lib/python3.3/site-packages/pyramid_debugtoolbar-1.0.8-py3.3.egg/pyramid_debugtoolbar/panels/performance.py", line 85, in profile_handler
result = self.profiler.runcall(handler, request)
File "/usr/lib/python3.3/cProfile.py", line 144, in runcall
return func(*args, **kw)
File "/home/hari/venv/lib/python3.3/site-packages/pyramid-1.5a2-py3.3.egg/pyramid/tweens.py", line 21, in excview_tween
response = handler(request)
File "/home/hari/venv/lib/python3.3/site-packages/pyramid_tm-0.7-py3.3.egg/pyramid_tm/__init__.py", line 82, in tm_tween
reraise(*exc_info)
File "/home/hari/venv/lib/python3.3/site-packages/pyramid_tm-0.7-py3.3.egg/pyramid_tm/compat.py", line 13, in reraise
raise value
File "/home/hari/venv/lib/python3.3/site-packages/pyramid_tm-0.7-py3.3.egg/pyramid_tm/__init__.py", line 63, in tm_tween
response = handler(request)
File "/home/hari/venv/lib/python3.3/site-packages/pyramid-1.5a2-py3.3.egg/pyramid/router.py", line 163, in handle_request
response = view_callable(context, request)
File "/home/hari/venv/lib/python3.3/site-packages/pyramid-1.5a2-py3.3.egg/pyramid/config/views.py", line 348, in rendered_view
result = view(context, request)
File "/home/hari/venv/lib/python3.3/site-packages/pyramid-1.5a2-py3.3.egg/pyramid/config/views.py", line 470, in _class_requestonly_view
response = getattr(inst, attr)()
File "/home/hari/venv/lib/python3.3/site-packages/horus-0.9.13-py3.3.egg/horus/views/__init__.py", line 401, in register
user = self.create_user(email, username, password)
File "/home/hari/venv/lib/python3.3/site-packages/horus-0.9.13-py3.3.egg/horus/views/__init__.py", line 367, in create_user
email
File "/home/hari/venv/lib/python3.3/site-packages/horus-0.9.13-py3.3.egg/horus/models.py", line 285, in get_by_username_or_email
cls.email == email
File "/home/hari/venv/lib/python3.3/site-packages/SQLAlchemy-0.8.2-py3.3.egg/sqlalchemy/orm/query.py", line 2279, in first
ret = list(self[0:1])
File "/home/hari/venv/lib/python3.3/site-packages/SQLAlchemy-0.8.2-py3.3.egg/sqlalchemy/orm/query.py", line 2146, in __getitem__
return list(res)
File "/home/hari/venv/lib/python3.3/site-packages/SQLAlchemy-0.8.2-py3.3.egg/sqlalchemy/orm/query.py", line 2350, in __iter__
return self._execute_and_instances(context)
File "/home/hari/venv/lib/python3.3/site-packages/SQLAlchemy-0.8.2-py3.3.egg/sqlalchemy/orm/query.py", line 2365, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/home/hari/venv/lib/python3.3/site-packages/SQLAlchemy-0.8.2-py3.3.egg/sqlalchemy/engine/base.py", line 662, in execute
params)
File "/home/hari/venv/lib/python3.3/site-packages/SQLAlchemy-0.8.2-py3.3.egg/sqlalchemy/engine/base.py", line 761, in _execute_clauseelement
compiled_sql, distilled_params
File "/home/hari/venv/lib/python3.3/site-packages/SQLAlchemy-0.8.2-py3.3.egg/sqlalchemy/engine/base.py", line 874, in _execute_context
context)
File "/home/hari/venv/lib/python3.3/site-packages/SQLAlchemy-0.8.2-py3.3.egg/sqlalchemy/engine/base.py", line 1024, in _handle_dbapi_exception
exc_info
File "/home/hari/venv/lib/python3.3/site-packages/SQLAlchemy-0.8.2-py3.3.egg/sqlalchemy/util/compat.py", line 187, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=exc_value)
File "/home/hari/venv/lib/python3.3/site-packages/SQLAlchemy-0.8.2-py3.3.egg/sqlalchemy/util/compat.py", line 182, in reraise
raise value.with_traceback(tb)
File "/home/hari/venv/lib/python3.3/site-packages/SQLAlchemy-0.8.2-py3.3.egg/sqlalchemy/engine/base.py", line 867, in _execute_context
context)
File "/home/hari/venv/lib/python3.3/site-packages/SQLAlchemy-0.8.2-py3.3.egg/sqlalchemy/engine/default.py", line 326, in do_execute
cursor.execute(statement, parameters)
File "/home/hari/venv/lib/python3.3/site-packages/pymysql/cursors.py", line 102, in execute
result = self._query(query)
File "/home/hari/venv/lib/python3.3/site-packages/pymysql/cursors.py", line 202, in _query
conn.query(q)
File "/home/hari/venv/lib/python3.3/site-packages/pymysql/connections.py", line 734, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/hari/venv/lib/python3.3/site-packages/pymysql/connections.py", line 845, in _read_query_result
result.read()
File "/home/hari/venv/lib/python3.3/site-packages/pymysql/connections.py", line 1049, in read
first_packet = self.connection._read_packet()
File "/home/hari/venv/lib/python3.3/site-packages/pymysql/connections.py", line 826, in _read_packet
packet.check_error()
File "/home/hari/venv/lib/python3.3/site-packages/pymysql/connections.py", line 373, in check_error
raise_mysql_exception(self.__data)
File "/home/hari/venv/lib/python3.3/site-packages/pymysql/err.py", line 117, in raise_mysql_exception
_check_mysql_exception(errinfo)
File "/home/hari/venv/lib/python3.3/site-packages/pymysql/err.py", line 110, in _check_mysql_exception
raise errorclass(errno,errorvalue)
sqlalchemy.exc.ProgrammingError: (ProgrammingError) (1146, "Table 'testy.user' doesn't exist") 'SELECT user.password AS user_password, user.username AS user_username, user.security_code AS user_security_code, user.status AS user_status, user.registered_date AS user_registered_date, user.activation_id AS user_activation_id, user.last_login_date AS user_last_login_date, user.email AS user_email, user.salt AS user_salt, user.id AS user_id \nFROM user \nWHERE lower(user.username) = %s OR user.email = %s \n LIMIT %s'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment