New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getting errors on install #273
Comments
so i upgraded swig and i am getting the following (venv) [andrewcz@andrewcz-pc tick]$ python setup.py build install compile options: '-DNO_ATLAS_INFO=1 -Iinclude -Ilib/third_party/cereal/include -I/home/andrewcz/venv/lib/python3.7/site-packages/numpy/core/include -I/usr/include/python3.7m -c' getting closer. |
Hi there, I have tested python 3.7 and it has worked for me Can you tell me what your version of gcc is please?
|
hey thankyou for the quick response :) |
It looks like gcc 8.2 has made something a warning, which is now an error in compilation if you want to compile you can remove the line |
il give it a try :) |
thankyou |
give me a couple of minutes :) |
Also i was going to ask, the experiments from the below paper. https://arxiv.org/pdf/1712.02640.pdf Are they located in a repository? I was curious to go through them. |
@stephanegaiffas might be able to help you there |
Ah Awesome!!. |
Hey Andrew, I think that you might be interested in the following example : https://x-datainitiative.github.io/tick/auto_examples/plot_robust_linear_regression.html Cheers |
Regarding the compile error in cereal, it's a known issue |
ah, amazing! Many thanks :) |
Yes it it the algorithm of the paper |
Amazing! Best, |
(venv) [andrewcz@andrewcz-pc tick]$ python3 setup.py build_ext --inplace bdist_wheel
setup.py:199: DeprecationWarning: SO is deprecated, use EXT_SUFFIX
sysconfig.get_config_var('SO'))
running build_ext
building 'tick.array.build._array' extension
swigging lib/swig/array/array_module.i to lib/swig/array/array_module_wrap.cpp
swig -python -py3 -c++ -modern -new_repr -Ilib/swig/base -Ilib/include -outdir tick/array/build -Isrc/swig/array -DDEBUG_COSTLY_THROW -o lib/swig/array/array_module_wrap.cpp lib/swig/array/array_module.i
C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC
compile options: '-Iinclude -Ilib/third_party/cereal/include -I/home/andrewcz/venv/lib/python3.7/site-packages/numpy/core/include -I/usr/include/python3.7m -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 -ffast-math -Wall -Werror -Wno-uninitialized -Isrc/swig/array -DDEBUG_COSTLY_THROW'
gcc: lib/swig/array/array_module_wrap.cpp
gcc: lib/cpp/array/alloc.cpp
lib/swig/array/array_module_wrap.cpp: In function ‘void SWIG_Python_FixMethods(PyMethodDef*, swig_const_info*, swig_type_info**, swig_type_info**)’:
lib/swig/array/array_module_wrap.cpp:15019:22: error: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 10 bytes from a string of the same length [-Werror=stringop-truncation]
strncpy(buff, "swig_ptr: ", 10);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
lib/swig/array/array_module_wrap.cpp: In function ‘void SWIG_Python_FixMethods(PyMethodDef*, swig_const_info*, swig_type_info**, swig_type_info**)’:
lib/swig/array/array_module_wrap.cpp:15019:22: error: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 10 bytes from a string of the same length [-Werror=stringop-truncation]
strncpy(buff, "swig_ptr: ", 10);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
error: Command "gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -Iinclude -Ilib/third_party/cereal/include -I/home/andrewcz/venv/lib/python3.7/site-packages/numpy/core/include -I/usr/include/python3.7m -c lib/swig/array/array_module_wrap.cpp -o build/temp.linux-x86_64-3.7/lib/swig/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 -ffast-math -Wall -Werror -Wno-uninitialized -Isrc/swig/array -DDEBUG_COSTLY_THROW" failed with exit status 1
(venv) [andrewcz@andrewcz-pc tick]$ python3 setup.py build_ext --inplace bdist_wheel
apologies i am getting errors on the build
The text was updated successfully, but these errors were encountered: