cvondrick / vatic

Efficiently Scaling Up Video Annotation with Crowdsourced Marketplaces. IJCV 2012
http://mit.edu/vondrick/vatic/
MIT License
603 stars 255 forks source link

No handlers could be found for logger "turkic.geolocation" turkic setup --database #17

Open sharathchandra92 opened 9 years ago

sharathchandra92 commented 9 years ago

Hi I am getting the error:

No handlers could be found for logger "turkic.geolocation"

when I try to execute turkic setup --database.

There's also an accompanying warning. UserWarning: /home/sharath/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable). warnings.warn(msg, UserWarning)

Is it a must that I should get an api key from ipinfodb? Or is there an alternative to running the service locally without ipinfodb?

Thanks.

sharathchandra92 commented 9 years ago

Any way to correct this?

manisoftwartist commented 9 years ago

Hi Sharath,

I have the API key from ipinfodb which I have included into config.py. Still I get the same error.

turkic status --verify No handlers could be found for logger "turkic.geolocation" Error: Unknown action status

I am also trying to install vatic since yesterday (just for offline use and not with Mturk) and facing a lot of issues. Please update here if you manage to solve the issue.

tjusxh commented 9 years ago

I come across the question.I try to get a account about ipinfodb,But I can't select the region and city.

manisoftwartist commented 9 years ago

@tjusxh : so log a ticket with ipinfodb then.

tjusxh commented 9 years ago

@mbakthav When I open http://ipinfodb.com/register.php. I can't select Region Name and City Name.So I can't register successful.

tjusxh commented 9 years ago

@mbakthav maybe you configuration error before step.

manisoftwartist commented 9 years ago

@tjusxh : If you are having issues with ipinfodb, you should send an email to them and not open an issue here. "maybe you configuration error before step." - like what?

tjusxh commented 9 years ago

I solve the question.Despite I don't register the ipinfodb.you maybe config error before.

发自我的 iPhone

在 2015年4月20日,17:26,mbakthav notifications@github.com 写道:

@tjusxh : If you are having issues with ipinfodb, you should send an email to them and not open an issue here. "maybe you configuration error before step." - like what?

― Reply to this email directly or view it on GitHub.

manisoftwartist commented 9 years ago

@tjusxh : can you copy and paste the contents of your config.py file please?

tjusxh commented 9 years ago

I don't change anything in config.py.I come across question because i config error before.

发自我的 iPhone

在 2015年4月20日,17:31,mbakthav notifications@github.com 写道:

@tjusxh : can you copy and paste the contents of your config.py file please?

― Reply to this email directly or view it on GitHub.

manisoftwartist commented 9 years ago

so what was your config error and how did you solve it?

tjusxh commented 9 years ago

My question occurs when sudo easy_install -U pil,I solve through http://www.cnblogs.com/free--coder/archive/2012/09/12/2681361.html http://blog.csdn.net/Cryhelyxx/article/details/22584487

manisoftwartist commented 9 years ago

@sharathchandra92 OK. So this has nothing to do with ipinfodb at all. In fact, it has to do with the dependencies. For @tjusxh, it just happened to be PIL. Please ensure the following dependencies are satisfied. I am just pasting here my python packages: Cython (0.20) munkres (1.0.7) MySQL-python (1.2.5) numpy (1.9.2) parsedatetime (1.4) PIL (1.1.7) pip (6.1.1) pyvision (0.3.1) setuptools (15.0) SQLAlchemy (1.0.0) turkic (0.2.5) wsgilog (0.3)

The best solution of course is to display more informative error messages. Update: The turkic statuc --verify command has to be run from inside the vatic folder.

harkmug commented 9 years ago

I get a similar message when I try to use extract turkic extract tmp.mp4 folder/ No handlers could be found for logger "turkic.geolocation" Error: Unknown action extract

I checked the python packages mentioned above and they all seem OK.

