This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 4th, 2012  |  syntax: None  |  size: 3.24 KB  |  views: 140  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. >>> HR.models.init_db()              
  2. Traceback (most recent call last):
  3.   File "<stdin>", line 1, in <module>
  4.   File "HR/models.py", line 59, in init_db
  5.     Base.metadata.create_all(bind=engine)
  6.   File "/home/serah/HR/venv/lib/python2.7/site-packages/sqlalchemy/schema.py", line 1582, in create_all
  7.     bind.create(self, checkfirst=checkfirst, tables=tables)
  8.   File "/home/serah/HR/venv/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1139, in create
  9.     self._run_visitor(self.dialect.schemagenerator, entity, connection=connection, **kwargs)
  10.   File "/home/serah/HR/venv/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1168, in _run_visitor
  11.     visitorcallable(self.dialect, conn, **kwargs).traverse(element)
  12.   File "/home/serah/HR/venv/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py", line 75, in traverse
  13.     return self._non_cloned_traversal(obj)
  14.   File "/home/serah/HR/venv/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py", line 134, in _non_cloned_traversal
  15.     self.traverse_single(target)
  16.   File "/home/serah/HR/venv/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py", line 35, in traverse_single
  17.     return meth(obj, **kwargs)
  18.   File "/home/serah/HR/venv/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 758, in visit_metadata
  19.     self.traverse_single(table)
  20.   File "/home/serah/HR/venv/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py", line 35, in traverse_single
  21.     return meth(obj, **kwargs)
  22.   File "/home/serah/HR/venv/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 794, in visit_table
  23.     self.execute()
  24.   File "/home/serah/HR/venv/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1794, in execute
  25.     return self.connection.execute(self.buffer.getvalue())
  26.   File "/home/serah/HR/venv/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 844, in execute
  27.     return Connection.executors[c](self, object, multiparams, params)
  28.   File "/home/serah/HR/venv/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 854, in _execute_text
  29.     self.__execute_raw(context)
  30.   File "/home/serah/HR/venv/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 916, in __execute_raw
  31.     self._cursor_execute(context.cursor, context.statement, context.parameters[0], context=context)
  32.   File "/home/serah/HR/venv/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 960, in _cursor_execute
  33.     self._handle_dbapi_exception(e, statement, parameters, cursor)
  34.   File "/home/serah/HR/venv/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 942, in _handle_dbapi_exception
  35.     raise exceptions.DBAPIError.instance(statement, parameters, e, connection_invalidated=is_disconnect)
  36. sqlalchemy.exceptions.ProgrammingError: (ProgrammingError) ibm_db_dbi::ProgrammingError: [IBM][CLI Driver][DB2/LINUX] SQL20521N  Error occurred processing a conditional compilation directive near "_". Reason code="7".  SQLSTATE=428HV SQLCODE=-20521 '\nCREATE TABLE users (\n\tpassword LONG VARCHAR, \n\tname VARCHAR(50), \n\tlevel INTEGER, \n\tdob LONG VARCHAR, \n\tnumber LONG VARCHAR, \n\texperience LONG VARCHAR, \n\theadline LONG VARCHAR, \n\texpertise LONG VARCHAR, \n\t_id INTEGER, \n\temail VARCHAR(100) NOT NULL, \n\tPRIMARY KEY (email), \n\t UNIQUE (email)\n)\n\n' {}
clone this paste RAW Paste Data