appliancejunk
Posts: 19
Joined: Mon Nov 24, 2014 12:51 am
Location: South Dakota - U.S.A

motionEye with Raspberry PI

Sat Apr 04, 2015 3:03 am

I'm following instructions from this URL.
http://www.howtoembed.com/projects/rasp ... spberry-pi

I have gone over the steps a few times and feel I have done all the steps correctly.
At this time I don't have a camera connected to my RPi 2, but thought I should still be able to start the program. Maybe not having a camera connected is my problem, not sure...

So I type in...
./motioneye.py

and then...
motionEye should emit an info message saying that the server started.

but instead I get the message...
please install tornado (python-tornado), version 3.1 or greater

I did follow the step that says...
motionEye requires a few libraries and extra programs. Install them with the following command:

Code: Select all

sudo aptitude install python-tornado python-jinja2 python-imaging motion ffmpeg v4l-utils
And as their troubleshooting section suggest I have enabled the camera module in raspi-config.

So at this point I'm not sure why I'm getting this message or what to do about it.
please install tornado (python-tornado), version 3.1 or greater
I have done a bit of reading here, not sure what to do for sure.
https://pypi.python.org/pypi/tornado

Thanks,

appliancejunk
Posts: 19
Joined: Mon Nov 24, 2014 12:51 am
Location: South Dakota - U.S.A

Re: motionEye with Raspberry PI

Sat Apr 04, 2015 2:47 pm

Been doing some more reading at this URL about installation.
https://bitbucket.org/ccrisan/motioneye ... on%20Guide

Ran this...

Code: Select all

apt-get install python-tornado python-jinja2 python-imaging python-pycurl motion ffmpeg v4l-utils
and here is how it went...

johnpahl@raspberrypi ~ $ sudo apt-get install python-tornado python-jinja2 python-imaging python-pycurl motion ffmpeg v4l-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
ffmpeg is already the newest version.
motion is already the newest version.
python-imaging is already the newest version.
python-jinja2 is already the newest version.
python-pycurl is already the newest version.
python-pycurl set to manually installed.
python-tornado is already the newest version.
v4l-utils is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
johnpahl@raspberrypi ~ $ pwd
/home/johnpahl
johnpahl@raspberrypi ~ $ ls
0.24.tar.gz Desktop motioneye pistore.desktop
johnpahl@raspberrypi ~ $ cd motioneye
johnpahl@raspberrypi ~/motioneye $ ls
AUTHORS LICENSE README.md settings.py templates
conf log run settings.pyc webhook.py
doc media sendmail.py src
eventrelay.py motioneye.py settings_default.py static
johnpahl@raspberrypi ~/motioneye $ ./motioneye.py
please install tornado (python-tornado), version 3.1 or greater
johnpahl@raspberrypi ~/motioneye $

So why is it telling me to install tornado when I try and run motioneye.py when earlier it says, python-tornado is already the newest version.

Do I have tornado installed in the wrong location or something?

Thanks,

User avatar
rpdom
Posts: 15172
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: motionEye with Raspberry PI

Sat Apr 04, 2015 3:15 pm

appliancejunk wrote:please install tornado (python-tornado), version 3.1 or greater
The version in Raspbian Wheezy is 2.3 which is too old.

appliancejunk
Posts: 19
Joined: Mon Nov 24, 2014 12:51 am
Location: South Dakota - U.S.A

Re: motionEye with Raspberry PI

Sat Apr 04, 2015 4:22 pm

Thanks for the reply.

I never would have guessed that because I kept seeing...
"python-tornado is already the newest version."

How do I check to see what version of tornado I currently have?
How do I go about updating tornado?

I'm guessing sudo aptitude update is not the answer.

Thanks,

appliancejunk
Posts: 19
Joined: Mon Nov 24, 2014 12:51 am
Location: South Dakota - U.S.A

Re: motionEye with Raspberry PI

Sat Apr 04, 2015 4:31 pm

sudo apt-get install python3-pip

pip-3.2 install tornado

:)

appliancejunk
Posts: 19
Joined: Mon Nov 24, 2014 12:51 am
Location: South Dakota - U.S.A

Re: motionEye with Raspberry PI

Sat Apr 04, 2015 4:34 pm

Hmm,

Thought I have it figured out for sure, but I still get the message.

please install tornado (python-tornado), version 3.1 or greater.

Looking back when I thought I was installing tornado I see this...
error: could not create '/usr/local/lib/python3.2/dist-packages/tornado': Permission denied

Edited to add:

I did the manual install for tornado, seem to work.

tar xvzf tornado-4.1.tar.gz
cd tornado-4.1
python setup.py build
sudo python setup.py install