When I ran: turkic status --verify Configuration: Sandbox: True Database: ... Localhost: ... Testing access to Amazon Mechanical Turk... ERROR! Signature or access key missing Testing access to database server... OK Testing access to web server... ERROR! HTTP Error 503: Service Unavailable One or more tests FAILED!

However, I am trying to run vatic locally and when I go the localhost URL, I can see the "welcome to vatic" index page showing up. So the web server seems to be running as well.

Any help would be appreciated. Thanks!

manisoftwartist commented 9 years ago

503 means that your web server is unable to handle the request sent to it. Please check your Apache log files

harkmug commented 9 years ago

Thanks, the turkic extract command works for me when executed from within the vatic folder.

sarasourette commented 8 years ago

I get a similar error when I try to execute turkic setup --database ./home/sara# turkic setup --database No handlers could be found for logger "turkic.geolocation" Error: Unknown action setup and when I try to execute turkic status --verify No handlers could be found for logger "turkic.geolocation" Error: Unknown action status any soution ????

sarasourette commented 8 years ago

I get this error also Testing access to Amazon Mechanical Turk... ERROR! Signature or access key missing Testing access to database server... ERROR! (_mysql_exceptions.OperationalError) (1045, "Access denied for user 'root'@'localhost' (using password: YES)") OK Testing access to web server... ERROR! HTTP Error 403: Forbidden

One or more tests FAILED!

huizhilu commented 8 years ago

for No handlers could be found for logger "turkic.geolocation"

Solved: run turkic within the vatic folder: /path/to/vatic

sarasourette commented 8 years ago

thnaks pkuwm its works within vatic folder buts now I get this error I get this error also Testing access to Amazon Mechanical Turk... ERROR! Signature or access key missing Testing access to database server... ERROR! (_mysql_exceptions.OperationalError) (1045, "Access denied for user 'root'@'localhost' (using password: YES)") OK Testing access to web server... ERROR! HTTP Error 403: Forbidden

One or more tests FAILED!

sarasourette commented 8 years ago

I have solved the error by configurate Mysql Server niw I have another error Localhost: http://localhost/

Testing access to Amazon Mechanical Turk... ERROR! Signature or access key missing Testing access to database server... OK Testing access to web server... ERROR! HTTP Error 403: Forbidden

One or more tests FAILED!

georgeplaton7 commented 8 years ago

@sarasourette Have you fixed the last error, regarding ERROR! HTTP Error 403: Forbidden ?

It seems that the Apache server is not able to access my folder that I listed as document root, hence, you have to add the following directive :

 <Directory /home/myuser/vatic/public>
                Options Indexes FollowSymLinks
                AllowOverride All
                Require all granted
        </Directory>
tylerbuchman commented 6 years ago

turkic setup --database

Im having the error when I try tto setup the database 'Access denied for user 'root'@'localhost' (using password: NO)'

has anyone solved this?

uzbhutta commented 5 years ago

@qgicup I put the directive at the top of my 000-default.conf file but I am still getting ERROR! HTTP Error 403: Forbidden for "Testing access to web server". My 000-default.conf file looks like this:

<Directory my//path/to/vatic/public>
                Options Indexes FollowSymLinks
                AllowOverride All
                Require all granted
        </Directory>

<VirtualHost *:80>
    ServerName localhost:8080

    ServerAdmin webmaster@localhost

    DocumentRoot my//path/to/vatic/public

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>
carltondaniel commented 4 years ago

https://glentimemaker.github.io/Install-and-Use-Vatic-Annotation-Tool/

if your using the above link i also faced the same issue of "No handlers could be found for logger "turkic.geolocation" turkic setup --database"

This is because of following step

"DATA_DIR=pwd/data/ mkdir -p $DATA_DIR"

all you have to do is replace the pwd with that

"DATA_DIR=pwd/data/ mkdir -p $DATA_DIR"

of the local system path or host where your video is stored and not the docker since ,the following command creates a virtual port or link to the local system from the docker (DATA_DIR).

docker run -it -p 8080:80 -v $DATA_DIR:/home/vagrant/vagrant_data jldowns/vatic-docker-contrib:0.1