Page 1 of 1

Missing Modules - PI

PostPosted: Tue Nov 07, 2017 4:10 pm
by scut77
Hi there,

Can you tell me how I could install those missing modules form the Raspberry PI?


cv2 unittest
numpy


difflib

I tried to install some packages using the sudo apt-get commands without any luck. :?

Thanks a lot.

Re: Missing Modules - PI

PostPosted: Tue Nov 07, 2017 4:36 pm
by kevin
The contrib directory has a script for installing opencv, run that to install opencv

The rest can be installed via pip

Re: Missing Modules - PI

PostPosted: Tue Nov 07, 2017 5:05 pm
by scut77
Kevin,

I think something went wrong, is there a way to safe the zone/email configuration and reinstall the PI from scratch?

Thanks for the prompt response!


The web app its stack on : Services might still be starting - please wait and try again. If this continues, please let us know on GitHub. You can also email us at Support.

Re: Missing Modules - PI

PostPosted: Tue Nov 07, 2017 5:09 pm
by kevin
Hi,

The easiest way to recover from this is to start from scratch with a fresh database. Unfortunately, if you do not have a backup (which you can make in settings, or automate in settings) then you will have to do the work again. However, with the newest version of the webapp and library, if you have AUI support on your panel you can auto-scan for zones

To start from a fresh database, ssh into your pi and issue these commands:

cd /opt/alarmdecoder-webapp
sudo rm instance/db.sqlite
python manage.py initdb


If it ain't broken, don't fix it!! :) Make sure to make a backup of your settings after you are done.

Re: Missing Modules - PI

PostPosted: Wed Nov 08, 2017 6:23 pm
by scut77
Hey Kevin,

I downloaded the latest raspberry image from the download section and reconfigured the zones. I like the new features! :P

There are some missing modules:

cffi

usb

miniupnpc
pycparser



pyftdi

How do I install them? I tried pip install cffi... and its not working... :cry:

Thanks

Re: Missing Modules - PI

PostPosted: Wed Nov 08, 2017 6:29 pm
by kevin
scut77 wrote:Hey Kevin,

I downloaded the latest raspberry image from the download section and reconfigured the zones. I like the new features! :P

There are some missing modules:

cffi

usb

miniupnpc
pycparser



pyftdi

How do I install them? I tried pip install cffi... and its not working... :cry:

Thanks


Hi, some of those are in the list on accident and can be ignored. pyftdi is only needed if you have a USB device (not ad2pi or ad2serial) and you should be able to find a package for that somewhere

miniupnpc is for port forwarding, you have to install http://miniupnp.free.fr/ and compile/install that
Then you can install the python module with pip

You can safely ignore cffi and pycparse, those shouldn't even be in the list.

Re: Missing Modules - PI

PostPosted: Sat Dec 02, 2017 3:26 pm
by scut77
Hi Kevin,

Few things:

- The keypad its not working from my browser;
- The weekly configuration export its not working.

Any ideas?

Thanks

Re: Missing Modules - PI

PostPosted: Sat Dec 02, 2017 6:02 pm
by kevin
Keypad could be any number of things. Please use ser2sock directly (telnet to port 10000) to see if it is a device configuration issue or a software issue.

As for the other problem, please look at the logs and see if there are errors related to it.