Problems running monsterWeb

I'm a noob and not sure what I did or didn't do so any help would be greatly appreciated.

I believe I have followed the build instructions and the MonsterBorg Web UI instructions but I receive a "no module named cv2" error when I run monsterWeb.py any ideas?

Images: 
piborg's picture

It looks like the OpenCV library for Python has not been installed.

You should be able to install it with this command:

sudo apt-get -y install libcv-dev libopencv-dev python-opencv

Once it has been installed the script should start working :)

I tried the above line and this is what I received

Images: 
piborg's picture

It sounds like the libcv-dev package has been rolled in to the libopencv-dev package at some point.

Try this instead:

sudo apt-get -y install libopencv-dev python-opencv

Hi,

Tried running the apt-get but a few packages fail to download...

Err:1 http://mirror0.it.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian buster/main armhf gfortran-8 armhf 8.3.0-6+rpi1
  Connection failed [IP: 163.1.221.67 80]
Err:2 http://mirror0.it.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian buster/main armhf libevent-pthreads-2.1-6 armhf 2.1.8-stable-4
  Could not connect to mirror0.it.ox.ac.uk:80 (163.1.221.67), connection timed out [IP: 163.1.221.67 80]

Thoughts?

Still getting "missing cv2 module" error.

piborg's picture

You may need to update apt-get first:

sudo apt-get update

Changed the morror and ran following

sudo apt-get update && sudo apt-get upgrade

Either of those things fixed it...

All good now :)

Seems close but not sure why it can't open port 80

Images: 
piborg's picture

To open low numbered ports (like port 80) you need to give the script permission by using sudo:
sudo ./monsterWeb.py

Subscribe to Comments for "Problems running monsterWeb"