カテゴリー別アーカイブ: python 3.4.5

peeweeを入れようとしたが入らない件

versionはpython 3.4.5

pythonのormであるpeeweeを試しにpipでいれようとしたが…

gccに問題があるようだが入らない。

yumでgcc関連のライブラリを更新したがうまくいかず。

試行錯誤したがうまくいかず詰んでいます。

error: command 'gcc' failed with exit status 1


pip3 install peewee

Collecting peewee
Using cached https://files.pythonhosted.org/packages/a8/b4/4c56f8810365c9fab20eec0e96474189c61b64d01859fed0b3eb67dce67b/peewee-3.3.4.tar.gz
Installing collected packages: peewee
Running setup.py install for peewee ... error
Complete output from command /usr/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ldfqc0yz/peewee/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-uojv5e3q/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.4
copying peewee.py -> build/lib.linux-x86_64-3.4
copying pwiz.py -> build/lib.linux-x86_64-3.4
creating build/lib.linux-x86_64-3.4/playhouse
copying playhouse/signals.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/sqliteq.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/shortcuts.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/hybrid.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/flask_utils.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/apsw_ext.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/sqlite_udf.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/__init__.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/pool.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/migrate.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/db_url.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/test_utils.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/sqlite_ext.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/dataset.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/fields.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/kv.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/postgres_ext.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/sqlcipher_ext.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/reflection.py -> build/lib.linux-x86_64-3.4/playhouse
copying playhouse/mysql_ext.py -> build/lib.linux-x86_64-3.4/playhouse
running build_ext
cythoning playhouse/_speedups.pyx to playhouse/_speedups.c
building 'playhouse._speedups' extension
creating build/temp.linux-x86_64-3.4
creating build/temp.linux-x86_64-3.4/playhouse
gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -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.4m -c playhouse/_speedups.c -o build/temp.linux-x86_64-3.4/playhouse/_speedups.o
gcc -pthread -shared -Wl,-z,relro build/temp.linux-x86_64-3.4/playhouse/_speedups.o -L/usr/lib64 -lpython3.4m -o build/lib.linux-x86_64-3.4/playhouse/_speedups.cpython-34m.so
cythoning playhouse/_sqlite_udf.pyx to playhouse/_sqlite_udf.c
building 'playhouse._sqlite_udf' extension
gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -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.4m -c playhouse/_sqlite_udf.c -o build/temp.linux-x86_64-3.4/playhouse/_sqlite_udf.o
gcc -pthread -shared -Wl,-z,relro build/temp.linux-x86_64-3.4/playhouse/_sqlite_udf.o -L/usr/lib64 -lpython3.4m -o build/lib.linux-x86_64-3.4/playhouse/_sqlite_udf.cpython-34m.so
cythoning playhouse/_sqlite_ext.pyx to playhouse/_sqlite_ext.c
warning: playhouse/_sqlite_ext.pyx:316:57: local variable 'pNew' referenced before assignment
warning: playhouse/_sqlite_ext.pyx:344:55: local variable 'pCur' referenced before assignment
warning: playhouse/_sqlite_ext.pyx:1023:48: local variable 'bf' referenced before assignment
building 'playhouse._sqlite_ext' extension
gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -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.4m -c playhouse/_sqlite_ext.c -o build/temp.linux-x86_64-3.4/playhouse/_sqlite_ext.o
playhouse/_sqlite_ext.c: In function ‘__pyx_f_9playhouse_11_sqlite_ext_pwBestIndex’:
playhouse/_sqlite_ext.c:4488:25: warning: assignment from incompatible pointer type [enabled by default]
__pyx_v_pConstraint = (&(__pyx_v_pIdxInfo->aConstraint[__pyx_v_i]));
^
playhouse/_sqlite_ext.c:4651:23: error: ‘sqlite3_index_info’ has no member named ‘estimatedRows’
__pyx_v_pIdxInfo->estimatedRows = 10;
^
playhouse/_sqlite_ext.c:4680:23: error: ‘sqlite3_index_info’ has no member named ‘estimatedRows’
__pyx_v_pIdxInfo->estimatedRows = __Pyx_pow_long(10, ((long)(__pyx_v_nParams - __pyx_v_nArg)));
^
playhouse/_sqlite_ext.c:4791:21: error: ‘sqlite3_index_info’ has no member named ‘estimatedRows’
__pyx_v_pIdxInfo->estimatedRows = 0x186A0;
^
playhouse/_sqlite_ext.c: In function ‘__pyx_f_9playhouse_11_sqlite_ext_18_TableFunctionImpl_create_module’:
playhouse/_sqlite_ext.c:4992:33: warning: assignment from incompatible pointer type [enabled by default]
__pyx_v_self->module.xConnect = __pyx_f_9playhouse_11_sqlite_ext_pwConnect;
^
playhouse/_sqlite_ext.c: In function ‘__pyx_pf_9playhouse_11_sqlite_ext_16ConnectionHelper_8set_update_hook’:
playhouse/_sqlite_ext.c:16039:5: warning: passing argument 2 of ‘sqlite3_update_hook’ from incompatible pointer type [enabled by default]
sqlite3_update_hook(__pyx_v_self->conn->db, __pyx_f_9playhouse_11_sqlite_ext__update_callback, ((void *)__pyx_v_fn));
^
In file included from playhouse/_sqlite_ext.c:531:0:
/usr/include/sqlite3.h:4826:18: note: expected ‘void (*)(void *, int, const char *, const char *, sqlite3_int64)’ but argument is of type ‘void (*)(void *, int, char *, char *, sqlite3_int64)’
SQLITE_API void *sqlite3_update_hook(
^
playhouse/_sqlite_ext.c: In function ‘__pyx_pf_9playhouse_11_sqlite_ext_16ConnectionHelper_10set_busy_handler’:
playhouse/_sqlite_ext.c:16147:108: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
sqlite3_busy_handler(__pyx_v_self->conn->db, __pyx_f_9playhouse_11_sqlite_ext__aggressive_busy_handler, ((void *)__pyx_v_n));
^
playhouse/_sqlite_ext.c: In function ‘__pyx_f_9playhouse_11_sqlite_ext__aggressive_busy_handler’:
playhouse/_sqlite_ext.c:17580:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
__pyx_v_busyTimeout = ((int)__pyx_v_ptr);
^
playhouse/_sqlite_ext.c: At top level:
playhouse/_sqlite_ext.c:5974:18: warning: ‘__pyx_f_9playhouse_11_sqlite_ext_validate_and_format_datetime’ defined but not used [-Wunused-function]
static PyObject *__pyx_f_9playhouse_11_sqlite_ext_validate_and_format_datetime(PyObject *__pyx_v_lookup, PyObject *__pyx_v_date_str) {
^
error: command 'gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ldfqc0yz/peewee/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-uojv5e3q/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tm
p/pip-install-ldfqc0yz/peewee/