Open ulfet opened 6 years ago
Dear ulfet, I had a lot of problem installing the Vatic, but after some trial and error I've accomplished successfully. Below is the step-by step, I hope that can help you.
sudo apt-get install mysql-server mysql-client
mysql -u root -p
create database vatic;
exit
sudo apt-get install python2.7
sudo apt-get install python-pip
sudo apt-get install ffmpeg
sudo apt-get install -y git python-setuptools python-dev libavcodec-dev libavformat-dev libswscale-dev libjpeg62 libjpeg62-dev libfreetype6 libfreetype6-dev apache2 libapache2-mod-wsgi libmysqlclient-dev gfortran
sudo easy_install -U cython==0.20
sudo easy_install -U SQLAlchemy wsgilog Pillow mysql-python munkres parsedatetime argparse
sudo easy_install -U numpy
mkdir ~/workspace/vatic_base && cd ~/workspace/vatic_base
git clone https://github.com/cvondrick/turkic.git
git clone https://github.com/cvondrick/pyvision.git
git clone https://github.com/cvondrick/vatic.git
cd turkic
sudo python setup.py install
cd ..
cd pyvision
sudo python setup.py install
cd ..
sudo cp /etc/apache2/sites-enabled/000-default.conf /etc/apache2/sites-enabled/000-default.conf.backup
sudo cp /etc/apache2/mods-available/headers.load /etc/apache2/mods-enabled
sudo vi /etc/apache2/sites-enabled/000-default.conf
WSGIDaemonProcess www-data
WSGIProcessGroup www-data
<VirtualHost *:80>
ServerName localhost
DocumentRoot /home/user/workspace/vatic_base/vatic/public
<Location />
Require all granted
</Location>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
WSGIScriptAlias /server /home/user/workspace/vatic_base/vatic/server.py
</VirtualHost>
sudo vi /etc/apache2/apache2.conf
#Added "ServerName localhost" to the first line
sudo mkdir /var/www/.python-eggs/
sudo chown www-data:www-data /var/www/.python-eggs/
sudo apache2ctl graceful
cd vatic_base/vatic
cp config.py-example config.py
# Change DB password in config.py
database = "mysql://root:PASSwoRD@localhost/vatic"
turkic setup --database
turkic setup --public-symlink
turkic status --verify
#Testing access to database server... OK
#Testing access to web server... OK
turkic extract ~/workspace/vatic/videos/VIDEO.avi ~/workspace/vatic/videos/out/ --no-resize
turkic load VIDEO_LABEL ../videos/out/ Person ~Walking ~Running --offline
turkic status
turkic publish --offline
http://localhost/?id=1&hitId=offline
http://localhost/?id=2&hitId=offline
http://localhost/?id=3&hitId=offline
turkic dump VIDEO_LABEL -o output.txt
turkic visualize identifier /tmp --merge
turkic delete identifier --force
https://github.com/cvondrick/vatic https://gitlab.com/EAVISE/publicwiki/wikis/install-vatic
fuck, that cover my system config after your instructions.
You may want to look at BeaverDam. That is what I did. https://github.com/antingshen/BeaverDam
Before this error, I was receiving error related to /var/www/.python-eggs. After fixing that, I receive the following error.
Steps: 1) Restarted the server 2) Checked the status of turkic by issuing command: "turkic status"
2) connected to mysql server using the command with success, no problem: mysql -u root -p 3) Hit the address: "localhost" or "http://localhost/?id=5&hitId=offline"
This breaks everything in the system. After this,
4) Issuing "mysql -u root -p" leads to the following error message:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
5) Issuing "turkic status" leads to the following error:
Searched for some time about both of the error messages, but to no avail.
Any recommendations?