On Sep 03 2020, Esteban Fonseca <[email protected]> wrote:
> *1. Build*
>
> [root@hostname]# python3.6 setup.py build_ext --inplace
> running build_ext
> building 's3ql.deltadump' extension
> creating build
> creating build/temp.linux-x86_64-3.6
> creating build/temp.linux-x86_64-3.6/src
> creating build/temp.linux-x86_64-3.6/src/s3ql
> gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
> --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
> -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c
> src/s3ql/deltadump.c -o build/temp.linux-x86_64-3.6/src/s3ql/deltadump.o
> -Wall -Wextra -Wconversion -Wsign-compare
> src/s3ql/deltadump.c: In function ‘__pyx_pw_4s3ql_9deltadump_5load_table’:
> src/s3ql/deltadump.c:7177:48: warning: ‘__pyx_v_int64’ may be used
> uninitialized in this function [-Wmaybe-uninitialized]
> __pyx_v_int64 = (__pyx_v_int64 +
> ((__pyx_cur_scope->__pyx_v_col_args[__pyx_v_j]) +
> (__pyx_cur_scope->__pyx_v_int64_prev[__pyx_v_j])));
> ^
> src/s3ql/deltadump.c:5904:11: note: ‘__pyx_v_int64’ was declared here
> int64_t __pyx_v_int64;
> ^
> src/s3ql/deltadump.c:11993:13: warning: ‘__pyx_v_row_count’ may be used
> uninitialized in this function [-Wmaybe-uninitialized]
> return PyInt_FromLong((long) value);
> ^
> src/s3ql/deltadump.c:5903:11: note: ‘__pyx_v_row_count’ was declared here
> int64_t __pyx_v_row_count;
> ^
> creating build/lib.linux-x86_64-3.6
> creating build/lib.linux-x86_64-3.6/s3ql
> gcc -pthread -shared -Wl,-z,relro -g
> build/temp.linux-x86_64-3.6/src/s3ql/deltadump.o -L/usr/lib64 -lpython3.6m
> -o build/lib.linux-x86_64-3.6/s3ql/deltadump.cpython-36m-x86_64-linux-gnu.so
> -lsqlite3
> copying build/lib.linux-x86_64-3.6/s3ql/
> deltadump.cpython-36m-x86_64-linux-gnu.so -> src/s3ql
Nothing wrong here.
> *2. Test*
>
> [root@hostname]# python3.6 -m pytest tests/
[...]
> Traceback (most recent call last):
> File "/usr/src/s3ql-3.5.0/tests/pytest_checklogs.py", line 137, in
> pytest_runtest_setup
> check_output(item)
> File "/usr/src/s3ql-3.5.0/tests/pytest_checklogs.py", line 133, in
> check_output
> check_test_log(item.catch_log_handler)
> AttributeError: 'Function' object has no attribute 'catch_log_handler'
Maybe we are not compatible with pytest 6.x - can you try an earlier
version (say 5.x)?
> *3. Mount (or any other operation)*
>
> "/usr/local/lib64/python3.6/site-packages/s3ql-3.5.0-py3.6-linux-x86_64.egg/s3ql/mount.py",
> line 18, in <module>
> from .metadata import (download_metadata, upload_metadata,
> dump_and_upload_metadata,
> File
> "/usr/local/lib64/python3.6/site-packages/s3ql-3.5.0-py3.6-linux-x86_64.egg/s3ql/metadata.py",
> line 13, in <module>
> from .deltadump import INTEGER, BLOB, dump_table, load_table
> ImportError: cannot import name 'INTEGER'
This one confuses me, but I'd focus on the tests first.
Best,
-Nikolaus
--
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
»Time flies like an arrow, fruit flies like a Banana.«
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/s3ql/87pn73uye7.fsf%40vostro.rath.org.