1. Marcin Kuzminski
  2. RhodeCode
  3. Issues

Issues

Issue #14 resolved

Error installing Pysqlite

Victor Hooi
created an issue

Hi,

I'm attempting to run the setup.py install script, and I get the following error: {{{ Running pysqlite-2.5.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-GIwJpl/pysqlite-2.5.6/egg-dist-tmp-kvygNJ In file included from src/module.c:24: src/connection.h:26:20: error: Python.h: No such file or directory src/connection.h:27:22: error: pythread.h: No such file or directory src/connection.h:28:26: error: structmember.h: No such file or directory In file included from src/connection.h:30, from src/module.c:24: src/cache.h:34: error: expected specifier-qualifier-list before âPyObject_HEADâ src/cache.h:44: error: expected specifier-qualifier-list before âPyObject_HEADâ src/cache.h:61: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before âpysqlite_NodeTypeâ src/cache.h:62: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before âpysqlite_CacheTypeâ src/cache.h:64: error: expected declaration specifiers or â...â before âPyObjectâ src/cache.h:64: error: expected declaration specifiers or â...â before âPyObjectâ src/cache.h:67: error: expected declaration specifiers or â...â before âPyObjectâ src/cache.h:67: error: expected declaration specifiers or â...â before âPyObjectâ src/cache.h:69: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token In file included from src/connection.h:31, from src/module.c:24: src/module.h:30: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.h:31: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.h:32: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.h:33: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.h:34: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.h:35: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.h:36: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.h:37: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.h:38: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.h:39: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.h:41: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.h:44: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.h:45: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.h:51: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/connection.h:33:21: error: sqlite3.h: No such file or directory In file included from src/module.c:24: src/connection.h:37: error: expected specifier-qualifier-list before âPyObject_HEADâ src/connection.h:120: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before âpysqlite_ConnectionTypeâ src/connection.h:122: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/connection.h:124: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/connection.h:125: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/connection.h:126: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/connection.h:127: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/connection.h:128: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/connection.h:129: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/connection.h:130: error: expected declaration specifiers or â...â before âPyObjectâ src/connection.h:130: error: expected declaration specifiers or â...â before âPyObjectâ src/connection.h:132: error: expected declaration specifiers or â...â before âPyObjectâ In file included from src/module.c:25: src/statement.h:36: error: expected specifier-qualifier-list before âPyObject_HEADâ src/statement.h:44: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before âpysqlite_StatementTypeâ src/statement.h:46: error: expected declaration specifiers or â...â before âPyObjectâ src/statement.h:49: error: expected declaration specifiers or â...â before âPyObjectâ src/statement.h:50: error: expected declaration specifiers or â...â before âPyObjectâ src/statement.h:52: error: expected declaration specifiers or â...â before âPyObjectâ In file included from src/module.c:26: src/cursor.h:34: error: expected specifier-qualifier-list before âPyObject_HEADâ src/cursor.h:59: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before âpysqlite_CursorTypeâ src/cursor.h:61: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/cursor.h:62: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/cursor.h:63: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/cursor.h:64: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/cursor.h:65: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/cursor.h:66: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/cursor.h:67: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/cursor.h:68: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/cursor.h:69: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token In file included from src/module.c:28: src/prepare_protocol.h:30: error: expected specifier-qualifier-list before âPyObject_HEADâ src/prepare_protocol.h:33: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before âpysqlite_PrepareProtocolTypeâ src/prepare_protocol.h:35: error: expected declaration specifiers or â...â before âPyObjectâ src/prepare_protocol.h:35: error: expected declaration specifiers or â...â before âPyObjectâ In file included from src/module.c:29: src/microprotocols.h:33: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/microprotocols.h:44: error: expected â)â before ââ token src/microprotocols.h:46: error: expected â)â before ââ token src/microprotocols.h:47: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/microprotocols.h:50: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token In file included from src/module.c:30: src/row.h:30: error: expected specifier-qualifier-list before âPyObject_HEADâ src/row.h:35: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before âpysqlite_RowTypeâ src/module.c:38: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.c:42: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.c:46: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.c:80: error: expected â)â before string constant src/module.c:86: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.c:111: error: expected â)â before string constant src/module.c:146: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.c:172: error: expected â)â before string constant src/module.c:176: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.c:205: error: expected â)â before string constant src/module.c:209: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token src/module.c:220: error: expected â)â before string constant src/module.c:224: error: expected â)â before ââ token src/module.c:234: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before âmodule_methodsâ src/module.c:265: error: âSQLITE_OKâ undeclared here (not in a function) src/module.c:266: error: âSQLITE_DENYâ undeclared here (not in a function) src/module.c:267: error: âSQLITE_IGNOREâ undeclared here (not in a function) src/module.c:268: error: âSQLITE_CREATE_INDEXâ undeclared here (not in a function) src/module.c:269: error: âSQLITE_CREATE_TABLEâ undeclared here (not in a function) src/module.c:270: error: âSQLITE_CREATE_TEMP_INDEXâ undeclared here (not in a function) src/module.c:271: error: âSQLITE_CREATE_TEMP_TABLEâ undeclared here (not in a function) src/module.c:272: error: âSQLITE_CREATE_TEMP_TRIGGERâ undeclared here (not in a function) src/module.c:273: error: âSQLITE_CREATE_TEMP_VIEWâ undeclared here (not in a function) src/module.c:274: error: âSQLITE_CREATE_TRIGGERâ undeclared here (not in a function) src/module.c:275: error: âSQLITE_CREATE_VIEWâ undeclared here (not in a function) src/module.c:276: error: âSQLITE_DELETEâ undeclared here (not in a function) src/module.c:277: error: âSQLITE_DROP_INDEXâ undeclared here (not in a function) src/module.c:278: error: âSQLITE_DROP_TABLEâ undeclared here (not in a function) src/module.c:279: error: âSQLITE_DROP_TEMP_INDEXâ undeclared here (not in a function) src/module.c:280: error: âSQLITE_DROP_TEMP_TABLEâ undeclared here (not in a function) src/module.c:281: error: âSQLITE_DROP_TEMP_TRIGGERâ undeclared here (not in a function) src/module.c:282: error: âSQLITE_DROP_TEMP_VIEWâ undeclared here (not in a function) src/module.c:283: error: âSQLITE_DROP_TRIGGERâ undeclared here (not in a function) src/module.c:284: error: âSQLITE_DROP_VIEWâ undeclared here (not in a function) src/module.c:285: error: âSQLITE_INSERTâ undeclared here (not in a function) src/module.c:286: error: âSQLITE_PRAGMAâ undeclared here (not in a function) src/module.c:287: error: âSQLITE_READâ undeclared here (not in a function) src/module.c:288: error: âSQLITE_SELECTâ undeclared here (not in a function) src/module.c:289: error: âSQLITE_TRANSACTIONâ undeclared here (not in a function) src/module.c:290: error: âSQLITE_UPDATEâ undeclared here (not in a function) src/module.c:291: error: âSQLITE_ATTACHâ undeclared here (not in a function) src/module.c:292: error: âSQLITE_DETACHâ undeclared here (not in a function) src/module.c:300: error: âNULLâ undeclared here (not in a function) src/module.c:303: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before âinit_sqliteâ error: Setup script exited with error: command 'gcc' failed with exit status 1 }}}

Cheers, Victor

Comments (1)

  1. Victor Hooi reporter

    Scratch that, I'm silly.

    This was a fresh server, I forgot to install python-dev and libsqlite3-dev (perhaps just put a note about them being requirements in the README.rst?).

  2. Log in to comment