i get the following gcc deprecation errors when installing with python 3.8 inside a conda environment.
full error message quoted below.
i built a conda env just for tick in python 3.6, and while it still couldn't make a wheel, it did complete the setup.py install. i imagine gcc upgraded the error handling for the deprecated methods in between?
local env path has been redacted to '{env}'
Building wheel for tick (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /{env}/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/24/g6ngctts3dxcnknt223sdt380000gr/T/pip-req-build-4puvc3rk/setup.py'"'"'; __file__='"'"'/private/var/folders/24/g6ngctts3dxcnknt223sdt380000gr/T/pip-req-build-4puvc3rk/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/24/g6ngctts3dxcnknt223sdt380000gr/T/pip-wheel-1feq5s9_
cwd: /private/var/folders/24/g6ngctts3dxcnknt223sdt380000gr/T/pip-req-build-4puvc3rk/
Complete output (77 lines):
Error executing check_mkl.py - mkl not found
running bdist_wheel
running build
running build_ext
building 'tick.array.build._array' extension
swigging lib/swig/tick/array/array_module.i to lib/swig/tick/array/array_module_wrap.cpp
swig -python -py3 -c++ -Ilib/swig -Ilib/include -outdir tick/array/build -DDEBUG_COSTLY_THROW -o lib/swig/tick/array/array_module_wrap.cpp lib/swig/tick/array/array_module.i
C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/{env}/include -arch x86_64 -I/{env}/include -arch x86_64
creating build/temp.macosx-10.9-x86_64-3.8/lib
creating build/temp.macosx-10.9-x86_64-3.8/lib/swig
creating build/temp.macosx-10.9-x86_64-3.8/lib/swig/tick
creating build/temp.macosx-10.9-x86_64-3.8/lib/swig/tick/array
creating build/temp.macosx-10.9-x86_64-3.8/lib/cpp
creating build/temp.macosx-10.9-x86_64-3.8/lib/cpp/array
compile options: '-Iinclude -Iswig -Ilib/third_party/cereal/include -I/{env}/lib/python3.8/site-packages/numpy/core/include -I/{env}/include/python3.8 -c'
extra options: '-D_FILE_OFFSET_BITS=64 -DPYTHON_LINK -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -Ilib/include -DTICK_SPARSE_INDICES_INT32 -std=c++11 -O2 -DNDEBUG -ffast-math -Wall -Werror -DDEBUG_COSTLY_THROW'
gcc: lib/swig/tick/array/array_module_wrap.cpp
gcc: lib/cpp/array/alloc.cpp
lib/swig/tick/array/array_module_wrap.cpp:1780:7: error: 'tp_print' is deprecated [-Werror,-Wdeprecated-declarations]
0, /* tp_print */
^
/{env}/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
^
/{env}/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
In file included from lib/swig/tick/array/array_module_wrap.cpp:178:
In file included from /{env}/include/python3.8/Python.h:85:
In file included from /{env}/include/python3.8/pytime.h:6:
In file included from /{env}/include/python3.8/object.h:746:
/{env}/include/python3.8/cpython/object.h:177:16: error: 'tp_print' is deprecated [-Werror,-Wdeprecated-declarations]
typedef struct _typeobject {
^
lib/swig/tick/array/array_module_wrap.cpp:1790:23: note: in implicit copy assignment operator for '_typeobject' first required here
swigpyobject_type = tmp;
^
/{env}/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
^
/{env}/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
In file included from lib/swig/tick/array/array_module_wrap.cpp:178:
In file included from /{env}/include/python3.8/Python.h:85:
In file included from /{env}/include/python3.8/pytime.h:6:
In file included from /{env}/include/python3.8/object.h:746:
/{env}/include/python3.8/cpython/object.h:177:16: error: 'tp_print' is deprecated [-Werror,-Wdeprecated-declarations]
typedef struct _typeobject {
^
/{env}/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
^
/{env}/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
lib/swig/tick/array/array_module_wrap.cpp:1947:7: error: 'tp_print' is deprecated [-Werror,-Wdeprecated-declarations]
0, /* tp_print */
^
/{env}/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
^
/{env}/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
lib/swig/tick/array/array_module_wrap.cpp:18580:9: error: 'tp_print' is deprecated [-Werror,-Wdeprecated-declarations]
0, /* tp_print */
^
/{env}/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
^
/{env}/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
5 errors generated.
error: Command "gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/{env}/include -arch x86_64 -I/{env}/include -arch x86_64 -Iinclude -Iswig -Ilib/third_party/cereal/include -I/{env}/lib/python3.8/site-packages/numpy/core/include -I/{env}/include/python3.8 -c lib/swig/tick/array/array_module_wrap.cpp -o build/temp.macosx-10.9-x86_64-3.8/lib/swig/tick/array/array_module_wrap.o -D_FILE_OFFSET_BITS=64 -DPYTHON_LINK -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -Ilib/include -DTICK_SPARSE_INDICES_INT32 -std=c++11 -O2 -DNDEBUG -ffast-math -Wall -Werror -DDEBUG_COSTLY_THROW" failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for tick
Running setup.py clean for tick
Failed to build tick
WARNING: Error parsing requirements for rsa: [Errno 2] No such file or directory: '/{env}/lib/python3.8/site-packages/rsa-4.0.dist-info/METADATA'
Installing collected packages: tick
Running setup.py install for tick ... error
ERROR: Command errored out with exit status 1:
command: /{env}/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/24/g6ngctts3dxcnknt223sdt380000gr/T/pip-req-build-4puvc3rk/setup.py'"'"'; __file__='"'"'/private/var/folders/24/g6ngctts3dxcnknt223sdt380000gr/T/pip-req-build-4puvc3rk/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/24/g6ngctts3dxcnknt223sdt380000gr/T/pip-record-wtzhp1f6/install-record.txt --single-version-externally-managed --compile --install-headers /{env}/include/python3.8/tick
cwd: /private/var/folders/24/g6ngctts3dxcnknt223sdt380000gr/T/pip-req-build-4puvc3rk/
Complete output (76 lines):
Error executing check_mkl.py - mkl not found
running install
running build_ext
building 'tick.array.build._array' extension
swigging lib/swig/tick/array/array_module.i to lib/swig/tick/array/array_module_wrap.cpp
swig -python -py3 -c++ -Ilib/swig -Ilib/include -outdir tick/array/build -DDEBUG_COSTLY_THROW -o lib/swig/tick/array/array_module_wrap.cpp lib/swig/tick/array/array_module.i
C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/{env}/include -arch x86_64 -I/{env}/include -arch x86_64
creating build/temp.macosx-10.9-x86_64-3.8/lib
creating build/temp.macosx-10.9-x86_64-3.8/lib/swig
creating build/temp.macosx-10.9-x86_64-3.8/lib/swig/tick
creating build/temp.macosx-10.9-x86_64-3.8/lib/swig/tick/array
creating build/temp.macosx-10.9-x86_64-3.8/lib/cpp
creating build/temp.macosx-10.9-x86_64-3.8/lib/cpp/array
compile options: '-Iinclude -Iswig -Ilib/third_party/cereal/include -I/{env}/lib/python3.8/site-packages/numpy/core/include -I/{env}/include/python3.8 -c'
extra options: '-D_FILE_OFFSET_BITS=64 -DPYTHON_LINK -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -Ilib/include -DTICK_SPARSE_INDICES_INT32 -std=c++11 -O2 -DNDEBUG -ffast-math -Wall -Werror -DDEBUG_COSTLY_THROW'
gcc: lib/swig/tick/array/array_module_wrap.cpp
gcc: lib/cpp/array/alloc.cpp
lib/swig/tick/array/array_module_wrap.cpp:1780:7: error: 'tp_print' is deprecated [-Werror,-Wdeprecated-declarations]
0, /* tp_print */
^
/{env}/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
^
/{env}/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
In file included from lib/swig/tick/array/array_module_wrap.cpp:178:
In file included from /{env}/include/python3.8/Python.h:85:
In file included from /{env}/include/python3.8/pytime.h:6:
In file included from /{env}/include/python3.8/object.h:746:
/{env}/include/python3.8/cpython/object.h:177:16: error: 'tp_print' is deprecated [-Werror,-Wdeprecated-declarations]
typedef struct _typeobject {
^
lib/swig/tick/array/array_module_wrap.cpp:1790:23: note: in implicit copy assignment operator for '_typeobject' first required here
swigpyobject_type = tmp;
^
/{env}/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
^
/{env}/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
In file included from lib/swig/tick/array/array_module_wrap.cpp:178:
In file included from /{env}/include/python3.8/Python.h:85:
In file included from /{env}/include/python3.8/pytime.h:6:
In file included from /{env}/include/python3.8/object.h:746:
/{env}/include/python3.8/cpython/object.h:177:16: error: 'tp_print' is deprecated [-Werror,-Wdeprecated-declarations]
typedef struct _typeobject {
^
/{env}/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
^
/{env}/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
lib/swig/tick/array/array_module_wrap.cpp:1947:7: error: 'tp_print' is deprecated [-Werror,-Wdeprecated-declarations]
0, /* tp_print */
^
/{env}/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
^
/{env}/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
lib/swig/tick/array/array_module_wrap.cpp:18580:9: error: 'tp_print' is deprecated [-Werror,-Wdeprecated-declarations]
0, /* tp_print */
^
/{env}/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
^
/{env}/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
5 errors generated.
error: Command "gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I{env}/include -arch x86_64 -I/{env}/include -arch x86_64 -Iinclude -Iswig -Ilib/third_party/cereal/include -I/{env}/lib/python3.8/site-packages/numpy/core/include -I/{env}/include/python3.8 -c lib/swig/tick/array/array_module_wrap.cpp -o build/temp.macosx-10.9-x86_64-3.8/lib/swig/tick/array/array_module_wrap.o -D_FILE_OFFSET_BITS=64 -DPYTHON_LINK -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -Ilib/include -DTICK_SPARSE_INDICES_INT32 -std=c++11 -O2 -DNDEBUG -ffast-math -Wall -Werror -DDEBUG_COSTLY_THROW" failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1:{env}bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/24/g6ngctts3dxcnknt223sdt380000gr/T/pip-req-build-4puvc3rk/setup.py'"'"'; __file__='"'"'/private/var/folders/24/g6ngctts3dxcnknt223sdt380000gr/T/pip-req-build-4puvc3rk/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/24/g6ngctts3dxcnknt223sdt380000gr/T/pip-record-wtzhp1f6/install-record.txt --single-version-externally-managed --compile --install-headers {env}/include/python3.8/tick Check the logs for full command output.```
i get the following gcc deprecation errors when installing with python 3.8 inside a conda environment. full error message quoted below. i built a conda env just for tick in python 3.6, and while it still couldn't make a wheel, it did complete the setup.py install. i imagine gcc upgraded the error handling for the deprecated methods in between? local env path has been redacted to '{env}'