At least I no longer get the message, "please install tornado (python-tornado), version 3.1 or greater." when I try to start motioneye.

But this is what I do get now when I try and start motioneye. Remember I don't yet have a camera connected if that makes any difference.

johnpahl@raspberrypi ~/motioneye $ ./motioneye.py
2015-04-04 11:49:09: INFO: main config file /home/johnpahl/motioneye/conf/motion.conf does not exist, using default values
2015-04-04 11:49:09: INFO: cleanup started
2015-04-04 11:49:09: INFO: wsswitch started
2015-04-04 11:49:09: INFO: thumbnailer started
Traceback (most recent call last):
File "./motioneye.py", line 398, in <module>
_run_server()
File "./motioneye.py", line 297, in _run_server
import server
File "./src/server.py", line 18, in <module>
from tornado.web import Application
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 81, in <module>
from tornado import iostream
File "/usr/local/lib/python2.7/dist-packages/tornado/iostream.py", line 40, in <module>
from tornado.netutil import ssl_wrap_socket, ssl_match_hostname, SSLCertificateError
File "/usr/local/lib/python2.7/dist-packages/tornado/netutil.py", line 49, in <module>
import backports.ssl_match_hostname
ImportError: No module named backports.ssl_match_hostname
johnpahl@raspberrypi ~/motioneye $

Thanks,

southafricanrob
Posts: 31
Joined: Wed Sep 18, 2013 12:54 pm

Re: motionEye with Raspberry PI

Wed Apr 29, 2015 7:40 pm

Hi - I am getting exactly the same errors - did you solve it at all - if so can you let me know how!?
Thanks

ajaymandke
Posts: 1
Joined: Wed May 06, 2015 2:43 pm

Re: motionEye with Raspberry PI

Wed May 06, 2015 2:49 pm

I was able to resolve the error by installing
pip install backports.ssl_match_hostname

If you get error about pip, you will need to install it first.

chado
Posts: 2
Joined: Tue Sep 01, 2015 4:44 am

Re: motionEye with Raspberry PI

Tue Sep 01, 2015 4:46 am

Have the same issue. Can someone please post the steps to "manually" install tornado or point me to a URL on a how to do a manual install?

chado
Posts: 2
Joined: Tue Sep 01, 2015 4:44 am

Re: motionEye with Raspberry PI

Tue Sep 01, 2015 3:37 pm

Nevermind, I manually installed 4.2.1 Tornado and this other packages, below.

Code: Select all

sudo aptitude install python-tornado python-jinja2 python-imaging motion ffmpeg v4l-utils
sudo pip-3.2 install unittest2
sudo apt-get install build-essential python-dev 
pip install backports.ssl_match_hostname
I installed the Python-Dev as after manually installing Tornado it gave me a prompt that there was a problem and using a debian distro,this could solve it.

Now have this when I try to run. Any ideas or should I start over?

pi@raspberrypi ~ $ ./motioneye.py
-bash: ./motioneye.py: No such file or directory
pi@raspberrypi ~ $ cd motioneye
pi@raspberrypi ~/motioneye $ ./motioneye.py
Traceback (most recent call last):
File "./motioneye.py", line 394, in <module>
if not _test_requirements():
File "./motioneye.py", line 196, in _test_requirements
import mediafiles
File "./src/mediafiles.py", line 37, in <module>
import config
File "./src/config.py", line 34, in <module>
import utils
File "./src/utils.py", line 31, in <module>
from tornado.iostream import IOStream
File "/usr/local/lib/python2.7/dist-packages/tornado/iostream.py", line 40, in <module>
from tornado.netutil import ssl_wrap_socket, ssl_match_hostname, SSLCertificateError, _client_ssl_defaults, _server_ssl_defaults
File "/usr/local/lib/python2.7/dist-packages/tornado/netutil.py", line 39, in <module>
import certifi
ImportError: No module named certifi
pi@raspberrypi ~/motioneye $ sudo pip-3.2 install certifi
Requirement already satisfied (use --upgrade to upgrade): certifi in /usr/local/lib/python3.2/dist-packages
Cleaning up...

bobbydriver
Posts: 70
Joined: Thu Oct 18, 2012 9:06 am

Re: motionEye with Raspberry PI

Fri Nov 06, 2015 2:16 pm

Hi

using MotionEye on a RPi and my camera constantly seems to have horizontal flashes appearing every few seconds, which seems to trigger the motion detection, meaning I have loads more pitcures captured than I actually want.

Any ideas how to fix? The light detection setting seems to make no difference

Return to “Troubleshooting”