Hi,
I'm updating s3ql to 2.26, and taking the opportunity to update the
dependencies. I'm stuck in the process of building apsw. I followed these
steps:
1) python modules update
2) Sqlite;
./configure --prefix=/usr/local/lib/sqlite3.23.1 --disable-static CFLAGS="
-Os -frecord-gcc-switches -DSQLITE_ENABLE_COLUMN_METADATA=1"
make
make install
apsw:
CFLAGS='-I/usr/local/lib/sqlite3.23.1/include/
-L/usr/local/lib/sqlite3.23.1/lib/
-Wl,-rpath=/usr/local/lib/sqlite3.23.1/lib/' python3.4 setup.py build --
enable-all-extensions
sudo python3.4 setup.py install --record files.txt test
When getting to the tests, it fails:
/usr/local/lib/python3.4/dist-packages/setuptools/dist.py:336: UserWarning:
Normalizing '3.22.0-r1' to '3.22.0.post1'
normalized_version,
running install
running bdist_egg
running egg_info
writing top-level names to apsw.egg-info/top_level.txt
writing apsw.egg-info/PKG-INFO
writing dependency_links to apsw.egg-info/dependency_links.txt
/home/alx/install/s3ql/apsw-3.22.0-r1
SQLite: Using system sqlite include/libraries
reading manifest file 'apsw.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'apsw.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
creating build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-3.4/apsw.cpython-34m.so ->
build/bdist.linux-x86_64/egg
creating stub loader for apsw.cpython-34m.so
byte-compiling build/bdist.linux-x86_64/egg/apsw.py to apsw.cpython-34.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying apsw.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying apsw.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying apsw.egg-info/dependency_links.txt ->
build/bdist.linux-x86_64/egg/EGG-INFO
copying apsw.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
__pycache__.apsw.cpython-34: module references __file__
creating 'dist/apsw-3.22.0.post1-py3.4-linux-x86_64.egg' and adding
'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing apsw-3.22.0.post1-py3.4-linux-x86_64.egg
removing
'/usr/local/lib/python3.4/dist-packages/apsw-3.22.0.post1-py3.4-linux-x86_64.egg'
(and everything under it)
creating
/usr/local/lib/python3.4/dist-packages/apsw-3.22.0.post1-py3.4-linux-x86_64.egg
Extracting apsw-3.22.0.post1-py3.4-linux-x86_64.egg to
/usr/local/lib/python3.4/dist-packages
apsw 3.22.0.post1 is already the active version in easy-install.pth
Installed
/usr/local/lib/python3.4/dist-packages/apsw-3.22.0.post1-py3.4-linux-x86_64.egg
Processing dependencies for apsw==3.22.0.post1
Finished processing dependencies for apsw==3.22.0.post1
writing list of installed files to 'files.txt'
running test
Python /usr/bin/python3.4 sys.version_info(major=3,
minor=4, micro=3, releaselevel='final', serial=0)
Testing with APSW file
/usr/local/lib/python3.4/dist-packages/apsw.cpython-34m.so
APSW version 3.11.0-r1
SQLite lib version 3.11.0
SQLite headers version 3011000
Using amalgamation False
.................E.........................E.................F.......................
======================================================================
ERROR: testConnectionConfig (tests.APSW)
Test Connection.config function
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/alx/install/s3ql/apsw-3.22.0-r1/tests.py", line 480, in
testConnectionConfig
for i in apsw.SQLITE_DBCONFIG_ENABLE_FKEY,
apsw.SQLITE_DBCONFIG_ENABLE_TRIGGER, apsw.SQLITE_DBCONFIG_ENABLE_QPSG:
AttributeError: 'module' object has no attribute
'SQLITE_DBCONFIG_ENABLE_QPSG'
======================================================================
ERROR: testLastInsertRowId (tests.APSW)
Check last insert row id
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/alx/install/s3ql/apsw-3.22.0-r1/tests.py", line 1508, in
testLastInsertRowId
self.assertRaises(TypeError, self.db.set_last_insert_rowid,)
AttributeError: 'apsw.Connection' object has no attribute
'set_last_insert_rowid'
======================================================================
FAIL: testShell (tests.APSW)
Check Shell functionality
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/alx/install/s3ql/apsw-3.22.0-r1/tests.py", line 5967, in
testShell
self.assertTrue(s.db.filename.endswith(fn))
AssertionError: False is not true
----------------------------------------------------------------------
Ran 85 tests in 403.104s
FAILED (failures=1, errors=2)
For some reason apsw is linking with the previous version of sqlite. Is
this the root cause of the failures and errors? How can I fix it?
Thanks.
--
You received this message because you are subscribed to the Google Groups
"s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.