Skip to content

Instantly share code, notes, and snippets.

@iffy
Created July 1, 2011 00:41
Show Gist options
  • Save iffy/1057635 to your computer and use it in GitHub Desktop.
Save iffy/1057635 to your computer and use it in GitHub Desktop.
axiom error
$ python test.py
2.4.1
[axiom, version 0.6.0]
('Darwin', 'bonabuhle.local', '10.7.0', 'Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386', 'i386')
Traceback (most recent call last):
File "test.py", line 11, in <module>
s = Store()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/axiom/store.py", line 1161, in __init__
self._initSchema()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/axiom/store.py", line 1264, in _initSchema
self.executeSchemaSQL(stmt)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/axiom/store.py", line 2325, in executeSchemaSQL
return self.executeSQL(sql, args)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/axiom/store.py", line 2332, in executeSQL
sql = self._execSQL(sql, args)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/axiom/store.py", line 2318, in _execSQL
rows = self._queryandfetch(sql, args)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/axiom/store.py", line 2286, in _queryandfetch
self.cursor.execute(sql, args)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/axiom/_pysqlite2.py", line 143, in execute
raise self._connection.identifySQLError(sql, args, e)
axiom.errors.SQLError: <SQLError: '\nCREATE TABLE main.axiom_attributes (\n type_id INTEGER,\n row_offset INTEGER,\n indexed BOOLEAN,\n sqltype VARCHAR,\n allow_none BOOLEAN,\n pythontype VARCHAR,\n attribute VARCHAR,\n docstring TEXT\n)\n'(()) caused <class 'sqlite3.OperationalError'>: near "indexed": syntax error>
$ python --version
Python 2.6.6
import sqlite3
print sqlite3.version
import axiom
print axiom.version
import os
print os.uname()
from axiom.store import Store
s = Store()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment