Ericsson / eva

EVA is a web-based tool for efficient annotation of videos and image sequences and has an additional tracking capabilities
BSD 2-Clause "Simplified" License
121 stars 25 forks source link

error in install #1

Closed korabelnikov closed 4 years ago

korabelnikov commented 4 years ago

(venv) (base) user@korabelnikov-pc:~/repos/eva$ python manage.py preparetracker cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ Segmentation fault (core dumped)

manishs17 commented 4 years ago

That seems to be a warning, did the tracker compiled successfully for you ?

korabelnikov commented 4 years ago

There is segfault as you can see

manishs17 commented 4 years ago

There is segfault as you can see

Yes I see, can you share what version of python and g++ you have. It works fine with


.
.
.
Installing collected packages: pytz, Django, vine, amqp, kombu, billiard, redis, celery, six, numpy, h5py, opencv-python-headless, opencv-contrib-python, llvmlite, numba, pyyaml
Successfully installed Django-1.11.26 amqp-2.5.2 billiard-3.5.0.5 celery-4.2.2 h5py-2.9.0 kombu-4.3.0 llvmlite-0.30.0 numba-0.44.1 numpy-1.16.4 opencv-contrib-python-4.1.0.25 opencv-python-headless-3.4.8.29 pytz-2019.3 pyyaml-5.1.1 redis-2.10.6 six-1.13.0 vine-1.3.0
(venv) es@k:~/work/eva$ python manage.py  preparetracker
Done
(venv) es@k:~/work/eva$ python --version
Python 3.6.9
(venv) es@k:~/work/eva$ g++ --version
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
korabelnikov commented 4 years ago
(base) user@korabelnikov-pc:~/repos/eva_$ . venv/bin/activate
(venv) (base) user@korabelnikov-pc:~/repos/eva_$ python --version
Python 3.7.5
(venv) (base) user@korabelnikov-pc:~/repos/eva_$ g++ --version
g++ (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

(venv) (base) user@korabelnikov-pc:~/repos/eva_$ 

I suppose error's cause is new version of g++ supplied with ubuntu 18.04. AFAIK 7th and 5th versions have differences. And users of 18 need different compile flag, but I don't know where to change it.

korabelnikov commented 4 years ago

docker works fine with clean copy of eva

manishs17 commented 4 years ago

Possibly related to Numba https://github.com/numba/numba/issues/3361 , Suggestion is to go with a working version of g++ and python.

raphael-sch commented 4 years ago

switching from python 3.7 to 3.6 helped for me